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

Unified Diff: content/renderer/device_sensors/device_motion_event_pump_unittest.cc

Issue 2646093002: Move //content/browser/device_sensor/ into device/sensors (Closed)
Patch Set: gn format & code rebase Created 3 years, 11 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_sensors/device_motion_event_pump_unittest.cc b/content/renderer/device_sensors/device_motion_event_pump_unittest.cc
index 92ae1f3763b23226719cb6e17d1a05b5177639cb..642a7040b96c330762919433260572e3c96f2dbe 100644
--- a/content/renderer/device_sensors/device_motion_event_pump_unittest.cc
+++ b/content/renderer/device_sensors/device_motion_event_pump_unittest.cc
@@ -95,11 +95,11 @@ class DeviceMotionEventPumpTest : public testing::Test {
void SetUp() override {
listener_.reset(new MockDeviceMotionListener);
motion_pump_.reset(new DeviceMotionEventPumpForTesting);
- shared_memory_ =
- mojo::SharedBufferHandle::Create(sizeof(DeviceMotionHardwareBuffer));
- mapping_ = shared_memory_->Map(sizeof(DeviceMotionHardwareBuffer));
+ shared_memory_ = mojo::SharedBufferHandle::Create(
+ sizeof(device::DeviceMotionHardwareBuffer));
+ mapping_ = shared_memory_->Map(sizeof(device::DeviceMotionHardwareBuffer));
ASSERT_TRUE(mapping_);
- memset(buffer(), 0, sizeof(DeviceMotionHardwareBuffer));
+ memset(buffer(), 0, sizeof(device::DeviceMotionHardwareBuffer));
}
void InitBuffer(bool allAvailableSensorsActive) {
@@ -119,8 +119,9 @@ class DeviceMotionEventPumpTest : public testing::Test {
return shared_memory_->Clone(
mojo::SharedBufferHandle::AccessMode::READ_ONLY);
}
- DeviceMotionHardwareBuffer* buffer() {
- return reinterpret_cast<DeviceMotionHardwareBuffer*>(mapping_.get());
+ device::DeviceMotionHardwareBuffer* buffer() {
+ return reinterpret_cast<device::DeviceMotionHardwareBuffer*>(
+ mapping_.get());
}
private:

Powered by Google App Engine
This is Rietveld 408576698