summaryrefslogtreecommitdiffstats
path: root/tools/json_schema_compiler/test/error_generation_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'tools/json_schema_compiler/test/error_generation_unittest.cc')
-rw-r--r--tools/json_schema_compiler/test/error_generation_unittest.cc6
1 files changed, 4 insertions, 2 deletions
diff --git a/tools/json_schema_compiler/test/error_generation_unittest.cc b/tools/json_schema_compiler/test/error_generation_unittest.cc
index 42f9576..904b6c9 100644
--- a/tools/json_schema_compiler/test/error_generation_unittest.cc
+++ b/tools/json_schema_compiler/test/error_generation_unittest.cc
@@ -170,7 +170,8 @@ TEST(JsonSchemaCompilerErrorTest, UnableToPopulateArray) {
scoped_ptr<base::ListValue> params_value = List(
new FundamentalValue(5),
new FundamentalValue(false));
- EXPECT_TRUE(EqualsUtf16("unable to populate array 'integers'",
+ EXPECT_TRUE(EqualsUtf16(
+ "expected integer, got boolean; unable to populate array 'integers'",
GetPopulateError<ChoiceType::Integers>(*params_value)));
}
}
@@ -294,7 +295,8 @@ TEST(JsonSchemaCompilerErrorTest, OptionalUnableToPopulateArray) {
base::string16 error;
EXPECT_TRUE(OptionalChoiceType::Integers::Populate(*params_value, &out,
&error));
- EXPECT_TRUE(EqualsUtf16("unable to populate array 'integers'",
+ EXPECT_TRUE(EqualsUtf16(
+ "expected integer, got boolean; unable to populate array 'integers'",
error));
EXPECT_EQ(NULL, out.as_integer.get());
}