| Index: tools/gn/function_write_file_unittest.cc
|
| diff --git a/tools/gn/function_write_file_unittest.cc b/tools/gn/function_write_file_unittest.cc
|
| index e2e50e6b68c36601ade0bff9cb4be4b1c9f04fef..90bfa4c81eb8f6f46014a1a51e0536e4cb4b5351 100644
|
| --- a/tools/gn/function_write_file_unittest.cc
|
| +++ b/tools/gn/function_write_file_unittest.cc
|
| @@ -18,7 +18,7 @@ bool CallWriteFile(Scope* scope,
|
| Err err;
|
|
|
| std::vector<Value> args;
|
| - args.push_back(Value(NULL, filename));
|
| + args.push_back(Value(nullptr, filename));
|
| args.push_back(data);
|
|
|
| FunctionCallNode function_call;
|
| @@ -39,7 +39,7 @@ TEST(WriteFile, WithData) {
|
| setup.build_settings()->SetRootPath(temp_dir.path());
|
| setup.build_settings()->SetBuildDir(SourceDir("//out/"));
|
|
|
| - Value some_string(NULL, "some string contents");
|
| + Value some_string(nullptr, "some string contents");
|
|
|
| // Should refuse to write files outside of the output dir.
|
| EXPECT_FALSE(CallWriteFile(setup.scope(), "//in_root.txt", some_string));
|
| @@ -55,9 +55,9 @@ TEST(WriteFile, WithData) {
|
| EXPECT_EQ(some_string.string_value(), result_contents);
|
|
|
| // Update the contents with a list of a string and a number.
|
| - Value some_list(NULL, Value::LIST);
|
| - some_list.list_value().push_back(Value(NULL, "line 1"));
|
| - some_list.list_value().push_back(Value(NULL, static_cast<int64>(2)));
|
| + Value some_list(nullptr, Value::LIST);
|
| + some_list.list_value().push_back(Value(nullptr, "line 1"));
|
| + some_list.list_value().push_back(Value(nullptr, static_cast<int64>(2)));
|
| EXPECT_TRUE(CallWriteFile(setup.scope(), "//out/foo.txt", some_list));
|
| EXPECT_TRUE(base::ReadFileToString(foo_name, &result_contents));
|
| EXPECT_EQ("line 1\n2\n", result_contents);
|
|
|