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

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

Issue 12541007: This adds the setProperties and getState functions to the networking API (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed flag usage Created 7 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 22546a009a141bc7c3c5a4e77de915fc2cfe5b52..2e5514e0eb61fe34427faefdfd85861602ff158b 100644
--- a/chrome/test/data/extensions/api_test/networking/test.js
+++ b/chrome/test/data/extensions/api_test/networking/test.js
@@ -165,6 +165,42 @@ var availableTests = [
}, result);
}));
},
+ function setProperties() {
+ var done = chrome.test.callbackAdded();
+ chrome.networkingPrivate.getProperties(
+ "stub_wifi2",
+ function(result) {
+ result.WiFi.Security = "WEP-PSK";
+ chrome.networkingPrivate.setProperties("stub_wifi2", result,
+ function() {
+ chrome.networkingPrivate.getProperties(
+ "stub_wifi2",
+ function(result) {
+ assertEq("WEP-PSK", result.WiFi.Security);
+ done();
+ });
+ });
+ });
+ },
+ function getState() {
+ chrome.networkingPrivate.getState(
+ "stub_wifi2",
+ callbackPass(function(result) {
+ assertEq({
+ "Cellular.ActivationState": "",
pneubeck (no reviews) 2013/03/07 13:06:18 After adding the translation, this dict should loo
Greg Spencer (Chromium) 2013/03/07 22:01:23 Right. I was wondering why they were off, and now
+ "Cellular.NetworkTechnology": "",
+ "Cellular.RoamingState": "",
+ "Device": "",
+ "Error": "",
+ "GUID": "",
+ "Name": "wifi2_PSK",
+ "Security": "psk",
+ "State": "idle",
+ "Strength": 80,
+ "Type": "wifi"
+ }, result);
+ }));
+ },
function onNetworksChangedEventConnect() {
var network = "stub_wifi2";
var done = chrome.test.callbackAdded();

Powered by Google App Engine
This is Rietveld 408576698