OLD | NEW |
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 Loading... |
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 }; |
OLD | NEW |