Issue metadata
Sign in to add a comment
|
Migrate net::URLRequestMockHTTPJob related tests to work with Network Service |
||||||||||||||||||||||
Issue descriptionThe following tests rely on |net::URLRequestMockHTTPJob| and |chrome_browser_net::SetUrlRequestMocksEnabled()| to force install extensions: -AffiliationCheck/EnterpriseDeviceAttributesTest.Success/* -CheckSystemTokenAvailability/EnterprisePlatformKeysTest.Basic/* -SigninProfileAppsPolicyPerChannelTest.* -SigninProfileAppsPolicyTest.* However the 'update_manifest.xml'[1] contains hard-coded URL (e.g. 'http://mock.http/extensions/api_test/enterprise_device_attributes.crx') and doesn't work with Network Service. Possible solutions: 1. Use |URLLoaderInterceptor| to point 'mock.http' requests to |embedded_test_server()|. 2. Use |EmbeddedTestServer::RegisterRequestHandler()| to serve 'update_manifest.xml' requests dynamically, and replace hard-coded URL with |embedded_test_server()|'s host. [1] https://cs.chromium.org/chromium/src/chrome/test/data/extensions/api_test/enterprise_device_attributes/update_manifest.xml
,
Oct 9
|
|||||||||||||||||||||||
►
Sign in to add a comment |
|||||||||||||||||||||||
Comment 1 by bugdroid1@chromium.org
, Oct 9