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

Unified Diff: chrome/browser/net/dns_probe_runner_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/net/dns_probe_runner_unittest.cc
diff --git a/chrome/browser/net/dns_probe_runner_unittest.cc b/chrome/browser/net/dns_probe_runner_unittest.cc
index 5020afc0bea87f7f61edb1244af7051669f6cff8..da9667510489237e72b4a61e06b3a5baa4f24ef9 100644
--- a/chrome/browser/net/dns_probe_runner_unittest.cc
+++ b/chrome/browser/net/dns_probe_runner_unittest.cc
@@ -2,11 +2,14 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "chrome/browser/net/dns_probe_runner.h"
+
+#include <utility>
+
#include "base/bind.h"
#include "base/memory/weak_ptr.h"
#include "base/message_loop/message_loop.h"
#include "base/run_loop.h"
-#include "chrome/browser/net/dns_probe_runner.h"
#include "chrome/browser/net/dns_probe_test_util.h"
#include "content/public/test/test_browser_thread_bundle.h"
#include "net/dns/dns_client.h"
@@ -93,7 +96,7 @@ TEST_F(DnsProbeRunnerTest, InvalidDnsConfig) {
DnsConfig empty_config;
dns_client->SetConfig(empty_config);
ASSERT_EQ(NULL, dns_client->GetTransactionFactory());
- runner_.SetClient(dns_client.Pass());
+ runner_.SetClient(std::move(dns_client));
TestDnsProbeRunnerCallback callback;

Powered by Google App Engine
This is Rietveld 408576698