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

Unified Diff: content/renderer/device_sensors/device_orientation_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_orientation_event_pump_unittest.cc
diff --git a/content/renderer/device_sensors/device_orientation_event_pump_unittest.cc b/content/renderer/device_sensors/device_orientation_event_pump_unittest.cc
index 0eaa29743b20815dc9598fc7197e1ecba2ac2913..6fffbfcd6a854d9eb0f0d11ff7d8bf662021b761 100644
--- a/content/renderer/device_sensors/device_orientation_event_pump_unittest.cc
+++ b/content/renderer/device_sensors/device_orientation_event_pump_unittest.cc
@@ -80,10 +80,11 @@ class DeviceOrientationEventPumpTest : public testing::Test {
listener_.reset(new MockDeviceOrientationListener);
orientation_pump_.reset(new DeviceOrientationEventPumpForTesting);
shared_memory_ = mojo::SharedBufferHandle::Create(
- sizeof(DeviceOrientationHardwareBuffer));
- mapping_ = shared_memory_->Map(sizeof(DeviceOrientationHardwareBuffer));
+ sizeof(device::DeviceOrientationHardwareBuffer));
+ mapping_ =
+ shared_memory_->Map(sizeof(device::DeviceOrientationHardwareBuffer));
ASSERT_TRUE(mapping_);
- memset(buffer(), 0, sizeof(DeviceOrientationHardwareBuffer));
+ memset(buffer(), 0, sizeof(device::DeviceOrientationHardwareBuffer));
}
void InitBuffer() {
@@ -110,8 +111,9 @@ class DeviceOrientationEventPumpTest : public testing::Test {
return shared_memory_->Clone(
mojo::SharedBufferHandle::AccessMode::READ_ONLY);
}
- DeviceOrientationHardwareBuffer* buffer() {
- return reinterpret_cast<DeviceOrientationHardwareBuffer*>(mapping_.get());
+ device::DeviceOrientationHardwareBuffer* buffer() {
+ return reinterpret_cast<device::DeviceOrientationHardwareBuffer*>(
+ mapping_.get());
}
private:
« no previous file with comments | « content/renderer/device_sensors/device_motion_event_pump_unittest.cc ('k') | content/shell/android/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698