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

Unified Diff: net/filter/filter_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/extras/sqlite/sqlite_channel_id_store.cc ('k') | net/filter/mock_filter_context.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/filter/filter_unittest.cc
diff --git a/net/filter/filter_unittest.cc b/net/filter/filter_unittest.cc
index c44f23b38fed7c83066fa8ed417cffc8210d72c8..d10fadc637bb754029d3524bd19e108335f0b7f8 100644
--- a/net/filter/filter_unittest.cc
+++ b/net/filter/filter_unittest.cc
@@ -2,9 +2,12 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "net/filter/filter.h"
+
+#include <utility>
+
#include "base/macros.h"
#include "net/base/io_buffer.h"
-#include "net/filter/filter.h"
#include "net/filter/mock_filter_context.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -55,7 +58,7 @@ TEST(FilterTest, SdchEncoding) {
MockFilterContext filter_context;
// Empty handle indicates to filter that SDCH is active.
filter_context.SetSdchResponse(
- SdchManager::CreateEmptyDictionarySetForTesting().Pass());
+ SdchManager::CreateEmptyDictionarySetForTesting());
std::vector<Filter::FilterType> encoding_types;
@@ -93,7 +96,7 @@ TEST(FilterTest, MissingSdchEncoding) {
const std::string kTextHtmlMime("text/html");
MockFilterContext filter_context;
filter_context.SetSdchResponse(
- SdchManager::CreateEmptyDictionarySetForTesting().Pass());
+ SdchManager::CreateEmptyDictionarySetForTesting());
std::vector<Filter::FilterType> encoding_types;
@@ -154,8 +157,8 @@ TEST(FilterTest, ThreeFilterChain) {
filter2->InitBuffer(32 * 1024);
filter3->InitBuffer(32 * 1024);
- filter2->next_filter_ = filter3.Pass();
- filter1->next_filter_ = filter2.Pass();
+ filter2->next_filter_ = std::move(filter3);
+ filter1->next_filter_ = std::move(filter2);
// Initialize the input array with a varying byte sequence.
const size_t input_array_size = 64 * 1024;
« no previous file with comments | « net/extras/sqlite/sqlite_channel_id_store.cc ('k') | net/filter/mock_filter_context.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698