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

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

Issue 1873783003: Convert //content/renderer from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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_sensors/device_motion_event_pump_unittest.cc b/content/renderer/device_sensors/device_motion_event_pump_unittest.cc
index 5cb15e8e21241d1a14c05064e8a81a6b3f1f55d2..1160478b751486647c797a88652063eb116863cc 100644
--- a/content/renderer/device_sensors/device_motion_event_pump_unittest.cc
+++ b/content/renderer/device_sensors/device_motion_event_pump_unittest.cc
@@ -2,14 +2,15 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "device_motion_event_pump.h"
+#include "content/renderer/device_sensors/device_motion_event_pump.h"
#include <string.h>
+#include <memory>
+
#include "base/location.h"
#include "base/logging.h"
#include "base/macros.h"
-#include "base/memory/scoped_ptr.h"
#include "base/single_thread_task_runner.h"
#include "base/thread_task_runner_handle.h"
#include "content/common/device_sensors/device_motion_hardware_buffer.h"
@@ -119,8 +120,8 @@ class DeviceMotionEventPumpTest : public testing::Test {
base::SharedMemoryHandle handle() { return handle_; }
private:
- scoped_ptr<MockDeviceMotionListener> listener_;
- scoped_ptr<DeviceMotionEventPumpForTesting> motion_pump_;
+ std::unique_ptr<MockDeviceMotionListener> listener_;
+ std::unique_ptr<DeviceMotionEventPumpForTesting> motion_pump_;
base::SharedMemoryHandle handle_;
base::SharedMemory shared_memory_;
DeviceMotionHardwareBuffer* buffer_;

Powered by Google App Engine
This is Rietveld 408576698