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

Side by Side Diff: content/browser/device_sensors/sensor_manager_android_unittest.cc

Issue 236833003: Rename device_orientation to device_sensors (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 6 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 unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « content/browser/device_sensors/sensor_manager_android.cc ('k') | content/browser/renderer_host/render_process_host_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698