OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 // proxy api test | 5 // proxy api test |
6 // browser_tests.exe | 6 // browser_tests.exe |
7 // --gtest_filter=ProxySettingsApiTest.ProxyFixedIndividualIncognitoOnly | 7 // --gtest_filter=ProxySettingsApiTest.ProxyFixedIndividualIncognitoOnly |
8 | 8 |
9 chrome.test.runTests([ | 9 chrome.test.runTests([ |
10 // Verify that execution has started to make sure flaky timeouts are not | 10 // Verify that execution has started to make sure flaky timeouts are not |
(...skipping 21 matching lines...) Expand all Loading... |
32 | 32 |
33 var rules = { | 33 var rules = { |
34 proxyForHttp: httpProxy, | 34 proxyForHttp: httpProxy, |
35 proxyForHttps: httpsProxy, | 35 proxyForHttps: httpsProxy, |
36 proxyForFtp: ftpProxy, | 36 proxyForFtp: ftpProxy, |
37 fallbackProxy: fallbackProxy, | 37 fallbackProxy: fallbackProxy, |
38 }; | 38 }; |
39 | 39 |
40 var config = { rules: rules, mode: "fixed_servers" }; | 40 var config = { rules: rules, mode: "fixed_servers" }; |
41 chrome.proxy.settings.set( | 41 chrome.proxy.settings.set( |
42 {'value': config, 'incognito': true}, | 42 {'value': config, 'scope': 'incognito_persistent'}, |
43 chrome.test.callbackPass()); | 43 chrome.test.callbackPass()); |
44 } | 44 } |
45 ]); | 45 ]); |
OLD | NEW |