Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(194)

Side by Side Diff: chrome/test/data/extensions/api_test/proxy/individual/test.js

Issue 6004003: Introduce a separate preference for 'proxy server mode' (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: nit - alphabetize Created 9 years, 12 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 --gtest_filter=ExtensionApiTest.ProxyManualIndividual 6 // browser_tests.exe --gtest_filter=ExtensionApiTest.ProxyFixedIndividual
7 7
8 chrome.test.runTests([ 8 chrome.test.runTests([
9 function setIndividualProxies() { 9 function setIndividualProxies() {
10 var httpProxy = { 10 var httpProxy = {
11 host: "1.1.1.1" 11 host: "1.1.1.1"
12 }; 12 };
13 var httpsProxy = { 13 var httpsProxy = {
14 scheme: "socks", 14 scheme: "socks",
15 host: "2.2.2.2" 15 host: "2.2.2.2"
16 }; 16 };
17 var ftpProxy = { 17 var ftpProxy = {
18 host: "3.3.3.3", 18 host: "3.3.3.3",
19 port: 9000 19 port: 9000
20 }; 20 };
21 var socksProxy = { 21 var socksProxy = {
22 scheme: "socks4", 22 scheme: "socks4",
23 host: "4.4.4.4", 23 host: "4.4.4.4",
24 port: 9090 24 port: 9090
25 }; 25 };
26 26
27 var rules = { 27 var rules = {
28 proxyForHttp: httpProxy, 28 proxyForHttp: httpProxy,
29 proxyForHttps: httpsProxy, 29 proxyForHttps: httpsProxy,
30 proxyForFtp: ftpProxy, 30 proxyForFtp: ftpProxy,
31 socksProxy: socksProxy, 31 socksProxy: socksProxy,
32 }; 32 };
33 33
34 var config = { rules: rules }; 34 var config = { rules: rules, mode: "fixed_servers" };
35 chrome.experimental.proxy.useCustomProxySettings(config); 35 chrome.experimental.proxy.useCustomProxySettings(config);
36 chrome.test.succeed(); 36 chrome.test.succeed();
37 } 37 }
38 ]); 38 ]);
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698