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

Unified Diff: content/child/web_url_loader_impl_unittest.cc

Issue 2254173002: Re-write many calls to WrapUnique() with MakeUnique() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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 | « content/child/web_url_loader_impl.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/child/web_url_loader_impl_unittest.cc
diff --git a/content/child/web_url_loader_impl_unittest.cc b/content/child/web_url_loader_impl_unittest.cc
index b5340f5002c90b633f13014c4dd9e20aca67ad15..7444763d19d584f2c81fb4f117dffb0d6ccd0a99 100644
--- a/content/child/web_url_loader_impl_unittest.cc
+++ b/content/child/web_url_loader_impl_unittest.cc
@@ -320,7 +320,7 @@ class WebURLLoaderImplTest : public testing::Test {
EXPECT_EQ("", client()->received_data());
auto size = strlen(kTestData);
peer()->OnReceivedData(
- base::WrapUnique(new FixedReceivedData(kTestData, size, size, size)));
+ base::MakeUnique<FixedReceivedData>(kTestData, size, size, size));
EXPECT_EQ(kTestData, client()->received_data());
}
@@ -353,8 +353,8 @@ class WebURLLoaderImplTest : public testing::Test {
void DoReceiveDataFtp() {
auto size = strlen(kFtpDirListing);
- peer()->OnReceivedData(base::WrapUnique(
- new FixedReceivedData(kFtpDirListing, size, size, size)));
+ peer()->OnReceivedData(
+ base::MakeUnique<FixedReceivedData>(kFtpDirListing, size, size, size));
// The FTP delegate should modify the data the client sees.
EXPECT_NE(kFtpDirListing, client()->received_data());
}
« no previous file with comments | « content/child/web_url_loader_impl.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698