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

Unified Diff: blimp/net/engine_connection_manager_unittest.cc

Issue 2250433006: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 4 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 | « blimp/net/blob_channel/blob_channel_integration_test.cc ('k') | blimp/net/tcp_engine_transport.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/net/engine_connection_manager_unittest.cc
diff --git a/blimp/net/engine_connection_manager_unittest.cc b/blimp/net/engine_connection_manager_unittest.cc
index d178bb734bfc7a66d4906212d96e79fc789ad548..f69113a0b164f3e5a7207aabc90cd6b09c3f3bd4 100644
--- a/blimp/net/engine_connection_manager_unittest.cc
+++ b/blimp/net/engine_connection_manager_unittest.cc
@@ -39,9 +39,9 @@ class EngineConnectionManagerTest : public testing::Test {
~EngineConnectionManagerTest() override {}
std::unique_ptr<BlimpConnection> CreateConnection() {
- return base::WrapUnique(
- new BlimpConnection(base::WrapUnique(new MockPacketReader),
- base::WrapUnique(new MockPacketWriter)));
+ return base::MakeUnique<BlimpConnection>(
+ base::WrapUnique(new MockPacketReader),
+ base::WrapUnique(new MockPacketWriter));
}
protected:
« no previous file with comments | « blimp/net/blob_channel/blob_channel_integration_test.cc ('k') | blimp/net/tcp_engine_transport.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698