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

Unified Diff: chrome/test/data/extensions/api_test/chromeos_info_private/basic/background.js

Issue 2314313002: Add sessionType and playStoreStatus to chromeosInfoPrivate. (Closed)
Patch Set: . Created 4 years, 3 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/chromeos_info_private/basic/background.js
diff --git a/chrome/test/data/extensions/api_test/chromeos_info_private/background.js b/chrome/test/data/extensions/api_test/chromeos_info_private/basic/background.js
similarity index 90%
rename from chrome/test/data/extensions/api_test/chromeos_info_private/background.js
rename to chrome/test/data/extensions/api_test/chromeos_info_private/basic/background.js
index 89204c5a948378eead8480d89a03f6615212ac54..f0808fc754af8d0a17288f8473a69e501c326994 100644
--- a/chrome/test/data/extensions/api_test/chromeos_info_private/background.js
+++ b/chrome/test/data/extensions/api_test/chromeos_info_private/basic/background.js
@@ -15,6 +15,14 @@ function getTestFunctionFor(keys, fails) {
pass(
function(values) {
for (var i = 0; i < keys.length; ++i) {
+ // Default session type should be normal.
+ if (keys[i] == 'sessionType') {
+ chrome.test.assertEq('normal', values[keys[i]]);
+ }
+ // PlayStoreStatus by default should be not available.
+ if (keys[i] == 'playStoreStatus') {
+ chrome.test.assertEq('not available', values[keys[i]]);
+ }
// Debug
if (keys[i] in values) {
console.log(' values["' + keys[i] + '"] = ' +
@@ -107,6 +115,8 @@ var tests = generateTestsForKeys(['hwid',
'initialLocale',
'board',
'isOwner',
+ 'sessionType',
+ 'playStoreStatus',
'clientId',
'a11yLargeCursorEnabled',
'a11yStickyKeysEnabled',

Powered by Google App Engine
This is Rietveld 408576698