Home
last modified time | relevance | path

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

/external/chromium-trace/catapult/third_party/py_vulcanize/py_vulcanize/
Dhtml_module_unittest.py79 file_contents = {}
80 file_contents[os.path.normpath('/tmp/a/foo.js')] = """
85 FakeLoader([os.path.normpath('/tmp')], file_contents),
99 file_contents = {}
100 file_contents[os.path.normpath('/foo.js')] = ''
103 html_module.Parse(FakeLoader([os.path.normpath('/tmp')], file_contents),
115 file_contents = {}
118 html_module.Parse(FakeLoader([os.path.normpath('/tmp')], file_contents),
130 file_contents = {}
131 file_contents[os.path.normpath('/tmp/a/foo.html')] = """
[all …]
/external/chromium-trace/catapult/third_party/gsutil/third_party/apitools/samples/storage_sample/
Ddownloads_test.py42 file_contents = open(file_path).read()
44 file_contents, msg=('Could not read file %s' % filename))
45 return file_contents
75 file_contents = self.__GetTestdataFileContents('fifteen_byte_file')
78 self.assertEqual(file_contents, self.__buffer.read())
84 file_contents = self.__GetTestdataFileContents('filename_with_spaces')
87 self.assertEqual(file_contents, self.__buffer.read())
91 file_contents = self.__GetTestdataFileContents('fifteen_byte_file')
96 self.assertEqual(file_contents[5:11], self.__buffer.read())
99 file_contents = self.__GetTestdataFileContents('fifteen_byte_file')
[all …]
/external/v8/tools/testrunner/server/
Dsignatures.py36 file_contents = base64.b64encode(f.read())
47 return [file_contents, signature]
50 def VerifySignature(filename, file_contents, signature, pubkeyfile): argument
52 f.write(base64.b64decode(file_contents))
/external/autotest/tko/
Djsonp_fetcher.cgi26 file_contents = urllib2.urlopen('http://localhost' + path).read() variable
27 result_dict['result'] = file_contents
/external/v8/build/
Dgyp_environment.py25 file_contents = open(file_path).read()
27 file_data = eval(file_contents, {'__builtins__': None}, None)
/external/chromium-trace/catapult/third_party/gsutil/gslib/tests/
Dtest_Doption.py37 for file_contents in ('a1b2c3d4', 'a1b2c3d4\n'):
38 fpath = self.CreateTempFile(contents=file_contents)
49 self.assertIn('total_bytes_transferred: %d' % len(file_contents),
Dtest_ls.py374 file_contents = 'x' * file_size
375 fpath = self.CreateTempFile(contents=file_contents, file_name='foo.txt')
Dtest_cp.py1588 file_contents = 'abcd' * self.halt_size
1590 contents=file_contents)
1609 identical_file = self.CreateTempFile(contents=file_contents)
1616 self.assertEqual(f.read(), file_contents, 'File contents differ')
/external/autotest/client/site_tests/network_ShillInitScripts/
Dnetwork_ShillInitScripts.py323 def file_contents(self, filename): member in network_ShillInitScripts
455 self.assure(self.magic_header in self.file_contents(shill_profile),
475 self.assure(self.magic_header not in self.file_contents(shill_profile),
583 self.file_contents(self.new_shill_user_profile),
664 self.file_contents(self.new_shill_user_profile),
688 self.file_contents(self.new_shill_user_profile),
709 self.file_contents(self.new_shill_user_profile),
735 self.file_contents(self.new_shill_user_profile),
/external/compiler-rt/lib/sanitizer_common/
Dsanitizer_suppressions.cc65 char *file_contents; in ParseFromFile() local
68 if (!ReadFileToBuffer(filename, &file_contents, &buffer_size, in ParseFromFile()
75 Parse(file_contents); in ParseFromFile()
/external/skia/tools/copyright/
Dfileparser.py76 def FindAllCommentBlocks(self, file_contents): argument
79 return self._comment_pattern.findall(file_contents)
/external/google-breakpad/src/processor/
Dmicrodump_processor_unittest.cc62 void ReadFile(const string& file_name, string* file_contents) { in ReadFile() argument
63 assert(file_contents); in ReadFile()
74 *file_contents = string(&bytes[0], bytes.size()); in ReadFile()
/external/chromium-trace/catapult/devil/devil/android/
Dflag_changer.py125 file_contents = self._device.ReadFile(
127 assert file_contents == cmd_line, (
/external/google-breakpad/src/tools/mac/dump_syms/
Dmacho_dump.cc161 ByteBuffer file_contents(reinterpret_cast<uint8_t *>(mapping) in DumpFile() local
165 if (!reader.Read(file_contents, file.cputype, file.cpusubtype)) { in DumpFile()
/external/protobuf/src/google/protobuf/compiler/
Dimporter_unittest.cc370 string file_contents; in ExpectFileContents() local
374 file_contents.append(reinterpret_cast<const char*>(data), size); in ExpectFileContents()
377 EXPECT_EQ(expected_contents, file_contents); in ExpectFileContents()
Dcommand_line_interface_unittest.cc435 string file_contents; in ReadDescriptorSet() local
436 GOOGLE_CHECK_OK(File::GetContents(path, &file_contents, true)); in ReadDescriptorSet()
438 if (!descriptor_set->ParseFromString(file_contents)) { in ReadDescriptorSet()
/external/libbrillo/brillo/message_loops/
Dbase_message_loop.cc267 const std::string& file_contents) { in ParseBinderMinor() argument
272 base::SplitString(file_contents, "\n", base::TRIM_WHITESPACE, in ParseBinderMinor()
Dbase_message_loop.h64 static int ParseBinderMinor(const std::string& file_contents);
/external/chromium-trace/catapult/telemetry/third_party/pyfakefs/pyfakefs/
Dfake_filesystem_test.py727 file_contents = 'frobozz'
729 self.assertNotEqual(len(base_name), len(file_contents))
732 self.filesystem.CreateFile(file_path, contents=file_contents)
734 self.assertEqual(len(file_contents), self.os.lstat(file_path)[stat.ST_SIZE])
967 file_contents = 'Spam eggs'
969 self.filesystem.CreateFile(file_path, contents=file_contents)
971 self.assertEqual(file_contents,
2086 file_contents = 'two\r\nlines'
2087 self.filesystem.CreateFile(file_path, contents=file_contents)
2540 self.file_contents = b'binary contents'
[all …]
/external/pdfium/samples/
Dpdfium_test.cc614 std::unique_ptr<char, pdfium::FreeDeleter> file_contents = in main() local
616 if (file_contents) in main()
617 RenderPdf(filename, file_contents.get(), file_length, options); in main()
/external/autotest/scheduler/
Ddrone_manager.py895 def attach_file_to_execution(self, results_dir, file_contents, argument
906 files_for_execution[file_path] = file_contents
917 file_contents = '\n'.join(lines) + '\n'
926 drone.queue_call('write_to_file', full_path, file_contents)
Dmonitor_db_functional_test.py223 def attach_file_to_execution(self, result_dir, file_contents, argument
226 file_contents))
/external/google-breakpad/src/common/mac/
Dmacho_reader_unittest.cc755 ASSERT_TRUE(file->GetContents(&file_contents)); in ReadFile()
756 file_bytes = reinterpret_cast<const uint8_t *>(file_contents.data()); in ReadFile()
759 file_contents.size(), in ReadFile()
764 file_contents.size(), in ReadFile()
770 string file_contents; member
/external/autotest/frontend/afe/
Dsite_rpc_interface_unittest.py427 file_contents = self.mox.CreateMockAnything()
428 mockFile.__enter__().AndReturn(file_contents)
/external/autotest/client/tools/
Dboottool1658 my $file_contents="default
1673 print FH $file_contents;