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

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

Issue 6468002: Implementation of getCurrentProxySettings for proxy settings API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/out/Debug
Patch Set: Removed todo and ask mpcomplete now. Created 9 years, 10 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.ProxyAutoSettings 6 // browser_tests.exe --gtest_filter=ExtensionApiTest.ProxyAutoSettings
7 7
8 function expect(expected, message) {
9 return chrome.test.callbackPass(function(value) {
10 chrome.test.assertEq(expected, value, message);
11 });
12 }
13
8 chrome.test.runTests([ 14 chrome.test.runTests([
9 function setAutoSettings() { 15 function setAutoSettings() {
10 var config = { 16 var config = {
11 mode: "auto_detect", 17 mode: "auto_detect"
12 }; 18 };
13 chrome.experimental.proxy.useCustomProxySettings(config); 19 chrome.experimental.proxy.useCustomProxySettings(config);
14 chrome.test.succeed(); 20 chrome.experimental.proxy.getCurrentProxySettings(
21 false,
22 expect(config, "invalid proxy settings"));
23 chrome.experimental.proxy.getCurrentProxySettings(
24 true,
25 expect(config, "invalid proxy settings"));
15 } 26 }
16 ]); 27 ]);
OLDNEW
« no previous file with comments | « chrome/renderer/resources/extension_apitest.js ('k') | chrome/test/data/extensions/api_test/proxy/direct/test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698