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

Unified Diff: remoting/protocol/http_ice_config_request_unittest.cc

Issue 2253233004: 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 | « remoting/protocol/fake_video_renderer.cc ('k') | remoting/protocol/ice_transport_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/http_ice_config_request_unittest.cc
diff --git a/remoting/protocol/http_ice_config_request_unittest.cc b/remoting/protocol/http_ice_config_request_unittest.cc
index 866764165a35284ac77a333128c7a5c47604e448..821be6a07ba2fd30bbde2deb655a770ab22979d3 100644
--- a/remoting/protocol/http_ice_config_request_unittest.cc
+++ b/remoting/protocol/http_ice_config_request_unittest.cc
@@ -53,7 +53,7 @@ class FakeUrlRequestFactory : public UrlRequestFactory {
const std::string& url) override {
EXPECT_EQ(UrlRequest::Type::POST, type);
CHECK(results_.count(url));
- return base::WrapUnique(new FakeUrlRequest(results_[url]));
+ return base::MakeUnique<FakeUrlRequest>(results_[url]);
}
std::map<std::string, UrlRequest::Result> results_;
@@ -66,7 +66,7 @@ static const char kTestUrl[] = "http://host/ice_config";
class HttpIceConfigRequestTest : public testing::Test {
public:
void OnResult(const IceConfig& config) {
- received_config_ = base::WrapUnique(new IceConfig(config));
+ received_config_ = base::MakeUnique<IceConfig>(config);
}
protected:
« no previous file with comments | « remoting/protocol/fake_video_renderer.cc ('k') | remoting/protocol/ice_transport_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698