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

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

Issue 1059033002: Implement networkingPrivate.getDeviceStates (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 5 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_private/chromeos/test.js
diff --git a/chrome/test/data/extensions/api_test/networking_private/chromeos/test.js b/chrome/test/data/extensions/api_test/networking_private/chromeos/test.js
index 9d2726875495760f16aeaa51dccb73b44cf0c9db..930f347a2bcd442a3da818078011a576f70d7ce3 100644
--- a/chrome/test/data/extensions/api_test/networking_private/chromeos/test.js
+++ b/chrome/test/data/extensions/api_test/networking_private/chromeos/test.js
@@ -340,6 +340,17 @@ var availableTests = [
}], result);
}));
},
+ function getDeviceStates() {
+ chrome.networkingPrivate.getDeviceStates(callbackPass(function(result) {
+ assertEq([
+ {State: 'Uninitialized', Type: 'Cellular'},
+ {State: 'Enabled', Type: 'Ethernet'},
+ {State: 'Enabled', Type: 'WiFi'},
+ {State: 'Disabled', Type: 'WiMAX'},
+ ],
+ result);
+ }));
+ },
function requestNetworkScan() {
// Connected or Connecting networks should be listed first, sorted by type.
var expected = ['stub_ethernet_guid',

Powered by Google App Engine
This is Rietveld 408576698