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

Unified Diff: net/disk_cache/blockfile/index_table_v3_unittest.cc

Issue 1545233002: Convert Pass()→std::move() in //net (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
« no previous file with comments | « net/disk_cache/blockfile/in_flight_backend_io.cc ('k') | net/disk_cache/cache_creator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/disk_cache/blockfile/index_table_v3_unittest.cc
diff --git a/net/disk_cache/blockfile/index_table_v3_unittest.cc b/net/disk_cache/blockfile/index_table_v3_unittest.cc
index e84b743d3e73fe993046157b8b25874f5121554b..e2fca1063e4b6d5b8664ef95114c97898d42cfa2 100644
--- a/net/disk_cache/blockfile/index_table_v3_unittest.cc
+++ b/net/disk_cache/blockfile/index_table_v3_unittest.cc
@@ -2,13 +2,15 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "net/disk_cache/blockfile/index_table_v3.h"
+
#include <stdint.h>
+#include <utility>
#include "base/logging.h"
#include "base/macros.h"
#include "net/disk_cache/blockfile/addr.h"
#include "net/disk_cache/blockfile/disk_format_v3.h"
-#include "net/disk_cache/blockfile/index_table_v3.h"
#include "testing/gtest/include/gtest/gtest.h"
using disk_cache::EntryCell;
@@ -584,7 +586,7 @@ TEST(DiskCacheIndexTable, Doubling) {
// Go from 1024 to 256k cells.
for (int resizes = 0; resizes <= 8; resizes++) {
- scoped_ptr<TestCacheTables> old_cache(cache.Pass());
+ scoped_ptr<TestCacheTables> old_cache(std::move(cache));
cache.reset(new TestCacheTables(size));
cache.get()->CopyFrom(*old_cache.get());
@@ -639,7 +641,7 @@ TEST(DiskCacheIndexTable, BucketChains) {
}
// Double the size.
- scoped_ptr<TestCacheTables> old_cache(cache.Pass());
+ scoped_ptr<TestCacheTables> old_cache(std::move(cache));
cache.reset(new TestCacheTables(size * 2));
cache.get()->CopyFrom(*old_cache.get());
« no previous file with comments | « net/disk_cache/blockfile/in_flight_backend_io.cc ('k') | net/disk_cache/cache_creator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698