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

Unified Diff: chrome/browser/chromeos/policy/network_configuration_updater_unittest.cc

Issue 1557693002: Convert Pass()→std::move() in //chrome/browser/chromeos/policy (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/chromeos/policy/network_configuration_updater_unittest.cc
diff --git a/chrome/browser/chromeos/policy/network_configuration_updater_unittest.cc b/chrome/browser/chromeos/policy/network_configuration_updater_unittest.cc
index 1f2ffd333ebdcd6ef8a8875825f1c482aaee9101..f6ce4951a0c58a6f5c106aa9c66a5cbcff4be3ff 100644
--- a/chrome/browser/chromeos/policy/network_configuration_updater_unittest.cc
+++ b/chrome/browser/chromeos/policy/network_configuration_updater_unittest.cc
@@ -3,6 +3,7 @@
// found in the LICENSE file.
#include <stddef.h>
+#include <utility>
#include "base/bind.h"
#include "base/bind_helpers.h"
@@ -270,7 +271,7 @@ class NetworkConfigurationUpdaterTest : public testing::Test {
if (set_cert_importer) {
EXPECT_TRUE(certificate_importer_owned_);
updater->SetCertificateImporterForTest(
- certificate_importer_owned_.Pass());
+ std::move(certificate_importer_owned_));
}
network_configuration_updater_.reset(updater);
return updater;
@@ -518,7 +519,8 @@ TEST_F(NetworkConfigurationUpdaterTest,
certificate_importer_->SetExpectedONCSource(onc::ONC_SOURCE_USER_POLICY);
ASSERT_TRUE(certificate_importer_owned_);
- updater->SetCertificateImporterForTest(certificate_importer_owned_.Pass());
+ updater->SetCertificateImporterForTest(
+ std::move(certificate_importer_owned_));
EXPECT_EQ(1u, certificate_importer_->GetAndResetImportCount());
}

Powered by Google App Engine
This is Rietveld 408576698