Index: third_party/WebKit/LayoutTests/sensor/resources/sensor-helpers.js |
diff --git a/third_party/WebKit/LayoutTests/sensor/resources/sensor-helpers.js b/third_party/WebKit/LayoutTests/sensor/resources/sensor-helpers.js |
index 0a9949d26e1f72f5fcb9de4d1215d88e5b728ace..c1178c44fc2043811b2cd7bc9d95ba22c96b94dc 100644 |
--- a/third_party/WebKit/LayoutTests/sensor/resources/sensor-helpers.js |
+++ b/third_party/WebKit/LayoutTests/sensor/resources/sensor-helpers.js |
@@ -23,7 +23,8 @@ function sensor_mocks(mojo) { |
'mojo/public/js/bindings', |
'device/generic_sensor/public/interfaces/sensor_provider.mojom', |
'device/generic_sensor/public/interfaces/sensor.mojom', |
- ], (core, bindings, sensor_provider, sensor) => { |
+ 'services/device/public/interfaces/constants.mojom', |
+ ], (core, bindings, sensor_provider, sensor, deviceConstants) => { |
// Helper function that returns resolved promise with result. |
function sensorResponse(success) { |
@@ -350,7 +351,8 @@ function sensor_mocks(mojo) { |
} |
let mockSensorProvider = new MockSensorProvider; |
- mojo.frameInterfaces.addInterfaceOverrideForTesting( |
+ mojo.connector.addInterfaceOverrideForTesting( |
+ deviceConstants.kServiceName, |
sensor_provider.SensorProvider.name, |
pipe => { |
mockSensorProvider.bindToPipe(pipe); |