/third_party/skia/tools/ |
D | sanitize_source_files.py | 112 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/ |
D | source.h | 149 : 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
|
D | source.cc | 53 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/ |
D | fixup_fuzz_result.py | 22 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/ |
D | fixup_fuzz_result.py | 22 file_content = file.read() variable 23 content = file_content[:len(file_content) - (len(file_content) % 4)]
|
/third_party/spirv-tools/utils/ |
D | fixup_fuzz_result.py | 22 file_content = file.read() variable 23 content = file_content[:len(file_content) - (len(file_content) % 4)]
|
/third_party/protobuf/src/google/protobuf/compiler/ |
D | mock_code_generator.cc | 148 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()
|
D | annotation_test_util.cc | 136 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()
|
D | annotation_test_util.h | 53 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/ |
D | curlfilesink.c | 181 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/ |
D | bin2array.py | 92 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/ |
D | test_uio.rs | 115 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/ |
D | zip_unittest.cc | 548 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/ |
D | mmap05.c | 70 char file_content; in main() local 106 file_content = addr[0]; in main()
|
/third_party/skia/third_party/externals/tint/src/diagnostic/ |
D | formatter.cc | 193 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/ |
D | check_structure.py | 50 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/ |
D | CompilationMessages.cpp | 70 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/ |
D | torque-compiler.h | 59 std::string file_content; member
|
D | torque-compiler.cc | 184 ParseTorque(unit.file_content); in CompileTorqueForKythe()
|
/third_party/node/deps/v8/third_party/zlib/google/ |
D | zip_unittest.cc | 1134 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/ |
D | zip_unittest.cc | 1134 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/ |
D | test.cmake | 228 file(READ ${file} file_content) 236 string(FIND "${file_content}" JSON_HAS_CPP_${cxx_standard} has_cpp_found)
|
/third_party/libinput/test/ |
D | test-quirks.c | 50 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/ |
D | test_pdb.py | 1396 def _assert_find_function(self, file_content, func_name, expected): argument 1398 f.write(file_content)
|
/third_party/python/Doc/library/ |
D | gzip.rst | 200 file_content = f.read()
|