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

Unified Diff: components/policy/core/common/schema_unittest.cc

Issue 171403004: Add touch flag to output of Schema::Normalize() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@split-1
Patch Set: Created 6 years, 10 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
« no previous file with comments | « components/policy/core/common/schema.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/policy/core/common/schema_unittest.cc
diff --git a/components/policy/core/common/schema_unittest.cc b/components/policy/core/common/schema_unittest.cc
index c0c3193eadde8380cd411e13346fa6a6ee1b1e85..3a8c4819e85063bcd4a904eb7b5c48ea691d29a6 100644
--- a/components/policy/core/common/schema_unittest.cc
+++ b/components/policy/core/common/schema_unittest.cc
@@ -128,7 +128,7 @@ void TestSchemaValidation(Schema schema,
// Schema::Validate().
error = kNoErrorReturned;
scoped_ptr<base::Value> cloned_value(value.DeepCopy());
- returned = schema.Normalize(cloned_value.get(), strategy, NULL, &error);
+ returned = schema.Normalize(cloned_value.get(), strategy, NULL, &error, NULL);
Joao da Silva 2014/02/20 12:46:41 Add tests that verify the |changed| argument
binjin 2014/02/20 15:48:34 Done.
EXPECT_EQ(returned, expected_return_value) << error;
// Test that Schema::Normalize() have actually dropped invalid and unknown
@@ -136,8 +136,8 @@ void TestSchemaValidation(Schema schema,
if (expected_return_value) {
EXPECT_TRUE(
schema.Validate(*cloned_value.get(), SCHEMA_STRICT, NULL, &error));
- EXPECT_TRUE(
- schema.Normalize(cloned_value.get(), SCHEMA_STRICT, NULL, &error));
+ EXPECT_TRUE(schema.Normalize(
+ cloned_value.get(), SCHEMA_STRICT, NULL, &error, NULL));
}
}
« no previous file with comments | « components/policy/core/common/schema.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698