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

Unified Diff: components/policy/core/common/mac_util_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/mac_util_unittest.cc
diff --git a/components/policy/core/common/mac_util_unittest.cc b/components/policy/core/common/mac_util_unittest.cc
index 03a2aafa2b4d3304fe80b251ea5480bc79342723..46f108a8a02b085d713503e2eac3d71b35403326 100644
--- a/components/policy/core/common/mac_util_unittest.cc
+++ b/components/policy/core/common/mac_util_unittest.cc
@@ -2,12 +2,14 @@
// 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/mac_util.h"
+
#include <CoreFoundation/CoreFoundation.h>
+#include <memory>
+
#include "base/mac/scoped_cftyperef.h"
-#include "base/memory/scoped_ptr.h"
#include "base/values.h"
-#include "components/policy/core/common/mac_util.h"
#include "components/policy/core/common/policy_test_utils.h"
#include "testing/gtest/include/gtest/gtest.h"
@@ -52,7 +54,7 @@ TEST(PolicyMacUtilTest, PropertyToValue) {
base::ScopedCFTypeRef<CFPropertyListRef> property(ValueToProperty(&root));
ASSERT_TRUE(property);
- scoped_ptr<base::Value> value = PropertyToValue(property);
+ std::unique_ptr<base::Value> value = PropertyToValue(property);
ASSERT_TRUE(value);
EXPECT_TRUE(root.Equals(value.get()));
}
« no previous file with comments | « components/policy/core/common/mac_util.cc ('k') | components/policy/core/common/mock_configuration_policy_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698