| OLD | NEW |
| 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.ProxyAutoSettings | 6 // browser_tests.exe --gtest_filter=ExtensionApiTest.ProxyAutoSettings |
| 7 | 7 |
| 8 chrome.test.runTests([ | 8 chrome.test.runTests([ |
| 9 function setAutoSettings() { | 9 function setAutoSettings() { |
| 10 var pacScriptObject = { | 10 var pacScriptObject = { |
| 11 url: "http://wpad/windows.pac" | 11 url: "http://wpad/windows.pac" |
| 12 }; | 12 }; |
| 13 var config = { | 13 var config = { |
| 14 autoDetect: true, | 14 mode: "auto_detect", |
| 15 pacScript: pacScriptObject | 15 pacScript: pacScriptObject |
| 16 }; | 16 }; |
| 17 chrome.experimental.proxy.useCustomProxySettings(config); | 17 chrome.experimental.proxy.useCustomProxySettings(config); |
| 18 chrome.test.succeed(); | 18 chrome.test.succeed(); |
| 19 } | 19 } |
| 20 ]); | 20 ]); |
| OLD | NEW |