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

Unified Diff: device/test/test_device_client.h

Issue 1874313002: Convert device 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
« no previous file with comments | « device/serial/serial_service_unittest.cc ('k') | device/test/usb_test_gadget.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/test/test_device_client.h
diff --git a/device/test/test_device_client.h b/device/test/test_device_client.h
index 95cfc57bbec1b064b9a974203871aa9eccbd418c..ce8cc2d16358da299083471a7a8e62d955ed5558 100644
--- a/device/test/test_device_client.h
+++ b/device/test/test_device_client.h
@@ -2,8 +2,9 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include <memory>
+
#include "base/memory/ref_counted.h"
-#include "base/memory/scoped_ptr.h"
#include "device/core/device_client.h"
namespace base {
@@ -24,8 +25,8 @@ class TestDeviceClient : public DeviceClient {
HidService* GetHidService() override;
UsbService* GetUsbService() override;
- scoped_ptr<HidService> hid_service_;
- scoped_ptr<UsbService> usb_service_;
+ std::unique_ptr<HidService> hid_service_;
+ std::unique_ptr<UsbService> usb_service_;
scoped_refptr<base::SingleThreadTaskRunner> blocking_task_runner_;
};
« no previous file with comments | « device/serial/serial_service_unittest.cc ('k') | device/test/usb_test_gadget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698