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

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

Issue 2801173002: arc: Provide API to control Play Store state from autotests (Closed)
Patch Set: nits Created 3 years, 8 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/autotest_private/test.js
diff --git a/chrome/test/data/extensions/api_test/autotest_private/test.js b/chrome/test/data/extensions/api_test/autotest_private/test.js
index 30e470f531f3b44945a1f53fd2376ba4b03d2466..04998278f4efc314b3019ddf4f32af8b1198fcb2 100644
--- a/chrome/test/data/extensions/api_test/autotest_private/test.js
+++ b/chrome/test/data/extensions/api_test/autotest_private/test.js
@@ -108,5 +108,22 @@ chrome.test.runTests([
function getVisibleNotifications() {
chrome.autotestPrivate.getVisibleNotifications(function(){});
chrome.test.succeed();
+ },
+ function getPlayStoreState() {
+ chrome.autotestPrivate.getPlayStoreState(function(state) {
+ // By default ARC is not available. Field allowed must be set to false;
+ // managed and enabled should be underfined.
+ chrome.test.assertFalse(state.allowed);
+ chrome.test.assertEq(undefined, state.enabled);
+ chrome.test.assertEq(undefined, state.managed);
+ chrome.test.succeed();
+ });
+ },
+ function setPlayStoreEnabled() {
+ chrome.autotestPrivate.setPlayStoreEnabled(false, function() {
+ // By default ARC is not available.
+ chrome.test.assertTrue(chrome.runtime.lastError != undefined);
+ chrome.test.succeed();
+ });
}
]);
« no previous file with comments | « chrome/common/extensions/api/autotest_private.idl ('k') | extensions/browser/extension_function_histogram_value.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698