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

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

Issue 2754903002: Prevent networkingPrivate.forgetNetwork from removing shared configs (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 a2d7084009a31c9f675f23b78b205e19f91fd053..30624a9c8efbad75b3cb6ab354fc91aeba0fcc77 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
@@ -227,6 +227,20 @@ var availableTests = [
}));
}));
},
+ function forgetPolicyControlledNetwork() {
+ 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.forgetNetwork(
+ 'stub_wifi2', callbackFail('Error.PolicyControlled'));
+ }));
+ },
function getNetworks() {
// Test 'type' and 'configured'.
var filter = {

Powered by Google App Engine
This is Rietveld 408576698