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

Unified Diff: chrome/browser/policy/cloud/component_cloud_policy_service_unittest.cc

Issue 47513018: Make the internal storage of policy::Schemas ref counted. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@chrome-policy-schema-4-new-generate
Patch Set: rebase Created 7 years, 1 month 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: chrome/browser/policy/cloud/component_cloud_policy_service_unittest.cc
diff --git a/chrome/browser/policy/cloud/component_cloud_policy_service_unittest.cc b/chrome/browser/policy/cloud/component_cloud_policy_service_unittest.cc
index b4fa459e80329f4234cb622f11f6780246d96492..9c6ae5463386e4b064ab411dad24ebf2679ba494 100644
--- a/chrome/browser/policy/cloud/component_cloud_policy_service_unittest.cc
+++ b/chrome/browser/policy/cloud/component_cloud_policy_service_unittest.cc
@@ -188,11 +188,11 @@ class ComponentCloudPolicyServiceTest : public testing::Test {
return builder_.GetBlob();
}
- scoped_ptr<SchemaOwner> CreateTestSchema() {
+ Schema CreateTestSchema() {
std::string error;
- scoped_ptr<SchemaOwner> schema = SchemaOwner::Parse(kTestSchema, &error);
- EXPECT_TRUE(schema) << error;
- return schema.Pass();
+ Schema schema = Schema::Parse(kTestSchema, &error);
+ EXPECT_TRUE(schema.valid()) << error;
+ return schema;
}
base::MessageLoop loop_;
« no previous file with comments | « chrome/browser/policy/browser_policy_connector.cc ('k') | chrome/browser/policy/generate_policy_source_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698