| OLD | NEW |
| 1 "use strict"; | 1 "use strict"; |
| 2 | 2 |
| 3 let mockImageCaptureReady = define( | 3 let mockImageCaptureReady = define( |
| 4 'mockImageCapture', | 4 'mockImageCapture', |
| 5 ['media/capture/mojo/image_capture.mojom', | 5 ['media/mojo/interfaces/image_capture.mojom', |
| 6 'mojo/public/js/bindings', | 6 'mojo/public/js/bindings', |
| 7 'mojo/public/js/connection', | 7 'mojo/public/js/connection', |
| 8 'content/public/renderer/interfaces', | 8 'content/public/renderer/interfaces', |
| 9 ], (imageCapture, bindings, connection, interfaces) => { | 9 ], (imageCapture, bindings, connection, interfaces) => { |
| 10 | 10 |
| 11 class MockImageCapture { | 11 class MockImageCapture { |
| 12 constructor() { | 12 constructor() { |
| 13 interfaces.addInterfaceOverrideForTesting( | 13 interfaces.addInterfaceOverrideForTesting( |
| 14 imageCapture.ImageCapture.name, | 14 imageCapture.ImageCapture.name, |
| 15 pipe => this.bindToPipe(pipe)); | 15 pipe => this.bindToPipe(pipe)); |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 59 return this.capabilities_.capabilities; | 59 return this.capabilities_.capabilities; |
| 60 } | 60 } |
| 61 | 61 |
| 62 options() { | 62 options() { |
| 63 return this.settings_; | 63 return this.settings_; |
| 64 } | 64 } |
| 65 | 65 |
| 66 } | 66 } |
| 67 return new MockImageCapture(); | 67 return new MockImageCapture(); |
| 68 }); | 68 }); |
| OLD | NEW |