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

Unified Diff: components/policy/core/common/policy_loader_mac_unittest.cc

Issue 1579863003: Convert Pass()→std::move() for Mac build. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 months 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 | « components/policy/core/common/policy_loader_mac.mm ('k') | components/wifi/network_properties.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/policy/core/common/policy_loader_mac_unittest.cc
diff --git a/components/policy/core/common/policy_loader_mac_unittest.cc b/components/policy/core/common/policy_loader_mac_unittest.cc
index 3ab739443889fd73618ba2939abe51fc2c6c85a6..9f51e05f22b3fd04fe62fe26fc3bb98b5f667a33 100644
--- a/components/policy/core/common/policy_loader_mac_unittest.cc
+++ b/components/policy/core/common/policy_loader_mac_unittest.cc
@@ -2,8 +2,12 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
+#include "components/policy/core/common/policy_loader_mac.h"
+
#include <CoreFoundation/CoreFoundation.h>
+#include <utility>
+
#include "base/callback.h"
#include "base/files/file_path.h"
#include "base/mac/scoped_cftyperef.h"
@@ -14,7 +18,6 @@
#include "components/policy/core/common/configuration_policy_provider_test.h"
#include "components/policy/core/common/external_data_fetcher.h"
#include "components/policy/core/common/policy_bundle.h"
-#include "components/policy/core/common/policy_loader_mac.h"
#include "components/policy/core/common/policy_map.h"
#include "components/policy/core/common/policy_test_utils.h"
#include "components/policy/core/common/policy_types.h"
@@ -73,7 +76,7 @@ ConfigurationPolicyProvider* TestHarness::CreateProvider(
prefs_ = new MockPreferences();
scoped_ptr<AsyncPolicyLoader> loader(
new PolicyLoaderMac(task_runner, base::FilePath(), prefs_));
- return new AsyncPolicyProvider(registry, loader.Pass());
+ return new AsyncPolicyProvider(registry, std::move(loader));
}
void TestHarness::InstallEmptyPolicy() {}
@@ -144,7 +147,8 @@ class PolicyLoaderMacTest : public PolicyTestBase {
PolicyTestBase::SetUp();
scoped_ptr<AsyncPolicyLoader> loader(
new PolicyLoaderMac(loop_.task_runner(), base::FilePath(), prefs_));
- provider_.reset(new AsyncPolicyProvider(&schema_registry_, loader.Pass()));
+ provider_.reset(
+ new AsyncPolicyProvider(&schema_registry_, std::move(loader)));
provider_->Init(&schema_registry_);
}
« no previous file with comments | « components/policy/core/common/policy_loader_mac.mm ('k') | components/wifi/network_properties.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698