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

Unified Diff: blimp/net/thread_pipe_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/tcp_engine_transport.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/net/thread_pipe_manager_unittest.cc
diff --git a/blimp/net/thread_pipe_manager_unittest.cc b/blimp/net/thread_pipe_manager_unittest.cc
index 30a73fd872cc36916ff521c8acf473d7a62670af..2e0622058180d097b82534894879d6bf6cee2460 100644
--- a/blimp/net/thread_pipe_manager_unittest.cc
+++ b/blimp/net/thread_pipe_manager_unittest.cc
@@ -99,8 +99,8 @@ class FakeBrowserConnectionHandler : public BrowserConnectionHandler {
BlimpMessage::FeatureCase feature_case,
BlimpMessageProcessor* incoming_processor) override {
DCHECK(task_runner_->RunsTasksOnCurrentThread());
- return base::WrapUnique(
- new FakeFeaturePeer(feature_case, incoming_processor, task_runner_));
+ return base::MakeUnique<FakeFeaturePeer>(feature_case, incoming_processor,
+ task_runner_);
}
private:
@@ -117,10 +117,10 @@ class ThreadPipeManagerTest : public testing::Test {
void SetUp() override {
ASSERT_TRUE(thread_.Start());
- connection_handler_ = base::WrapUnique(
- new FakeBrowserConnectionHandler(thread_.task_runner()));
- pipe_manager_ = base::WrapUnique(new ThreadPipeManager(
- thread_.task_runner(), connection_handler_.get()));
+ connection_handler_ =
+ base::MakeUnique<FakeBrowserConnectionHandler>(thread_.task_runner());
+ pipe_manager_ = base::MakeUnique<ThreadPipeManager>(
+ thread_.task_runner(), connection_handler_.get());
input_feature_.reset(
new FakeFeature(BlimpMessage::kInput, pipe_manager_.get()));
« no previous file with comments | « blimp/net/tcp_engine_transport.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698