OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 "device_motion_event_pump.h" | 5 #include "device_motion_event_pump.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "base/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
10 #include "content/common/device_motion_hardware_buffer.h" | 10 #include "content/common/device_motion_hardware_buffer.h" |
11 #include "content/public/test/test_utils.h" | 11 #include "content/public/test/test_utils.h" |
12 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
13 #include "third_party/WebKit/public/platform/WebDeviceMotionListener.h" | 13 #include "third_party/WebKit/public/platform/WebDeviceMotionListener.h" |
14 | 14 |
15 namespace content { | 15 namespace content { |
16 | 16 |
17 class DeviceMotionEventPumpTest : public testing::Test { | 17 class DeviceMotionEventPumpTest : public testing::Test { |
18 }; | 18 }; |
19 | 19 |
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
174 EXPECT_FALSE(received_data.hasAccelerationZ); | 174 EXPECT_FALSE(received_data.hasAccelerationZ); |
175 EXPECT_FALSE(received_data.hasAccelerationIncludingGravityX); | 175 EXPECT_FALSE(received_data.hasAccelerationIncludingGravityX); |
176 EXPECT_FALSE(received_data.hasAccelerationIncludingGravityY); | 176 EXPECT_FALSE(received_data.hasAccelerationIncludingGravityY); |
177 EXPECT_FALSE(received_data.hasAccelerationIncludingGravityZ); | 177 EXPECT_FALSE(received_data.hasAccelerationIncludingGravityZ); |
178 EXPECT_FALSE(received_data.hasRotationRateAlpha); | 178 EXPECT_FALSE(received_data.hasRotationRateAlpha); |
179 EXPECT_FALSE(received_data.hasRotationRateBeta); | 179 EXPECT_FALSE(received_data.hasRotationRateBeta); |
180 EXPECT_FALSE(received_data.hasRotationRateGamma); | 180 EXPECT_FALSE(received_data.hasRotationRateGamma); |
181 } | 181 } |
182 | 182 |
183 } // namespace content | 183 } // namespace content |
OLD | NEW |