| OLD | NEW |
| 1 "use strict"; | 1 "use strict"; |
| 2 | 2 |
| 3 let mockFaceDetectionProviderReady = define( | 3 let mockFaceDetectionProviderReady = define( |
| 4 'mockFaceDetectionProvider', | 4 'mockFaceDetectionProvider', |
| 5 ['services/shape_detection/public/interfaces/facedetection.mojom', | 5 ['services/shape_detection/public/interfaces/facedetection.mojom', |
| 6 'services/shape_detection/public/interfaces/facedetection_provider.mojom', | 6 'services/shape_detection/public/interfaces/facedetection_provider.mojom', |
| 7 'mojo/public/js/bindings', | 7 'mojo/public/js/bindings', |
| 8 'mojo/public/js/core', | 8 'mojo/public/js/core', |
| 9 'content/public/renderer/frame_interfaces', | 9 'content/public/renderer/interfaces', |
| 10 ], (faceDetection, faceDetectionProvider, bindings, mojo, interfaces) => { | 10 ], (faceDetection, faceDetectionProvider, bindings, mojo, interfaces) => { |
| 11 | 11 |
| 12 class MockFaceDetectionProvider { | 12 class MockFaceDetectionProvider { |
| 13 constructor() { | 13 constructor() { |
| 14 this.bindingSet_ = new bindings.BindingSet( | 14 this.bindingSet_ = new bindings.BindingSet( |
| 15 faceDetectionProvider.FaceDetectionProvider); | 15 faceDetectionProvider.FaceDetectionProvider); |
| 16 | 16 |
| 17 interfaces.addInterfaceOverrideForTesting( | 17 interfaces.addInterfaceOverrideForTesting( |
| 18 faceDetectionProvider.FaceDetectionProvider.name, | 18 faceDetectionProvider.FaceDetectionProvider.name, |
| 19 handle => this.bindingSet_.addBinding(this, handle)); | 19 handle => this.bindingSet_.addBinding(this, handle)); |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 54 { x : 2.0, y: 2.0, width: 200.0, height: 200.0 }, | 54 { x : 2.0, y: 2.0, width: 200.0, height: 200.0 }, |
| 55 { x : 3.0, y: 3.0, width: 300.0, height: 300.0 }, | 55 { x : 3.0, y: 3.0, width: 300.0, height: 300.0 }, |
| 56 ] | 56 ] |
| 57 } | 57 } |
| 58 }); | 58 }); |
| 59 mojo.unmapBuffer(receivedStruct.buffer); | 59 mojo.unmapBuffer(receivedStruct.buffer); |
| 60 } | 60 } |
| 61 } | 61 } |
| 62 return new MockFaceDetectionProvider(); | 62 return new MockFaceDetectionProvider(); |
| 63 }); | 63 }); |
| OLD | NEW |