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

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

Issue 2767253006: Set HexSSID in network config before matching it against policies (Closed)
Patch Set: . Created 3 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 28bca7f5064c15f4b000791e904bc2b28675d46f..a2d7084009a31c9f675f23b78b205e19f91fd053 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
@@ -178,6 +178,26 @@ var availableTests = [
}));
}));
},
+ function createNetworkForPolicyControlledNetwork() {
+ chrome.networkingPrivate.getProperties('stub_wifi2', callbackPass(function(
+ properties) {
+ // Sanity check to verify there is a policy defined config for the network
+ // config that will be set up in this test.
+ chrome.test.assertEq('UserPolicy', properties.Source);
+ chrome.test.assertEq('WiFi', properties.Type);
+ chrome.test.assertEq('WPA-PSK', properties.WiFi.Security);
+ chrome.test.assertEq('wifi2_PSK', properties.WiFi.SSID);
+
+ chrome.networkingPrivate.createNetwork(false /* shared */, {
+ Type: 'WiFi',
+ WiFi: {
+ SSID: 'wifi2_PSK',
+ Passphrase: 'Fake password',
+ Security: 'WPA-PSK'
+ }
+ }, callbackFail('NetworkAlreadyConfigured'));
+ }));
+ },
function forgetNetwork() {
var kNumNetworks = 2;
var kTestNetworkGuid = 'stub_wifi1_guid';

Powered by Google App Engine
This is Rietveld 408576698