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

Unified Diff: chrome/test/data/extensions/api_test/networking_private/test.js

Issue 2620463003: Add getGlobalPolicy to networkingPrivate API. (Closed)
Patch Set: Created 3 years, 11 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/networking_private/test.js
diff --git a/chrome/test/data/extensions/api_test/networking_private/test.js b/chrome/test/data/extensions/api_test/networking_private/test.js
index aa2380b7185ba6d661a6fb5b2e42952893368c79..4f2ccdfb635522ffeb81338fe443051a3b4190a7 100644
--- a/chrome/test/data/extensions/api_test/networking_private/test.js
+++ b/chrome/test/data/extensions/api_test/networking_private/test.js
@@ -127,6 +127,15 @@ var availableTests = [
chrome.networkingPrivate.setCellularSimState(
kGuid, simState, callbackPass(callbackResult));
},
+ function getGlobalPolicy() {
+ chrome.networkingPrivate.getGlobalPolicy(callbackPass(callbackResult(
+ function(result) {
+ return JSON.stringify(result) == JSON.stringify({
tbarzic 2017/01/06 22:43:17 assertEq() should work here as well
stevenjb 2017/01/09 19:30:37 It doesn't actually, I don't recall why. I'm going
+ AllowOnlyPolicyNetworksToAutoconnect: true,
+ AllowOnlyPolicyNetworksToConnect: false,
+ });
+ })));
+ }
];
var testToRun = window.location.search.substring(1);

Powered by Google App Engine
This is Rietveld 408576698