Home
last modified time | relevance | path

Searched refs:SetContents (Results 1 – 23 of 23) sorted by relevance

/third_party/gn/src/gn/
Dc_include_iterator_unittest.cc43 file.SetContents(buffer); in TEST()
86 file.SetContents(buffer); in TEST()
107 file.SetContents(buffer); in TEST()
133 file.SetContents(buffer); in TEST()
158 file.SetContents(buffer); in TEST()
172 file.SetContents(buffer); in TEST()
Dtokenizer_unittest.cc22 input_file.SetContents(input); in CheckTokenizer()
42 empty_string_input.SetContents(""); in TEST()
49 whitespace_input.SetContents(" \r \n \r\n"); in TEST()
125 input.SetContents("1 2 \"three\"\n 4"); in TEST()
209 input.SetContents("a\t2\v\"st\tuff\"\f{"); in TEST()
220 input.SetContents("a\t2\v\"st\tuff\"\f{"); in TEST()
Dparser_unittest.cc24 input_file.SetContents(input); in DoParserPrintTest()
42 input_file.SetContents(input); in DoExpressionPrintTest()
59 input_file.SetContents(input); in DoParserErrorTest()
77 input_file.SetContents(input); in DoExpressionErrorTest()
Dheader_checker_unittest.cc155 input_file.SetContents(std::string()); in TEST_F()
290 input_file.SetContents(std::string()); in TEST_F()
326 dummy_input_file.SetContents(std::string()); in TEST_F()
384 input_file.SetContents(std::string(kFileContents)); in TEST_F()
397 input_file.SetContents(std::string()); in TEST_F()
Dinput_file.cc14 void InputFile::SetContents(const std::string& c) { in SetContents() function in InputFile
Dinput_file.h46 void SetContents(const std::string& c);
Dloader_unittest.cc118 file->SetContents(found->second->input_file->contents()); in GetSyncCallback()
128 canned->input_file->SetContents(source); in AddCannedResponse()
Dtest_with_scope.cc73 input_file.SetContents(expr); in ExecuteExpression()
331 input_file_.SetContents(input); in TestParseInput()
Dinput_conversion.cc48 input_file->SetContents(input); in ParseValueOrScope()
184 input_file->SetContents(input); in ParseJSON()
Dheader_checker.cc48 clone_input_file->SetContents(input_file.contents()); in CreatePersistentRange()
306 input_file.SetContents(contents); in CheckFile()
Dstring_utils.cc65 input_file.SetContents( in AppendInterpolatedExpression()
Dsetup.cc576 args_input_file_->SetContents(args); in FillArgsFromCommandLine()
600 args_input_file_->SetContents(contents); in FillArgsFromFile()
Dmetadata_unittest.cc9 TEST(MetadataTest, SetContents) { in TEST() argument
Dcommand_format.cc1252 file.SetContents(input); in FormatStringToString()
/third_party/protobuf/src/google/protobuf/compiler/python/
Dpython_plugin_unittest.cc85 GOOGLE_CHECK_OK(File::SetContents(TestTempDir() + "/test.proto", in TEST()
117 GOOGLE_CHECK_OK(File::SetContents(TestTempDir() + "/test1.proto", in TEST()
125 GOOGLE_CHECK_OK(File::SetContents(TestTempDir() + "/test2.proto", in TEST()
/third_party/protobuf/src/google/protobuf/compiler/cpp/
Dcpp_bootstrap_unittest.cc101 GOOGLE_CHECK_OK(File::SetContents("/tmp/expected.cc", expected_contents, in ExpectFileMatches()
104 File::SetContents("/tmp/actual.cc", actual_contents, true)); in ExpectFileMatches()
Dcpp_plugin_unittest.cc184 GOOGLE_CHECK_OK(File::SetContents(TestTempDir() + "/test.proto", in TEST()
/third_party/protobuf/src/google/protobuf/testing/
Dfile.h93 static bool SetContents( in SetContents() function
/third_party/protobuf/src/google/protobuf/compiler/ruby/
Druby_generator_unittest.cc75 GOOGLE_CHECK_OK(File::SetContents( in RubyTest()
/third_party/protobuf/src/google/protobuf/compiler/java/
Djava_plugin_unittest.cc87 GOOGLE_CHECK_OK(File::SetContents(TestTempDir() + "/test.proto", in TEST()
/third_party/protobuf/src/google/protobuf/compiler/
Dannotation_test_util.cc73 GOOGLE_CHECK_OK(File::SetContents(TestTempDir() + "/" + filename, data, in AddFile()
Dcommand_line_interface_unittest.cc395 GOOGLE_CHECK_OK(File::SetContents( in CreateTempFile()
2539 GOOGLE_CHECK_OK(File::SetContents(filename, input, true)); in RedirectStdinFromText()
2648 GOOGLE_CHECK_OK(File::SetContents(unittest_proto_descriptor_set_filename_, in WriteUnittestProtoDescriptorSet()
Dimporter_unittest.cc286 GOOGLE_CHECK_OK(File::SetContents(filename, contents, true)); in AddFile()