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

Unified Diff: components/policy/core/common/cloud/user_cloud_policy_manager_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/cloud/user_cloud_policy_manager_unittest.cc
diff --git a/components/policy/core/common/cloud/user_cloud_policy_manager_unittest.cc b/components/policy/core/common/cloud/user_cloud_policy_manager_unittest.cc
index c60a6acf77894b95886c4a8143a5e4de4171f206..051845acbb122c75e220c978e7d70d46697b8c40 100644
--- a/components/policy/core/common/cloud/user_cloud_policy_manager_unittest.cc
+++ b/components/policy/core/common/cloud/user_cloud_policy_manager_unittest.cc
@@ -55,8 +55,8 @@ class UserCloudPolicyManagerTest : public testing::Test {
store_ = new MockUserCloudPolicyStore();
EXPECT_CALL(*store_, Load());
manager_.reset(new UserCloudPolicyManager(
- scoped_ptr<UserCloudPolicyStore>(store_), base::FilePath(),
- scoped_ptr<CloudExternalDataManager>(), loop_.task_runner(),
+ std::unique_ptr<UserCloudPolicyStore>(store_), base::FilePath(),
+ std::unique_ptr<CloudExternalDataManager>(), loop_.task_runner(),
loop_.task_runner(), loop_.task_runner()));
manager_->Init(&schema_registry_);
manager_->AddObserver(&observer_);
@@ -74,7 +74,7 @@ class UserCloudPolicyManagerTest : public testing::Test {
SchemaRegistry schema_registry_;
MockConfigurationPolicyObserver observer_;
MockUserCloudPolicyStore* store_; // Not owned.
- scoped_ptr<UserCloudPolicyManager> manager_;
+ std::unique_ptr<UserCloudPolicyManager> manager_;
private:
DISALLOW_COPY_AND_ASSIGN(UserCloudPolicyManagerTest);

Powered by Google App Engine
This is Rietveld 408576698