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

Side by Side Diff: chrome/test/data/webui/md_user_manager/test_profile_browser_proxy.js

Issue 2025433002: MD User Manager: Display error message when all profiles are locked. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments + Avoid breaking the tests Created 4 years, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * The mock signin.ProfileBrowserProxy. 6 * The mock signin.ProfileBrowserProxy.
7 * 7 *
8 * @constructor 8 * @constructor
9 * @implements {signin.ProfileBrowserProxy} 9 * @implements {signin.ProfileBrowserProxy}
10 * @extends {settings.TestBrowserProxy} 10 * @extends {settings.TestBrowserProxy}
11 */ 11 */
12 var TestProfileBrowserProxy = function() { 12 var TestProfileBrowserProxy = function() {
13 settings.TestBrowserProxy.call(this, [ 13 settings.TestBrowserProxy.call(this, [
14 'getAvailableIcons', 14 'getAvailableIcons',
15 'getSignedInUsers', 15 'getSignedInUsers',
16 'launchGuestUser', 16 'launchGuestUser',
17 'createProfile', 17 'createProfile',
18 'cancelCreateProfile', 18 'cancelCreateProfile',
19 'initializeUserManager', 19 'initializeUserManager',
20 'launchUser', 20 'launchUser',
21 'getExistingSupervisedUsers', 21 'getExistingSupervisedUsers',
22 'areAllProfilesLocked',
22 ]); 23 ]);
23 24
24 /** @private {!Array<string>} */ 25 /** @private {!Array<string>} */
25 this.iconUrls_ = []; 26 this.iconUrls_ = [];
26 27
27 /** @private {!Array<SignedInUser>} */ 28 /** @private {!Array<SignedInUser>} */
28 this.signedInUsers_ = []; 29 this.signedInUsers_ = [];
29 30
30 /** @private {!ProfileInfo} */ 31 /** @private {!ProfileInfo} */
31 this.defaultProfileInfo_ = {}; 32 this.defaultProfileInfo_ = {};
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 /** @override */ 104 /** @override */
104 launchGuestUser: function() { 105 launchGuestUser: function() {
105 this.methodCalled('launchGuestUser'); 106 this.methodCalled('launchGuestUser');
106 }, 107 },
107 108
108 /** @override */ 109 /** @override */
109 getExistingSupervisedUsers: function() { 110 getExistingSupervisedUsers: function() {
110 this.methodCalled('getExistingSupervisedUsers'); 111 this.methodCalled('getExistingSupervisedUsers');
111 return Promise.resolve(this.existingSupervisedUsers_); 112 return Promise.resolve(this.existingSupervisedUsers_);
112 }, 113 },
114
115 /** @override */
116 areAllProfilesLocked: function() {
117 this.methodCalled('areAllProfilesLocked');
118 return Promise.resolve(false);
119 },
113 }; 120 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698