| 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 * 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: { |
| 11 auto_downloads: '', | 11 auto_downloads: '', |
| 12 background_sync: '', | 12 background_sync: '', |
| 13 camera: '', | 13 camera: '', |
| 14 cookies: '', | 14 cookies: '', |
| 15 fullscreen: '', | 15 fullscreen: '', |
| 16 geolocation: '', | 16 geolocation: '', |
| 17 javascript: '', | 17 javascript: '', |
| 18 keygen: '', | 18 keygen: '', |
| 19 mic: '', | 19 mic: '', |
| 20 notifications: '', | 20 notifications: '', |
| 21 pdf_documents: '', |
| 21 plugins: '', | 22 plugins: '', |
| 22 popups: '', | 23 popups: '', |
| 23 unsandboxed_plugins: '', | 24 unsandboxed_plugins: '', |
| 24 }, | 25 }, |
| 25 exceptions: { | 26 exceptions: { |
| 26 auto_downloads: [], | 27 auto_downloads: [], |
| 27 background_sync: [], | 28 background_sync: [], |
| 28 camera: [], | 29 camera: [], |
| 29 cookies: [], | 30 cookies: [], |
| 30 fullscreen: [], | 31 fullscreen: [], |
| 31 geolocation: [], | 32 geolocation: [], |
| 32 javascript: [], | 33 javascript: [], |
| 33 keygen: [], | 34 keygen: [], |
| 34 mic: [], | 35 mic: [], |
| 35 notifications: [], | 36 notifications: [], |
| 37 pdf_documents: [], |
| 36 plugins: [], | 38 plugins: [], |
| 37 popups: [], | 39 popups: [], |
| 38 unsandboxed_plugins: [], | 40 unsandboxed_plugins: [], |
| 39 }, | 41 }, |
| 40 }; | 42 }; |
| 41 | 43 |
| 42 /** | 44 /** |
| 43 * A test version of SiteSettingsPrefsBrowserProxy. Provides helper methods | 45 * A test version of SiteSettingsPrefsBrowserProxy. Provides helper methods |
| 44 * for allowing tests to know when a method was called, as well as | 46 * for allowing tests to know when a method was called, as well as |
| 45 * specifying mock responses. | 47 * specifying mock responses. |
| (...skipping 184 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 230 fetchUsbDevices: function() { | 232 fetchUsbDevices: function() { |
| 231 this.methodCalled('fetchUsbDevices'); | 233 this.methodCalled('fetchUsbDevices'); |
| 232 return Promise.resolve(this.usbDevices_); | 234 return Promise.resolve(this.usbDevices_); |
| 233 }, | 235 }, |
| 234 | 236 |
| 235 /** @override */ | 237 /** @override */ |
| 236 removeUsbDevice: function() { | 238 removeUsbDevice: function() { |
| 237 this.methodCalled('removeUsbDevice', arguments); | 239 this.methodCalled('removeUsbDevice', arguments); |
| 238 } | 240 } |
| 239 }; | 241 }; |
| OLD | NEW |