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

Unified Diff: device/hid/hid_connection_unittest.cc

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/hid/hid_connection_mac.h ('k') | device/hid/hid_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/hid/hid_connection_unittest.cc
diff --git a/device/hid/hid_connection_unittest.cc b/device/hid/hid_connection_unittest.cc
index b9b30c3ca592d3c70a0c3f0cece02d80f74d943e..f05d79dc86fff574c216d9a4e46db0ae54a34ba6 100644
--- a/device/hid/hid_connection_unittest.cc
+++ b/device/hid/hid_connection_unittest.cc
@@ -2,19 +2,20 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "device/hid/hid_connection.h"
+
#include <stddef.h>
+#include <memory>
#include <string>
#include <vector>
#include "base/bind.h"
#include "base/callback.h"
-#include "base/memory/scoped_ptr.h"
#include "base/run_loop.h"
#include "base/scoped_observer.h"
#include "base/strings/utf_string_conversions.h"
#include "base/test/test_io_thread.h"
-#include "device/hid/hid_connection.h"
#include "device/hid/hid_service.h"
#include "device/test/test_device_client.h"
#include "device/test/usb_test_gadget.h"
@@ -168,11 +169,11 @@ class HidConnectionTest : public testing::Test {
ASSERT_NE(device_id_, kInvalidHidDeviceId);
}
- scoped_ptr<base::MessageLoopForUI> message_loop_;
- scoped_ptr<base::TestIOThread> io_thread_;
- scoped_ptr<TestDeviceClient> device_client_;
+ std::unique_ptr<base::MessageLoopForUI> message_loop_;
+ std::unique_ptr<base::TestIOThread> io_thread_;
+ std::unique_ptr<TestDeviceClient> device_client_;
HidService* service_;
- scoped_ptr<UsbTestGadget> test_gadget_;
+ std::unique_ptr<UsbTestGadget> test_gadget_;
HidDeviceId device_id_;
};
« no previous file with comments | « device/hid/hid_connection_mac.h ('k') | device/hid/hid_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698