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

Unified Diff: chrome/browser/safe_browsing/incident_reporting/download_metadata_manager_unittest.cc

Issue 1551503002: Convert Pass()→std::move() in //chrome (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: chrome/browser/safe_browsing/incident_reporting/download_metadata_manager_unittest.cc
diff --git a/chrome/browser/safe_browsing/incident_reporting/download_metadata_manager_unittest.cc b/chrome/browser/safe_browsing/incident_reporting/download_metadata_manager_unittest.cc
index 0bd6e03ca4e7989ec92b61496af3808f5f67328c..2e2fe2b606c4703a8f665576e7a030714b5ce1a3 100644
--- a/chrome/browser/safe_browsing/incident_reporting/download_metadata_manager_unittest.cc
+++ b/chrome/browser/safe_browsing/incident_reporting/download_metadata_manager_unittest.cc
@@ -122,7 +122,7 @@ class DownloadMetadataManagerTestBase : public ::testing::Test {
request->set_url(url);
request->mutable_digests();
request->set_length(kTestDownloadLength);
- return request.Pass();
+ return request;
}
// Returns a new DownloadMetdata for the given download id.
@@ -133,7 +133,7 @@ class DownloadMetadataManagerTestBase : public ::testing::Test {
metadata->mutable_download();
details->set_download_time_msec(kTestDownloadTimeMsec);
details->set_allocated_download(MakeTestRequest(kTestUrl).release());
- return metadata.Pass();
+ return metadata;
}
// Writes a test DownloadMetadata file for the given download id to the
@@ -157,7 +157,7 @@ class DownloadMetadataManagerTestBase : public ::testing::Test {
return scoped_ptr<DownloadMetadata>();
scoped_ptr<DownloadMetadata> result(new DownloadMetadata);
EXPECT_TRUE(result->ParseFromString(data));
- return result.Pass();
+ return result;
}
// Runs all tasks posted to the test thread's message loop.

Powered by Google App Engine
This is Rietveld 408576698