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

Unified Diff: content/renderer/device_sensors/device_motion_event_pump_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 side-by-side diff with in-line comments
Download patch
Index: content/renderer/device_sensors/device_motion_event_pump_unittest.cc
diff --git a/content/renderer/device_orientation/device_motion_event_pump_unittest.cc b/content/renderer/device_sensors/device_motion_event_pump_unittest.cc
similarity index 94%
rename from content/renderer/device_orientation/device_motion_event_pump_unittest.cc
rename to content/renderer/device_sensors/device_motion_event_pump_unittest.cc
index 290d85e4e43b63b8eb901780f2c3602950480185..e88e94438f16e8ceb00d849f0a3e5781777bce19 100644
--- a/content/renderer/device_orientation/device_motion_event_pump_unittest.cc
+++ b/content/renderer/device_sensors/device_motion_event_pump_unittest.cc
@@ -7,7 +7,7 @@
#include "base/logging.h"
#include "base/memory/scoped_ptr.h"
#include "base/message_loop/message_loop.h"
-#include "content/common/device_orientation/device_motion_hardware_buffer.h"
+#include "content/common/device_sensors/device_motion_hardware_buffer.h"
#include "content/public/test/test_utils.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/WebKit/public/platform/WebDeviceMotionListener.h"
@@ -102,11 +102,11 @@ TEST_F(DeviceMotionEventPumpTest, DidStartPolling) {
blink::WebDeviceMotionData& received_data = listener_->data_;
EXPECT_TRUE(listener_->did_change_device_motion_);
EXPECT_TRUE(received_data.hasAccelerationX);
- EXPECT_EQ(1, (double)received_data.accelerationX);
+ EXPECT_EQ(1, static_cast<double>(received_data.accelerationX));
EXPECT_TRUE(received_data.hasAccelerationX);
- EXPECT_EQ(2, (double)received_data.accelerationY);
+ EXPECT_EQ(2, static_cast<double>(received_data.accelerationY));
EXPECT_TRUE(received_data.hasAccelerationY);
- EXPECT_EQ(3, (double)received_data.accelerationZ);
+ EXPECT_EQ(3, static_cast<double>(received_data.accelerationZ));
EXPECT_TRUE(received_data.hasAccelerationZ);
EXPECT_FALSE(received_data.hasAccelerationIncludingGravityX);
EXPECT_FALSE(received_data.hasAccelerationIncludingGravityY);

Powered by Google App Engine
This is Rietveld 408576698