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

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

Issue 2628673002: Enable networking.onc for autolaunched kiosk sessions (on dev) (Closed)
Patch Set: . Created 3 years, 11 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
« no previous file with comments | « no previous file | extensions/browser/api/networking_private/networking_private_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/data/extensions/api_test/networking_private/alias/test.js
diff --git a/chrome/test/data/extensions/api_test/networking_private/alias/test.js b/chrome/test/data/extensions/api_test/networking_private/alias/test.js
index b724e7b2228755da5ec2c98d469a0b9964a29d6b..7ee5ecba8a9e166af693e3b9059f9f1023e18f34 100644
--- a/chrome/test/data/extensions/api_test/networking_private/alias/test.js
+++ b/chrome/test/data/extensions/api_test/networking_private/alias/test.js
@@ -44,5 +44,33 @@ chrome.test.runTests([
result.ConnectionState ==
chrome.networking.onc.ConnectionStateType.CONNECTED);
}));
+ },
+ function verifyNoAccessToNetworkingPrivateOnlyMethods() {
+ var expectedError = 'Requires networkingPrivate API access.';
+ chrome.networking.onc.getVisibleNetworks('All',
+ chrome.test.callbackFail(expectedError));
+ chrome.networking.onc.getEnabledNetworkTypes(
+ chrome.test.callbackFail(expectedError));
+ var stubVerificationProperties = {
+ certificate: '',
+ publicKey: '',
+ nonce: '',
+ signedData: '',
+ deviceSerial: '',
+ deviceSsid: '',
+ deviceBssid: ''
+ };
+ chrome.networking.onc.verifyDestination(
+ stubVerificationProperties, chrome.test.callbackFail(expectedError));
+ chrome.networking.onc.verifyAndEncryptCredentials(
+ stubVerificationProperties, '',
+ chrome.test.callbackFail(expectedError));
+ chrome.networking.onc.verifyAndEncryptData(
+ stubVerificationProperties, '',
+ chrome.test.callbackFail(expectedError));
+ chrome.networking.onc.setWifiTDLSEnabledState('', false,
+ chrome.test.callbackFail(expectedError));
+ chrome.networking.onc.getWifiTDLSStatus('',
+ chrome.test.callbackFail(expectedError));
}
]);
« no previous file with comments | « no previous file | extensions/browser/api/networking_private/networking_private_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698