| Index: device/generic_sensor/android/junit/src/org/chromium/device/sensors/PlatformSensorAndProviderTest.java
|
| diff --git a/device/generic_sensor/android/junit/src/org/chromium/device/sensors/PlatformSensorAndProviderTest.java b/device/generic_sensor/android/junit/src/org/chromium/device/sensors/PlatformSensorAndProviderTest.java
|
| index 0c747f6399cfe0865e667c4681f16f691af23943..76a45abf81cb38917edddbb5d59c4a4159cb4f01 100644
|
| --- a/device/generic_sensor/android/junit/src/org/chromium/device/sensors/PlatformSensorAndProviderTest.java
|
| +++ b/device/generic_sensor/android/junit/src/org/chromium/device/sensors/PlatformSensorAndProviderTest.java
|
| @@ -126,7 +126,7 @@ public class PlatformSensorAndProviderTest {
|
| @Feature({"PlatformSensorProvider"})
|
| public void testNullSensorManager() {
|
| doReturn(null).when(mContext).getSystemService(Context.SENSOR_SERVICE);
|
| - PlatformSensorProvider provider = PlatformSensorProvider.create(mContext);
|
| + PlatformSensorProvider provider = PlatformSensorProvider.createForTest(mContext);
|
| PlatformSensor sensor = provider.createSensor(SensorType.AMBIENT_LIGHT);
|
| assertNull(sensor);
|
| }
|
| @@ -137,7 +137,7 @@ public class PlatformSensorAndProviderTest {
|
| @Test
|
| @Feature({"PlatformSensorProvider"})
|
| public void testSensorNotSupported() {
|
| - PlatformSensorProvider provider = PlatformSensorProvider.create(mContext);
|
| + PlatformSensorProvider provider = PlatformSensorProvider.createForTest(mContext);
|
| PlatformSensor sensor = provider.createSensor(SensorType.AMBIENT_LIGHT);
|
| assertNull(sensor);
|
| }
|
| @@ -148,7 +148,7 @@ public class PlatformSensorAndProviderTest {
|
| @Test
|
| @Feature({"PlatformSensorProvider"})
|
| public void testSensorTypeMappings() {
|
| - PlatformSensorProvider provider = PlatformSensorProvider.create(mContext);
|
| + PlatformSensorProvider provider = PlatformSensorProvider.createForTest(mContext);
|
| provider.createSensor(SensorType.AMBIENT_LIGHT);
|
| verify(mSensorManager).getSensorList(Sensor.TYPE_LIGHT);
|
| provider.createSensor(SensorType.ACCELEROMETER);
|
| @@ -399,7 +399,7 @@ public class PlatformSensorAndProviderTest {
|
| private PlatformSensor createPlatformSensor(
|
| long minDelayUsec, int androidSensorType, int mojoSensorType, int reportingMode) {
|
| addMockSensor(minDelayUsec, androidSensorType, reportingMode);
|
| - PlatformSensorProvider provider = PlatformSensorProvider.create(mContext);
|
| + PlatformSensorProvider provider = PlatformSensorProvider.createForTest(mContext);
|
| return provider.createSensor(mojoSensorType);
|
| }
|
|
|
|
|