| 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_sync_page', function() { | 5 cr.define('settings_people_page_sync_page', function() { |
| 6 /** | 6 /** |
| 7 * @constructor | 7 * @constructor |
| 8 * @implements {settings.SyncBrowserProxy} | 8 * @implements {settings.SyncBrowserProxy} |
| 9 * @extends {settings.TestBrowserProxy} | 9 * @extends {TestBrowserProxy} |
| 10 */ | 10 */ |
| 11 var TestSyncBrowserProxy = function() { | 11 var TestSyncBrowserProxy = function() { |
| 12 settings.TestBrowserProxy.call(this, [ | 12 TestBrowserProxy.call(this, [ |
| 13 'didNavigateToSyncPage', | 13 'didNavigateToSyncPage', |
| 14 'didNavigateAwayFromSyncPage', | 14 'didNavigateAwayFromSyncPage', |
| 15 'setSyncDatatypes', | 15 'setSyncDatatypes', |
| 16 'setSyncEncryption', | 16 'setSyncEncryption', |
| 17 ]); | 17 ]); |
| 18 | 18 |
| 19 /* @type {!settings.PageStatus} */ | 19 /* @type {!settings.PageStatus} */ |
| 20 this.encryptionResponse = settings.PageStatus.CONFIGURE; | 20 this.encryptionResponse = settings.PageStatus.CONFIGURE; |
| 21 }; | 21 }; |
| 22 | 22 |
| 23 TestSyncBrowserProxy.prototype = { | 23 TestSyncBrowserProxy.prototype = { |
| 24 __proto__: settings.TestBrowserProxy.prototype, | 24 __proto__: TestBrowserProxy.prototype, |
| 25 | 25 |
| 26 /** @override */ | 26 /** @override */ |
| 27 didNavigateToSyncPage: function() { | 27 didNavigateToSyncPage: function() { |
| 28 this.methodCalled('didNavigateToSyncPage'); | 28 this.methodCalled('didNavigateToSyncPage'); |
| 29 }, | 29 }, |
| 30 | 30 |
| 31 /** @override */ | 31 /** @override */ |
| 32 didNavigateAwayFromSyncPage: function() { | 32 didNavigateAwayFromSyncPage: function() { |
| 33 this.methodCalled('didNavigateAwayFromSyncPage'); | 33 this.methodCalled('didNavigateAwayFromSyncPage'); |
| 34 }, | 34 }, |
| (...skipping 431 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 466 }); | 466 }); |
| 467 }); | 467 }); |
| 468 } | 468 } |
| 469 | 469 |
| 470 return { | 470 return { |
| 471 registerTests: function() { | 471 registerTests: function() { |
| 472 registerAdvancedSyncSettingsTests(); | 472 registerAdvancedSyncSettingsTests(); |
| 473 }, | 473 }, |
| 474 }; | 474 }; |
| 475 }); | 475 }); |
| OLD | NEW |