Chromium Code Reviews| 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 * Only used for tests. | 6 * Only used for tests. |
| 7 * @typedef {{ | 7 * @typedef {{ |
| 8 * auto_downloads: !Array<!RawSiteException>}, | 8 * auto_downloads: !Array<!RawSiteException>}, |
| 9 * background_sync: !Array<!RawSiteException>}, | 9 * background_sync: !Array<!RawSiteException>}, |
| 10 * camera: !Array<!RawSiteException>}, | 10 * camera: !Array<!RawSiteException>}, |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 70 * A test version of SiteSettingsPrefsBrowserProxy. Provides helper methods | 70 * A test version of SiteSettingsPrefsBrowserProxy. Provides helper methods |
| 71 * for allowing tests to know when a method was called, as well as | 71 * for allowing tests to know when a method was called, as well as |
| 72 * specifying mock responses. | 72 * specifying mock responses. |
| 73 * | 73 * |
| 74 * @constructor | 74 * @constructor |
| 75 * @implements {settings.SiteSettingsPrefsBrowserProxy} | 75 * @implements {settings.SiteSettingsPrefsBrowserProxy} |
| 76 * @extends {settings.TestBrowserProxy} | 76 * @extends {settings.TestBrowserProxy} |
| 77 */ | 77 */ |
| 78 var TestSiteSettingsPrefsBrowserProxy = function() { | 78 var TestSiteSettingsPrefsBrowserProxy = function() { |
| 79 settings.TestBrowserProxy.call(this, [ | 79 settings.TestBrowserProxy.call(this, [ |
| 80 'fetchUsbDevices', | 80 'fetchUsbDevices', 'fetchZoomLevels', 'getCookieDetails', |
| 81 'fetchZoomLevels', | 81 'getDefaultValueForContentType', 'getExceptionList', 'isPatternValid', |
| 82 'getCookieDetails', | 82 'observeProtocolHandlers', 'observeProtocolHandlersEnabledState', |
| 83 'getDefaultValueForContentType', | 83 'reloadCookies', 'removeCookie', 'removeProtocolHandler', 'removeUsbDevice', |
| 84 'getExceptionList', | 84 'removeZoomLevel', 'resetCategoryPermissionForOrigin', |
| 85 'isPatternValid', | 85 'setCategoryPermissionForOrigin', 'setDefaultValueForContentType', |
| 86 'observeProtocolHandlers', | 86 'setProtocolDefault', 'updateIncognitoStatus' |
| 87 'observeProtocolHandlersEnabledState', | |
| 88 'reloadCookies', | |
| 89 'removeCookie', | |
| 90 'removeProtocolHandler', | |
| 91 'removeUsbDevice', | |
| 92 'removeZoomLevel', | |
| 93 'resetCategoryPermissionForOrigin', | |
| 94 'setCategoryPermissionForOrigin', | |
| 95 'setDefaultValueForContentType', | |
| 96 'setProtocolDefault' | |
|
dpapad
2017/05/02 00:36:35
Nit (optional): Can you try adding |updateIncognit
dschuyler
2017/05/02 01:05:22
Yep! that worked thanks.
Done.
| |
| 97 ]); | 87 ]); |
| 98 | 88 |
| 99 /** @private {boolean} */ | 89 /** @private {boolean} */ |
| 100 this.hasIncognito_ = false; | 90 this.hasIncognito_ = false; |
| 101 | 91 |
| 102 /** @private {!SiteSettingsPref} */ | 92 /** @private {!SiteSettingsPref} */ |
| 103 this.prefs_ = prefsEmpty; | 93 this.prefs_ = prefsEmpty; |
| 104 | 94 |
| 105 /** @private {!Array<ZoomLevelEntry>} */ | 95 /** @private {!Array<ZoomLevelEntry>} */ |
| 106 this.zoomList_ = []; | 96 this.zoomList_ = []; |
| (...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 364 }, | 354 }, |
| 365 | 355 |
| 366 /** @override */ | 356 /** @override */ |
| 367 setProtocolDefault: function() { | 357 setProtocolDefault: function() { |
| 368 this.methodCalled('setProtocolDefault', arguments); | 358 this.methodCalled('setProtocolDefault', arguments); |
| 369 }, | 359 }, |
| 370 | 360 |
| 371 /** @override */ | 361 /** @override */ |
| 372 removeProtocolHandler: function() { | 362 removeProtocolHandler: function() { |
| 373 this.methodCalled('removeProtocolHandler', arguments); | 363 this.methodCalled('removeProtocolHandler', arguments); |
| 364 }, | |
| 365 | |
| 366 /** @override */ | |
| 367 updateIncognitoStatus: function() { | |
| 368 this.methodCalled('updateIncognitoStatus', arguments); | |
| 374 } | 369 } |
| 375 }; | 370 }; |
| OLD | NEW |