Chromium Code Reviews| 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..e5b883c8bb3b729fe7cba7c3dfbd27cf13188278 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 |
| @@ -882,6 +882,26 @@ var availableTests = [ |
| }, result); |
| })); |
| }, |
| + function createConfigForPolicyControlledNetwork() { |
| + 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')); |
| + })); |
| + }, |
|
stevenjb
2017/03/27 18:01:34
nit: move this immediately after 'createNetwork()'
tbarzic
2017/03/27 18:32:33
Done.
|
| ]; |
| chrome.test.getConfig(function(config) { |