Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(40)

Side by Side Diff: chrome/test/data/webui/settings/test_site_settings_prefs_browser_proxy.js

Issue 2686063004: MD Settings: make blowing away per-origin data (i.e. cookies) easier (Closed)
Patch Set: fix test Created 3 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 * An example empty pref. 6 * An example empty pref.
7 * @type {SiteSettingsPref} 7 * @type {SiteSettingsPref}
8 */ 8 */
9 var prefsEmpty = { 9 var prefsEmpty = {
10 defaults: { 10 defaults: {
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after
45 * @extends {settings.TestBrowserProxy} 45 * @extends {settings.TestBrowserProxy}
46 */ 46 */
47 var TestSiteSettingsPrefsBrowserProxy = function() { 47 var TestSiteSettingsPrefsBrowserProxy = function() {
48 settings.TestBrowserProxy.call(this, [ 48 settings.TestBrowserProxy.call(this, [
49 'fetchUsbDevices', 49 'fetchUsbDevices',
50 'fetchZoomLevels', 50 'fetchZoomLevels',
51 'getDefaultValueForContentType', 51 'getDefaultValueForContentType',
52 'getExceptionList', 52 'getExceptionList',
53 'observeProtocolHandlers', 53 'observeProtocolHandlers',
54 'observeProtocolHandlersEnabledState', 54 'observeProtocolHandlersEnabledState',
55 'reloadCookies',
56 'removeCookie',
55 'removeProtocolHandler', 57 'removeProtocolHandler',
56 'removeUsbDevice', 58 'removeUsbDevice',
57 'removeZoomLevel', 59 'removeZoomLevel',
58 'resetCategoryPermissionForOrigin', 60 'resetCategoryPermissionForOrigin',
59 'setCategoryPermissionForOrigin', 61 'setCategoryPermissionForOrigin',
60 'setDefaultValueForContentType', 62 'setDefaultValueForContentType',
61 'setProtocolDefault' 63 'setProtocolDefault'
62 ]); 64 ]);
63 65
64 /** @private {!SiteSettingsPref} */ 66 /** @private {!SiteSettingsPref} */
(...skipping 156 matching lines...) Expand 10 before | Expand all | Expand 10 after
221 return Promise.resolve(); 223 return Promise.resolve();
222 }, 224 },
223 225
224 /** @override */ 226 /** @override */
225 fetchZoomLevels: function() { 227 fetchZoomLevels: function() {
226 cr.webUIListenerCallback('onZoomLevelsChanged', this.zoomList_); 228 cr.webUIListenerCallback('onZoomLevelsChanged', this.zoomList_);
227 this.methodCalled('fetchZoomLevels'); 229 this.methodCalled('fetchZoomLevels');
228 }, 230 },
229 231
230 /** @override */ 232 /** @override */
233 reloadCookies: function() {
234 return Promise.resolve({id: null, children: []});
dschuyler 2017/02/13 20:14:35 Would it make sense to define a private var around
Dan Beam 2017/02/14 04:14:04 not until the setter would be used, no
235 },
236
237 /** @override */
238 removeCookie: function(path) {
239 this.methodCalled('removeCookie', path);
240 },
241
242 /** @override */
231 removeZoomLevel: function(host) { 243 removeZoomLevel: function(host) {
232 this.methodCalled('removeZoomLevel', [host]); 244 this.methodCalled('removeZoomLevel', [host]);
233 }, 245 },
234 246
235 /** @override */ 247 /** @override */
236 fetchUsbDevices: function() { 248 fetchUsbDevices: function() {
237 this.methodCalled('fetchUsbDevices'); 249 this.methodCalled('fetchUsbDevices');
238 return Promise.resolve(this.usbDevices_); 250 return Promise.resolve(this.usbDevices_);
239 }, 251 },
240 252
(...skipping 18 matching lines...) Expand all
259 /** @override */ 271 /** @override */
260 setProtocolDefault: function() { 272 setProtocolDefault: function() {
261 this.methodCalled('setProtocolDefault', arguments); 273 this.methodCalled('setProtocolDefault', arguments);
262 }, 274 },
263 275
264 /** @override */ 276 /** @override */
265 removeProtocolHandler: function() { 277 removeProtocolHandler: function() {
266 this.methodCalled('removeProtocolHandler', arguments); 278 this.methodCalled('removeProtocolHandler', arguments);
267 } 279 }
268 }; 280 };
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698