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

Unified Diff: sync/internal_api/attachments/on_disk_attachment_store_unittest.cc

Issue 1539843002: Convert Pass()→std::move() in sync/ (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: sync/internal_api/attachments/on_disk_attachment_store_unittest.cc
diff --git a/sync/internal_api/attachments/on_disk_attachment_store_unittest.cc b/sync/internal_api/attachments/on_disk_attachment_store_unittest.cc
index 1f3ede6757cc6f92fb76764c70da3f385b300103..a114f0bfe342d6a4011942af76247fbe5aa556a3 100644
--- a/sync/internal_api/attachments/on_disk_attachment_store_unittest.cc
+++ b/sync/internal_api/attachments/on_disk_attachment_store_unittest.cc
@@ -2,9 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "sync/internal_api/public/attachments/on_disk_attachment_store.h"
-
#include <string>
+#include <utility>
#include "base/files/file_path.h"
#include "base/files/file_util.h"
@@ -15,6 +14,7 @@
#include "base/time/time.h"
#include "sync/internal_api/attachments/attachment_store_test_template.h"
#include "sync/internal_api/attachments/proto/attachment_store.pb.h"
+#include "sync/internal_api/public/attachments/on_disk_attachment_store.h"
Nicolas Zea 2015/12/18 23:46:55 keep up top
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/leveldatabase/src/include/leveldb/db.h"
@@ -97,7 +97,7 @@ class OnDiskAttachmentStoreSpecificTest : public testing::Test {
const AttachmentStore::Result& source_result,
scoped_ptr<AttachmentMetadataList> source_metadata) {
CopyResult(destination_result, source_result);
- *destination_metadata = source_metadata.Pass();
+ *destination_metadata = std::move(source_metadata);
}
scoped_ptr<leveldb::DB> OpenLevelDB() {

Powered by Google App Engine
This is Rietveld 408576698