| 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 cr.define('settings_people_page_manage_profile', function() { | 5 cr.define('settings_people_page_manage_profile', function() { |
| 6 /** | 6 /** |
| 7 * @constructor | 7 * @constructor |
| 8 * @implements {settings.ManageProfileBrowserProxy} | 8 * @implements {settings.ManageProfileBrowserProxy} |
| 9 * @extends {settings.TestBrowserProxy} | 9 * @extends {TestBrowserProxy} |
| 10 */ | 10 */ |
| 11 var TestManageProfileBrowserProxy = function() { | 11 var TestManageProfileBrowserProxy = function() { |
| 12 settings.TestBrowserProxy.call(this, [ | 12 TestBrowserProxy.call(this, [ |
| 13 'getAvailableIcons', | 13 'getAvailableIcons', |
| 14 'setProfileIconToGaiaAvatar', | 14 'setProfileIconToGaiaAvatar', |
| 15 'setProfileIconToDefaultAvatar', | 15 'setProfileIconToDefaultAvatar', |
| 16 'setProfileName', | 16 'setProfileName', |
| 17 'getProfileShortcutStatus', | 17 'getProfileShortcutStatus', |
| 18 'addProfileShortcut', | 18 'addProfileShortcut', |
| 19 'removeProfileShortcut', | 19 'removeProfileShortcut', |
| 20 ]); | 20 ]); |
| 21 | 21 |
| 22 /** @private {!ProfileShortcutStatus} */ | 22 /** @private {!ProfileShortcutStatus} */ |
| 23 this.profileShortcutStatus_ = ProfileShortcutStatus.PROFILE_SHORTCUT_FOUND; | 23 this.profileShortcutStatus_ = ProfileShortcutStatus.PROFILE_SHORTCUT_FOUND; |
| 24 }; | 24 }; |
| 25 | 25 |
| 26 TestManageProfileBrowserProxy.prototype = { | 26 TestManageProfileBrowserProxy.prototype = { |
| 27 __proto__: settings.TestBrowserProxy.prototype, | 27 __proto__: TestBrowserProxy.prototype, |
| 28 | 28 |
| 29 /** @param {!ProfileShortcutStatus} status */ | 29 /** @param {!ProfileShortcutStatus} status */ |
| 30 setProfileShortcutStatus: function(status) { | 30 setProfileShortcutStatus: function(status) { |
| 31 this.profileShortcutStatus_ = status; | 31 this.profileShortcutStatus_ = status; |
| 32 }, | 32 }, |
| 33 | 33 |
| 34 /** @override */ | 34 /** @override */ |
| 35 getAvailableIcons: function() { | 35 getAvailableIcons: function() { |
| 36 this.methodCalled('getAvailableIcons'); | 36 this.methodCalled('getAvailableIcons'); |
| 37 return Promise.resolve([ | 37 return Promise.resolve([ |
| (...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 286 }); | 286 }); |
| 287 }); | 287 }); |
| 288 } | 288 } |
| 289 | 289 |
| 290 return { | 290 return { |
| 291 registerTests: function() { | 291 registerTests: function() { |
| 292 registerManageProfileTests(); | 292 registerManageProfileTests(); |
| 293 }, | 293 }, |
| 294 }; | 294 }; |
| 295 }); | 295 }); |
| OLD | NEW |