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

Unified Diff: components/policy/core/browser/android/policy_converter_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/browser/android/policy_converter_unittest.cc
diff --git a/components/policy/core/browser/android/policy_converter_unittest.cc b/components/policy/core/browser/android/policy_converter_unittest.cc
index 50ddd9fa493bf802c4459056bc29621a377032a3..bcba21f9c0c7b6e7488b52a8652190a9f38a5831 100644
--- a/components/policy/core/browser/android/policy_converter_unittest.cc
+++ b/components/policy/core/browser/android/policy_converter_unittest.cc
@@ -53,8 +53,9 @@ class PolicyConverterTest : public testing::Test {
// Converts the passed in value to the passed in schema, and serializes the
// result to JSON, to make it easier to compare with EXPECT_EQ.
std::string Convert(Value* value, const Schema& value_schema) {
- scoped_ptr<Value> converted_value(PolicyConverter::ConvertValueToSchema(
- scoped_ptr<Value>(value), value_schema));
+ std::unique_ptr<Value> converted_value(
+ PolicyConverter::ConvertValueToSchema(std::unique_ptr<Value>(value),
+ value_schema));
std::string json_string;
EXPECT_TRUE(
@@ -68,7 +69,7 @@ class PolicyConverterTest : public testing::Test {
std::string ConvertJavaStringArrayToListValue(
JNIEnv* env,
const JavaRef<jobjectArray>& java_array) {
- scoped_ptr<ListValue> list =
+ std::unique_ptr<ListValue> list =
PolicyConverter::ConvertJavaStringArrayToListValue(env, java_array);
std::string json_string;
« no previous file with comments | « components/policy/core/browser/android/policy_converter.cc ('k') | components/policy/core/browser/browser_policy_connector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698