Home
last modified time | relevance | path

Searched refs:file_content (Results 1 – 25 of 27) sorted by relevance

12

/third_party/skia/tools/
Dsanitize_source_files.py112 def CopywriteChecker(file_content, unused_file_path): argument
116 return file_content
119 def EOFOneAndOnlyOneNewlineAdder(file_content, file_path): argument
121 if file_content and (file_content[-1] != '\n' or file_content[-2:-1] == '\n'):
122 file_content = file_content.rstrip()
123 file_content += '\n'
125 return file_content
128 def SvnEOLChecker(file_content, file_path): argument
135 return file_content
/third_party/skia/third_party/externals/tint/src/
Dsource.h149 : range(rng), file_path(file->path), file_content(&file->content) {} in Source()
159 : range(rng), file_path(path), file_content(content) {} in range()
163 return Source(Range{range.begin}, file_path, file_content); in Begin()
168 return Source(Range{range.end}, file_path, file_content); in End()
175 return Source(range + n, file_path, file_content);
185 if (file_content != rhs.file_content) {
198 start.file_path, start.file_content); in Combine()
206 const FileContent* file_content = nullptr; variable
Dsource.cc53 if (source.file_content) { in operator <<()
63 if (line < source.file_content->lines.size() + 1) { in operator <<()
64 auto len = source.file_content->lines[line - 1].size(); in operator <<()
66 out << source.file_content->lines[line - 1]; in operator <<()
/third_party/skia/third_party/externals/swiftshader/third_party/SPIRV-Tools/utils/
Dfixup_fuzz_result.py22 file_content = file.read() variable
23 content = file_content[:len(file_content) - (len(file_content) % 4)]
/third_party/skia/third_party/externals/spirv-tools/utils/
Dfixup_fuzz_result.py22 file_content = file.read() variable
23 content = file_content[:len(file_content) - (len(file_content) % 4)]
/third_party/spirv-tools/utils/
Dfixup_fuzz_result.py22 file_content = file.read() variable
23 content = file_content[:len(file_content) - (len(file_content) % 4)]
/third_party/protobuf/src/google/protobuf/compiler/
Dmock_code_generator.cc148 const std::string& file_content, in CheckSingleAnnotation() argument
151 ASSERT_GE(file_content.size(), annotation.begin()); in CheckSingleAnnotation()
152 ASSERT_GE(file_content.size(), annotation.end()); in CheckSingleAnnotation()
156 file_content.substr(annotation.begin(), expected_text.size())); in CheckSingleAnnotation()
163 std::string file_content; in CheckGeneratedAnnotations() local
166 &file_content, true)); in CheckGeneratedAnnotations()
174 CheckSingleAnnotation("first_annotation", "first", file_content, in CheckGeneratedAnnotations()
176 CheckSingleAnnotation("second_annotation", "second", file_content, in CheckGeneratedAnnotations()
178 CheckSingleAnnotation("third_annotation", "third", file_content, in CheckGeneratedAnnotations()
Dannotation_test_util.cc136 const std::string& file_content, in AtLeastOneAnnotationMatchesSubstring() argument
146 if (end < begin || end > file_content.size()) { in AtLeastOneAnnotationMatchesSubstring()
149 if (file_content.substr(begin, end - begin) == expected_text) { in AtLeastOneAnnotationMatchesSubstring()
156 bool AnnotationMatchesSubstring(const std::string& file_content, in AnnotationMatchesSubstring() argument
161 return AtLeastOneAnnotationMatchesSubstring(file_content, annotations, in AnnotationMatchesSubstring()
Dannotation_test_util.h53 std::string file_content; member
100 const std::string& file_content,
106 bool AnnotationMatchesSubstring(const std::string& file_content,
/third_party/gstreamer/gstplugins_bad/tests/check/elements/
Dcurlfilesink.c181 const gchar *file_content = "line 1\r\n"; in GST_START_TEST() local
207 test_set_and_play_buffer (file_content); in GST_START_TEST()
217 test_verify_file_data ("/tmp", file_name, file_content); in GST_START_TEST()
346 const gchar *file_content = "line 1\r\n"; in GST_START_TEST() local
368 test_set_and_play_buffer (file_content); in GST_START_TEST()
378 test_verify_file_data (sub_sub_dir, file_name, file_content); in GST_START_TEST()
398 const gchar *file_content = "line 1\r\n"; in GST_START_TEST() local
425 test_set_and_fail_to_play_buffer (file_content); in GST_START_TEST()
/third_party/gstreamer/gstplugins_bad/ext/vulkan/shaders/
Dbin2array.py92 file_content = f.read()
95 assert len(file_content) % args.element_size == 0
107 arr_data = generate_c_array_data (file_content,
128 … f.write ("#define " + args.array_name + "_size " + str(len(file_content) // args.element_size))
/third_party/rust/crates/nix/test/sys/
Dtest_uio.rs115 let mut file_content = Vec::new(); in test_pwrite() localVariable
116 file.read_to_end(&mut file_content).unwrap(); in test_pwrite()
119 assert_eq!(file_content, expected); in test_pwrite()
136 let file_content: Vec<u8> = (0..64).collect(); in test_pread() localVariable
137 file.write_all(&file_content).unwrap(); in test_pread()
/third_party/skia/third_party/externals/zlib/google/
Dzip_unittest.cc548 std::string file_content; in TEST_F() local
550 temp_dir.Append(FILE_PATH_LITERAL("foo.txt")), &file_content)); in TEST_F()
551 EXPECT_EQ(VirtualFileSystem::kFooContent, file_content); in TEST_F()
553 bar_dir.Append(FILE_PATH_LITERAL("bar1.txt")), &file_content)); in TEST_F()
554 EXPECT_EQ(VirtualFileSystem::kBar1Content, file_content); in TEST_F()
556 bar_dir.Append(FILE_PATH_LITERAL("bar2.txt")), &file_content)); in TEST_F()
557 EXPECT_EQ(VirtualFileSystem::kBar2Content, file_content); in TEST_F()
/third_party/ltp/testcases/kernel/syscalls/mmap/
Dmmap05.c70 char file_content; in main() local
106 file_content = addr[0]; in main()
/third_party/skia/third_party/externals/tint/src/diagnostic/
Dformatter.cc193 if (style_.print_line && src.file_content != nullptr && rng.begin.line > 0) { in format()
199 (line_num <= src.file_content->lines.size()); in format()
201 auto& line = src.file_content->lines[line_num - 1]; in format()
/third_party/json/docs/mkdocs/scripts/
Dcheck_structure.py50 with open(file) as file_content:
60 for lineno, original_line in enumerate(file_content.readlines()):
/third_party/skia/third_party/externals/dawn/src/dawn_native/
DCompilationMessages.cpp70 if (lineNum && linePos && diagnostic.source.file_content) { in AddMessage()
71 const std::vector<std::string>& lines = diagnostic.source.file_content->lines; in AddMessage()
/third_party/node/deps/v8/src/torque/
Dtorque-compiler.h59 std::string file_content; member
Dtorque-compiler.cc184 ParseTorque(unit.file_content); in CompileTorqueForKythe()
/third_party/node/deps/v8/third_party/zlib/google/
Dzip_unittest.cc1134 std::string file_content; in TEST_F() local
1136 base::ReadFileToString(temp_dir.AppendASCII("foo.txt"), &file_content)); in TEST_F()
1137 EXPECT_EQ(VirtualFileSystem::kFooContent, file_content); in TEST_F()
1139 base::ReadFileToString(bar_dir.AppendASCII("bar1.txt"), &file_content)); in TEST_F()
1140 EXPECT_EQ(VirtualFileSystem::kBar1Content, file_content); in TEST_F()
1142 base::ReadFileToString(bar_dir.AppendASCII("bar2.txt"), &file_content)); in TEST_F()
1143 EXPECT_EQ(VirtualFileSystem::kBar2Content, file_content); in TEST_F()
/third_party/node/deps/zlib/google/
Dzip_unittest.cc1134 std::string file_content; in TEST_F() local
1136 base::ReadFileToString(temp_dir.AppendASCII("foo.txt"), &file_content)); in TEST_F()
1137 EXPECT_EQ(VirtualFileSystem::kFooContent, file_content); in TEST_F()
1139 base::ReadFileToString(bar_dir.AppendASCII("bar1.txt"), &file_content)); in TEST_F()
1140 EXPECT_EQ(VirtualFileSystem::kBar1Content, file_content); in TEST_F()
1142 base::ReadFileToString(bar_dir.AppendASCII("bar2.txt"), &file_content)); in TEST_F()
1143 EXPECT_EQ(VirtualFileSystem::kBar2Content, file_content); in TEST_F()
/third_party/json/cmake/
Dtest.cmake228 file(READ ${file} file_content)
236 string(FIND "${file_content}" JSON_HAS_CPP_${cxx_standard} has_cpp_found)
/third_party/libinput/test/
Dtest-quirks.c50 make_data_dir(const char *file_content) in make_data_dir() argument
61 if (file_content) { in make_data_dir()
67 rc = fputs(file_content, fp); in make_data_dir()
/third_party/python/Lib/test/
Dtest_pdb.py1396 def _assert_find_function(self, file_content, func_name, expected): argument
1398 f.write(file_content)
/third_party/python/Doc/library/
Dgzip.rst200 file_content = f.read()

12