Index: tools/json_schema_compiler/test/error_generation_unittest.cc |
diff --git a/tools/json_schema_compiler/test/error_generation_unittest.cc b/tools/json_schema_compiler/test/error_generation_unittest.cc |
index e55ecb988c73d3844e0be3ea834cec5266d77aa5..9c22682bbf1409b6c9b832c417282602d6ff3055 100644 |
--- a/tools/json_schema_compiler/test/error_generation_unittest.cc |
+++ b/tools/json_schema_compiler/test/error_generation_unittest.cc |
@@ -100,8 +100,7 @@ TEST(JsonSchemaCompilerErrorTest, ParamIsRequired) { |
EXPECT_TRUE(TestFunction::Params::Create(*params_value, &error)); |
} |
{ |
- std::unique_ptr<base::ListValue> params_value = |
- List(base::Value::CreateNullValue().release()); |
+ std::unique_ptr<base::ListValue> params_value = List(new Value()); |
base::string16 error; |
EXPECT_FALSE(TestFunction::Params::Create(*params_value, &error)); |
EXPECT_TRUE(EqualsUtf16("'num' is required", error)); |