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

Unified Diff: chrome/test/data/webui/md_user_manager/test_profile_browser_proxy.js

Issue 2020093002: MD User Manager: Browser Tests for when all profiles are locked. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@md-user-manager-locked
Patch Set: Created 4 years, 7 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/webui/md_user_manager/test_profile_browser_proxy.js
diff --git a/chrome/test/data/webui/md_user_manager/test_profile_browser_proxy.js b/chrome/test/data/webui/md_user_manager/test_profile_browser_proxy.js
index 8b5e009310a070b2f1779f86209c51be7efb7911..86c13f2362c2d34324ae1ab2a3bad1c2da023655 100644
--- a/chrome/test/data/webui/md_user_manager/test_profile_browser_proxy.js
+++ b/chrome/test/data/webui/md_user_manager/test_profile_browser_proxy.js
@@ -19,6 +19,7 @@ var TestProfileBrowserProxy = function() {
'initializeUserManager',
'launchUser',
'getExistingSupervisedUsers',
+ 'isAtLeastOneProfileUnlocked',
dpapad 2016/05/31 22:07:41 After latest changes to the previous CL this shoul
Moe 2016/05/31 22:47:39 Done.
]);
/** @private {!Array<string>} */
@@ -32,6 +33,9 @@ var TestProfileBrowserProxy = function() {
/** @private {!Array<SupervisedUser>} */
this.existingSupervisedUsers_ = [];
+
+ /** @private {boolean} */
+ this.atLeastOneProfileUnlocked_ = true;
};
TestProfileBrowserProxy.prototype = {
@@ -65,6 +69,10 @@ TestProfileBrowserProxy.prototype = {
this.existingSupervisedUsers_ = supervisedUsers;
},
+ setAtLeastOneProfileUnlocked_: function(atLeastOneProfileUnlocked) {
dpapad 2016/05/31 22:07:41 This is called by other classes, should be made pu
Moe 2016/05/31 22:47:39 Done.
+ this.atLeastOneProfileUnlocked_ = atLeastOneProfileUnlocked;
+ },
+
/** @override */
getAvailableIcons: function() {
this.methodCalled('getAvailableIcons');
@@ -110,4 +118,11 @@ TestProfileBrowserProxy.prototype = {
this.methodCalled('getExistingSupervisedUsers');
return Promise.resolve(this.existingSupervisedUsers_);
},
+
+ /** @override */
+ isAtLeastOneProfileUnlocked: function() {
+ this.methodCalled('isAtLeastOneProfileUnlocked');
+ return this.atLeastOneProfileUnlocked_ ? Promise.resolve() :
+ Promise.reject();
dpapad 2016/05/31 22:07:41 After your latest changes to the other CL, this sh
Moe 2016/05/31 22:47:39 Done.
+ },
};

Powered by Google App Engine
This is Rietveld 408576698