OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/browser/device_orientation/sensor_manager_android.h" | 5 #include "content/browser/device_sensors/sensor_manager_android.h" |
6 | 6 |
7 #include "base/android/jni_android.h" | 7 #include "base/android/jni_android.h" |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "base/memory/weak_ptr.h" | 9 #include "base/memory/weak_ptr.h" |
10 #include "content/browser/device_orientation/inertial_sensor_consts.h" | 10 #include "content/browser/device_sensors/inertial_sensor_consts.h" |
11 #include "testing/gtest/include/gtest/gtest.h" | 11 #include "testing/gtest/include/gtest/gtest.h" |
12 | 12 |
13 namespace content { | 13 namespace content { |
14 | 14 |
15 namespace { | 15 namespace { |
16 | 16 |
17 class FakeSensorManagerAndroid : public SensorManagerAndroid { | 17 class FakeSensorManagerAndroid : public SensorManagerAndroid { |
18 public: | 18 public: |
19 FakeSensorManagerAndroid() { } | 19 FakeSensorManagerAndroid() { } |
20 virtual ~FakeSensorManagerAndroid() { } | 20 virtual ~FakeSensorManagerAndroid() { } |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 ASSERT_TRUE(orientation_buffer_->data.hasGamma); | 139 ASSERT_TRUE(orientation_buffer_->data.hasGamma); |
140 | 140 |
141 sensorManager.StopFetchingDeviceOrientationData(); | 141 sensorManager.StopFetchingDeviceOrientationData(); |
142 ASSERT_FALSE(orientation_buffer_->data.allAvailableSensorsAreActive); | 142 ASSERT_FALSE(orientation_buffer_->data.allAvailableSensorsAreActive); |
143 } | 143 } |
144 | 144 |
145 | 145 |
146 } // namespace | 146 } // namespace |
147 | 147 |
148 } // namespace content | 148 } // namespace content |
OLD | NEW |