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

Unified Diff: components/proximity_auth/bluetooth_connection_unittest.cc

Issue 1912433002: Convert //components/proximity_auth from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits 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: components/proximity_auth/bluetooth_connection_unittest.cc
diff --git a/components/proximity_auth/bluetooth_connection_unittest.cc b/components/proximity_auth/bluetooth_connection_unittest.cc
index 8782bbcfa43d01cf87029b618463fec87c5b73ab..0103a7da43d1b0bd84c52474a8d31ca20e6e83a0 100644
--- a/components/proximity_auth/bluetooth_connection_unittest.cc
+++ b/components/proximity_auth/bluetooth_connection_unittest.cc
@@ -400,7 +400,7 @@ TEST_F(ProximityAuthBluetoothConnectionTest,
Connect(&connection);
scoped_refptr<net::IOBuffer> buffer;
- scoped_ptr<TestWireMessage> wire_message(new TestWireMessage);
+ std::unique_ptr<TestWireMessage> wire_message(new TestWireMessage);
EXPECT_CALL(*socket_, Send(_, kSerializedMessageLength, _, _))
.WillOnce(SaveArg<0>(&buffer));
connection.SendMessage(std::move(wire_message));
@@ -418,7 +418,7 @@ TEST_F(ProximityAuthBluetoothConnectionTest, SendMessage_Success) {
StrictMock<MockBluetoothConnection> connection;
Connect(&connection);
- scoped_ptr<TestWireMessage> wire_message(new TestWireMessage);
+ std::unique_ptr<TestWireMessage> wire_message(new TestWireMessage);
// Ownership will be transfered below, so grab a reference here.
TestWireMessage* expected_wire_message = wire_message.get();
@@ -440,7 +440,7 @@ TEST_F(ProximityAuthBluetoothConnectionTest, SendMessage_Failure) {
StrictMock<MockBluetoothConnection> connection;
Connect(&connection);
- scoped_ptr<TestWireMessage> wire_message(new TestWireMessage);
+ std::unique_ptr<TestWireMessage> wire_message(new TestWireMessage);
// Ownership will be transfered below, so grab a reference here.
TestWireMessage* expected_wire_message = wire_message.get();

Powered by Google App Engine
This is Rietveld 408576698