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

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

Issue 1902633006: Convert //components/policy from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments and use namespace alias Created 4 years, 8 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
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 9f51e05f22b3fd04fe62fe26fc3bb98b5f667a33..3ce851ddeb1241c590d7ed8712462b1185e2aa63 100644
--- a/components/policy/core/common/policy_loader_mac_unittest.cc
+++ b/components/policy/core/common/policy_loader_mac_unittest.cc
@@ -74,7 +74,7 @@ ConfigurationPolicyProvider* TestHarness::CreateProvider(
SchemaRegistry* registry,
scoped_refptr<base::SequencedTaskRunner> task_runner) {
prefs_ = new MockPreferences();
- scoped_ptr<AsyncPolicyLoader> loader(
+ std::unique_ptr<AsyncPolicyLoader> loader(
new PolicyLoaderMac(task_runner, base::FilePath(), prefs_));
return new AsyncPolicyProvider(registry, std::move(loader));
}
@@ -145,7 +145,7 @@ class PolicyLoaderMacTest : public PolicyTestBase {
void SetUp() override {
PolicyTestBase::SetUp();
- scoped_ptr<AsyncPolicyLoader> loader(
+ std::unique_ptr<AsyncPolicyLoader> loader(
new PolicyLoaderMac(loop_.task_runner(), base::FilePath(), prefs_));
provider_.reset(
new AsyncPolicyProvider(&schema_registry_, std::move(loader)));
@@ -158,7 +158,7 @@ class PolicyLoaderMacTest : public PolicyTestBase {
}
MockPreferences* prefs_;
- scoped_ptr<AsyncPolicyProvider> provider_;
+ std::unique_ptr<AsyncPolicyProvider> provider_;
};
TEST_F(PolicyLoaderMacTest, Invalid) {
« no previous file with comments | « components/policy/core/common/policy_loader_mac.mm ('k') | components/policy/core/common/policy_loader_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698