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

Unified Diff: chrome/test/data/extensions/api_test/proxy/direct/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 side-by-side diff with in-line comments
Download patch
Index: chrome/test/data/extensions/api_test/proxy/direct/test.js
diff --git a/chrome/test/data/extensions/api_test/proxy/direct/test.js b/chrome/test/data/extensions/api_test/proxy/direct/test.js
index 6567fbd8f57d768b8f2c8e2365ea476e15550e38..ebb9916f089e0e6ff108bd810c908d83de6c1941 100644
--- a/chrome/test/data/extensions/api_test/proxy/direct/test.js
+++ b/chrome/test/data/extensions/api_test/proxy/direct/test.js
@@ -5,12 +5,23 @@
// proxy api test
// browser_tests.exe --gtest_filter=ExtensionApiTest.ProxyAutoSettings
+function expect(expected, message) {
+ return chrome.test.callbackPass(function(value) {
+ chrome.test.assertEq(expected, value, message);
+ });
+}
+
chrome.test.runTests([
function setAutoSettings() {
var config = {
mode: "direct",
};
chrome.experimental.proxy.useCustomProxySettings(config);
- chrome.test.succeed();
+ chrome.experimental.proxy.getCurrentProxySettings(
+ false,
+ expect(config, "invalid proxy settings"));
+ chrome.experimental.proxy.getCurrentProxySettings(
+ true,
+ expect(config, "invalid proxy settings"));
}
]);
« no previous file with comments | « chrome/test/data/extensions/api_test/proxy/auto/test.js ('k') | chrome/test/data/extensions/api_test/proxy/individual/test.js » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698