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

Unified Diff: remoting/protocol/content_description_unittest.cc

Issue 1534193004: Use std::move() instead of scoped_ptr<>::Pass(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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: remoting/protocol/content_description_unittest.cc
diff --git a/remoting/protocol/content_description_unittest.cc b/remoting/protocol/content_description_unittest.cc
index 143960db6249f45d33c150dcbe734dd353e418f6..5c65b05ce9ff05fa34ea4eaba6f6e3d4cd0eb37c 100644
--- a/remoting/protocol/content_description_unittest.cc
+++ b/remoting/protocol/content_description_unittest.cc
@@ -19,7 +19,7 @@ TEST(ContentDescriptionTest, FormatAndParse) {
scoped_ptr<CandidateSessionConfig> config =
CandidateSessionConfig::CreateDefault();
ContentDescription description(
- config.Pass(), Authenticator::CreateEmptyAuthenticatorMessage());
+ std::move(config), Authenticator::CreateEmptyAuthenticatorMessage());
scoped_ptr<buzz::XmlElement> xml(description.ToXml());
LOG(ERROR) << xml->Str();
scoped_ptr<ContentDescription> parsed(

Powered by Google App Engine
This is Rietveld 408576698