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

Unified Diff: chrome/browser/policy/generate_policy_source_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/generate_policy_source_unittest.cc
diff --git a/chrome/browser/policy/generate_policy_source_unittest.cc b/chrome/browser/policy/generate_policy_source_unittest.cc
index 174b486f0fedbc1216045c60bd45ada824bf0bca..c82341036e5aa7302eb58c6a9a6681941d9f6891 100644
--- a/chrome/browser/policy/generate_policy_source_unittest.cc
+++ b/chrome/browser/policy/generate_policy_source_unittest.cc
@@ -16,11 +16,8 @@
namespace policy {
TEST(GeneratePolicySource, ChromeSchemaData) {
- scoped_ptr<SchemaOwner> schema_owner =
- SchemaOwner::Wrap(GetChromeSchemaData());
- ASSERT_TRUE(schema_owner);
-
- Schema schema = schema_owner->schema();
+ Schema schema = Schema::Wrap(GetChromeSchemaData());
+ ASSERT_TRUE(schema.valid());
EXPECT_EQ(base::Value::TYPE_DICTIONARY, schema.type());
Schema subschema = schema.GetAdditionalProperties();

Powered by Google App Engine
This is Rietveld 408576698