diff --git a/testing/web-platform/tests/resources/chromium/generic_sensor_mocks.js b/testing/web-platform/tests/resources/chromium/generic_sensor_mocks.js index a7272a65fa3e..eb28c48d3a71 100644 --- a/testing/web-platform/tests/resources/chromium/generic_sensor_mocks.js +++ b/testing/web-platform/tests/resources/chromium/generic_sensor_mocks.js @@ -124,7 +124,7 @@ var GenericSensorTest = (() => { class MockSensorProvider { constructor() { this.readingSizeInBytes_ = - device.mojom.SensorInitParams.kReadBufferSizeForTests; + device.mojom.SensorInitParams.READ_BUFFER_SIZE_FOR_TESTS; this.sharedBufferSizeInBytes_ = this.readingSizeInBytes_ * (device.mojom.SensorType.MAX_VALUE + 1); const rv = Mojo.createSharedBuffer(this.sharedBufferSizeInBytes_);