| 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} |
| (...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 84 /** | 84 /** |
| 85 * Flag used to test whether this method was not called. | 85 * Flag used to test whether this method was not called. |
| 86 * @type {boolean} | 86 * @type {boolean} |
| 87 */ | 87 */ |
| 88 this.cancelCreateProfileCalled = true; | 88 this.cancelCreateProfileCalled = true; |
| 89 this.methodCalled('cancelCreateProfile'); | 89 this.methodCalled('cancelCreateProfile'); |
| 90 }, | 90 }, |
| 91 | 91 |
| 92 /** @override */ | 92 /** @override */ |
| 93 createProfile: function(profileName, profileIconUrl, isSupervised, | 93 createProfile: function(profileName, profileIconUrl, isSupervised, |
| 94 custodianProfilePath) { | 94 supervisedUserId, custodianProfilePath) { |
| 95 this.methodCalled('createProfile', | 95 this.methodCalled('createProfile', |
| 96 {profileName: profileName, | 96 {profileName: profileName, |
| 97 profileIconUrl: profileIconUrl, | 97 profileIconUrl: profileIconUrl, |
| 98 isSupervised: isSupervised, | 98 isSupervised: isSupervised, |
| 99 supervisedUserId: supervisedUserId, |
| 99 custodianProfilePath: custodianProfilePath}); | 100 custodianProfilePath: custodianProfilePath}); |
| 100 }, | 101 }, |
| 101 | 102 |
| 102 /** @override */ | 103 /** @override */ |
| 103 launchGuestUser: function() { | 104 launchGuestUser: function() { |
| 104 this.methodCalled('launchGuestUser'); | 105 this.methodCalled('launchGuestUser'); |
| 105 }, | 106 }, |
| 106 | 107 |
| 107 /** @override */ | 108 /** @override */ |
| 108 getExistingSupervisedUsers: function() { | 109 getExistingSupervisedUsers: function() { |
| 109 this.methodCalled('getExistingSupervisedUsers'); | 110 this.methodCalled('getExistingSupervisedUsers'); |
| 110 return Promise.resolve(this.existingSupervisedUsers_); | 111 return Promise.resolve(this.existingSupervisedUsers_); |
| 111 }, | 112 }, |
| 112 }; | 113 }; |
| OLD | NEW |