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

Unified Diff: third_party/WebKit/LayoutTests/sensor/resources/sensor-helpers.js

Issue 2698083007: Port device_generic_sensor to be hosted in Device Service. (Closed)
Patch Set: code rebase Created 3 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « services/device/public/cpp/device_features.cc ('k') | third_party/WebKit/Source/modules/sensor/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « services/device/public/cpp/device_features.cc ('k') | third_party/WebKit/Source/modules/sensor/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698