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

Unified Diff: content/browser/appcache/appcache_request_handler_unittest.cc

Issue 1545243002: Convert Pass()→std::move() in //content/browser (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: content/browser/appcache/appcache_request_handler_unittest.cc
diff --git a/content/browser/appcache/appcache_request_handler_unittest.cc b/content/browser/appcache/appcache_request_handler_unittest.cc
index 4a677f21dc864c2dcd4cf1d80abff2dcc2a0c7d8..46ce987cc904d21add1867345dd13ba2803f297c 100644
--- a/content/browser/appcache/appcache_request_handler_unittest.cc
+++ b/content/browser/appcache/appcache_request_handler_unittest.cc
@@ -2,10 +2,12 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include <stdint.h>
+#include "content/browser/appcache/appcache_request_handler.h"
+#include <stdint.h>
#include <stack>
#include <string>
+#include <utility>
#include <vector>
#include "base/bind.h"
@@ -20,7 +22,6 @@
#include "base/threading/thread.h"
#include "content/browser/appcache/appcache.h"
#include "content/browser/appcache/appcache_backend_impl.h"
-#include "content/browser/appcache/appcache_request_handler.h"
#include "content/browser/appcache/appcache_url_request_job.h"
#include "content/browser/appcache/mock_appcache_policy.h"
#include "content/browser/appcache/mock_appcache_service.h"
@@ -119,7 +120,7 @@ class AppCacheRequestHandlerTest : public testing::Test {
~MockURLRequestJobFactory() override { DCHECK(!job_); }
- void SetJob(scoped_ptr<net::URLRequestJob> job) { job_ = job.Pass(); }
+ void SetJob(scoped_ptr<net::URLRequestJob> job) { job_ = std::move(job); }
net::URLRequestJob* MaybeCreateJobWithProtocolHandler(
const std::string& scheme,
@@ -816,7 +817,7 @@ class AppCacheRequestHandlerTest : public testing::Test {
base::WeakPtr<AppCacheURLRequestJob> weak_job = job_->GetWeakPtr();
- job_factory_->SetJob(job_.Pass());
+ job_factory_->SetJob(std::move(job_));
request_->Start();
ASSERT_TRUE(weak_job);
EXPECT_TRUE(weak_job->has_been_started());
« no previous file with comments | « content/browser/appcache/appcache_request_handler.cc ('k') | content/browser/appcache/appcache_service_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698