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

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

Issue 219333002: Added method getCaptivePortalStatus to networkingPrivate extension. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 6 years, 9 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/test.js
diff --git a/chrome/test/data/extensions/api_test/networking/test.js b/chrome/test/data/extensions/api_test/networking/test.js
index 47dd3b0e1668734d01909901edb6283e947452dc..500bc063987da4e03dcdd0ac5fe2d2eaeda08186 100644
--- a/chrome/test/data/extensions/api_test/networking/test.js
+++ b/chrome/test/data/extensions/api_test/networking/test.js
@@ -381,6 +381,22 @@ var availableTests = [
callbackPass(function(result) {
assertEq("Connected", result);
}));
+ },
+ function getCaptivePortalStatus() {
+ var networks = [['stub_ethernet', 'Online'],
+ ['stub_wifi1', 'Offline'],
+ ['stub_wifi2', 'Portal'],
+ ['stub_cellular1', 'ProxyAuthRequired'],
+ ['stub_vpn1', 'Unknown']];
+ networks.forEach(function(network) {
+ var servicePath = network[0];
+ var expectedStatus = network[1];
+ chrome.networkingPrivate.getCaptivePortalStatus(
+ servicePath,
+ callbackPass(function(status) {
+ assertEq(expectedStatus, status);
+ }));
+ });
}
];

Powered by Google App Engine
This is Rietveld 408576698