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

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

Issue 2664753002: Remove base::StringValue (Closed)
Patch Set: Rebase Created 3 years, 9 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/schema_unittest.cc
diff --git a/components/policy/core/common/schema_unittest.cc b/components/policy/core/common/schema_unittest.cc
index d63c12dc09f2ebe569f0b4efb86d9a6c201497d7..dd8c0cafe37d41255134d927905e44c10591f3b6 100644
--- a/components/policy/core/common/schema_unittest.cc
+++ b/components/policy/core/common/schema_unittest.cc
@@ -858,16 +858,13 @@ TEST(SchemaTest, Validate) {
Schema subschema = schema.GetProperty("StringWithPattern");
ASSERT_TRUE(subschema.valid());
- TestSchemaValidation(
- subschema, base::StringValue("foobar"), SCHEMA_STRICT, false);
- TestSchemaValidation(
- subschema, base::StringValue("foo"), SCHEMA_STRICT, true);
- TestSchemaValidation(
- subschema, base::StringValue("fo"), SCHEMA_STRICT, false);
- TestSchemaValidation(
- subschema, base::StringValue("fooo"), SCHEMA_STRICT, true);
- TestSchemaValidation(
- subschema, base::StringValue("^foo+$"), SCHEMA_STRICT, false);
+ TestSchemaValidation(subschema, base::Value("foobar"), SCHEMA_STRICT,
+ false);
+ TestSchemaValidation(subschema, base::Value("foo"), SCHEMA_STRICT, true);
+ TestSchemaValidation(subschema, base::Value("fo"), SCHEMA_STRICT, false);
+ TestSchemaValidation(subschema, base::Value("fooo"), SCHEMA_STRICT, true);
+ TestSchemaValidation(subschema, base::Value("^foo+$"), SCHEMA_STRICT,
+ false);
}
// Tests on ObjectWithPatternProperties.

Powered by Google App Engine
This is Rietveld 408576698