Home
last modified time | relevance | path

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

12345

/external/libchrome/base/files/
Dfile_path_watcher_unittest.cc187 bool WriteFile(const FilePath& file, const std::string& content) { in WriteFile() function in base::__anonf96a742c0111::FilePathWatcherTest
188 int write_size = ::base::WriteFile(file, content.c_str(), content.length()); in WriteFile()
238 ASSERT_TRUE(WriteFile(test_file(), "content")); in TEST_F()
245 ASSERT_TRUE(WriteFile(test_file(), "content")); in TEST_F()
252 ASSERT_TRUE(WriteFile(test_file(), "new content")); in TEST_F()
260 ASSERT_TRUE(WriteFile(source_file, "content")); in TEST_F()
273 ASSERT_TRUE(WriteFile(test_file(), "content")); in TEST_F()
317 ASSERT_TRUE(WriteFile(test_file(), "content")); in TEST_F()
332 ASSERT_TRUE(WriteFile(test_file(), "content")); in TEST_F()
344 ASSERT_TRUE(WriteFile(test_file(), "content")); in TEST_F()
[all …]
/external/google-breakpad/src/common/linux/
Delf_core_dump_unittest.cc49 using google_breakpad::WriteFile;
72 ASSERT_TRUE(WriteFile(core_file, &header, sizeof(header) - 1)); in TEST()
82 ASSERT_TRUE(WriteFile(core_file, &header, sizeof(header))); in TEST()
88 ASSERT_TRUE(WriteFile(core_file, &header, sizeof(header))); in TEST()
94 ASSERT_TRUE(WriteFile(core_file, &header, sizeof(header))); in TEST()
100 ASSERT_TRUE(WriteFile(core_file, &header, sizeof(header))); in TEST()
106 ASSERT_TRUE(WriteFile(core_file, &header, sizeof(header))); in TEST()
112 ASSERT_TRUE(WriteFile(core_file, &header, sizeof(header))); in TEST()
118 ASSERT_TRUE(WriteFile(core_file, &header, sizeof(header))); in TEST()
124 ASSERT_TRUE(WriteFile(core_file, &header, sizeof(header))); in TEST()
Dmemory_mapped_file_unittest.cc47 using google_breakpad::WriteFile;
87 ASSERT_TRUE(WriteFile(test_file.c_str(), NULL, 0)); in TEST_F()
109 ASSERT_TRUE(WriteFile(test_file.c_str(), data, data_size)); in TEST_F()
144 ASSERT_TRUE(WriteFile(test_file1.c_str(), data1, data1_size)); in TEST_F()
145 ASSERT_TRUE(WriteFile(test_file2.c_str(), data2, data2_size)); in TEST_F()
188 ASSERT_TRUE(WriteFile(test_file1.c_str(), data1, data1_size)); in TEST_F()
/external/clang/unittests/libclang/
DLibclangTest.cpp375 void WriteFile(std::string &Filename, const std::string &Contents) { in WriteFile() function in LibclangReparseTest
415 WriteFile(CppName, CppFile); in TEST_F()
416 WriteFile(HeaderName, std::string(HeaderTop) + HeaderBottom); in TEST_F()
429 WriteFile(HeaderName, NewHeaderContents); in TEST_F()
445 WriteFile(MName, MFile); in TEST_F()
446 WriteFile(HeaderName, std::string(HeaderTop) + HeaderBottom); in TEST_F()
447 WriteFile(ModName, ModFile); in TEST_F()
464 WriteFile(HeaderName, NewHeaderContents); in TEST_F()
479 WriteFile(Name, "\n"); in TEST_F()
482 WriteFile(Filename, "#include <vector>\n"); in TEST_F()
[all …]
/external/libbrillo/brillo/
Dosrelease_reader_unittest.cc45 base::WriteFile(osreleased_.Append("TEST_KEY"), hello.data(), hello.size()); in TEST_F()
46 base::WriteFile(osreleased_.Append("GREETINGS"), ola.data(), ola.size()); in TEST_F()
47 base::WriteFile(osrelease_, osreleasecontent.data(), osreleasecontent.size()); in TEST_F()
79 base::WriteFile(osreleased_.Append("HELLO"), hello.data(), hello.size()); in TEST_F()
80 base::WriteFile( in TEST_F()
Dfile_utils_unittest.cc31 void WriteFile(const std::string& contents) { in WriteFile() function in brillo::FileUtilsTest
33 base::WriteFile(file_path_, contents.c_str(), contents.length())); in WriteFile()
84 WriteFile("abcd"); in TEST_F()
105 WriteFile("abcd"); in TEST_F()
111 WriteFile("abcd"); in TEST_F()
/external/protobuf/benchmarks/
Dgenerate_datasets.cc91 void WriteFile(const std::string& name, const std::string& message_name, in WriteFile() function
109 WriteFile("google_message1_proto3", "benchmarks.proto3.GoogleMessage1", in main()
111 WriteFile("google_message1_proto2", "benchmarks.proto2.GoogleMessage1", in main()
115 WriteFile("google_message2", "benchmarks.proto2.GoogleMessage2", in main()
/external/libbrillo/brillo/http/
Dhttp_form_data_unittest.cc47 static_cast<size_t>(base::WriteFile( in TEST()
76 base::WriteFile(filename1, file1.data(), file1.size()))); in TEST()
81 base::WriteFile(filename2, file2.data(), file2.size()))); in TEST()
151 base::WriteFile(filename1, file1.data(), file1.size()))); in TEST()
156 base::WriteFile(filename2, file2.data(), file2.size()))); in TEST()
/external/syslinux/win/
Dsyslinux.c156 if (WriteFile(drive, sector, sizeof(sector), &howMany, NULL) == 0) { in FixMBR()
419 if (!WriteFile(f_handle, (const char _force *)syslinux_ldlinux, in main()
425 if (!WriteFile(f_handle, syslinux_adv, 2 * ADV_SIZE, in main()
496 !WriteFile(f_handle, syslinux_ldlinux, syslinux_ldlinux_len, in main()
536 if (!WriteFile(f_handle, (const char _force *)syslinux_ldlinuxc32, in main()
568 if (!WriteFile(f_handle, sectbuf, SECTOR_SIZE, &bytes_written, NULL)) { in main()
575 WriteFile(d_handle, sectbuf, SECTOR_SIZE, &bytes_written, NULL); in main()
/external/chromium-trace/catapult/devil/devil/android/sdk/
Dshared_prefs_test.py37 device.WriteFile = mock.Mock(side_effect=write_file)
134 self.assertEquals(self.device.WriteFile.call_args_list, []) # did not write
145 self.assertTrue(self.device.WriteFile.called) # did write
163 self.assertEquals(self.device.WriteFile.call_args_list, []) # did not write
/external/libmojo/third_party/catapult/devil/devil/android/sdk/
Dshared_prefs_test.py36 device.WriteFile = mock.Mock(side_effect=write_file)
131 self.assertEquals(self.device.WriteFile.call_args_list, []) # did not write
140 self.assertTrue(self.device.WriteFile.called) # did write
158 self.assertEquals(self.device.WriteFile.call_args_list, []) # did not write
/external/syslinux/com32/lib/libpng/
Dpngwio.c57 if ( !WriteFile((HANDLE)(png_ptr->io_ptr), data, length, &check, NULL) ) in png_default_write_data()
89 if ( !WriteFile(io_ptr, near_data, length, &check, NULL) ) in png_default_write_data()
106 if ( !WriteFile(io_ptr, buf, written, &err, NULL) ) in png_default_write_data()
/external/chromium-trace/catapult/third_party/pyserial/serial/
Dwin32.py91 WriteFile = _stdcall_libraries['kernel32'].WriteFile variable
92 WriteFile.restype = BOOL
93 WriteFile.argtypes = [HANDLE, LPCVOID, DWORD, LPDWORD, LPOVERLAPPED]
/external/swiftshader/third_party/LLVM/utils/
DNewNightlyTest.pl379 sub WriteFile { # (filename, contents) subroutine
408 WriteFile "$Prefix-sentdata.txt", $sentdata;
561 WriteFile "$Prefix-SingleSource-Performance.txt", $SSProgs;
563 WriteFile "$Prefix-MultiSource-Performance.txt", $MSProgs;
566 WriteFile "$Prefix-External-Performance.txt", $ExtProgs;
/external/toolchain-utils/cros_utils/
Dfile_utils.py63 def WriteFile(self, path, contents): member in FileUtils
86 def WriteFile(self, path, contents): member in MockFileUtils
/external/chromium-trace/catapult/devil/devil/android/
Dflag_changer_devicetest.py51 self.device.WriteFile(
55 self.device.WriteFile(
Dflag_changer_test.py30 def WriteFile(self, path, contents, **_kwargs): member in _FakeDevice
46 self.device.WriteFile(self.cmdline_path_legacy, 'chrome --old --stuff')
/external/google-breakpad/src/client/
Dminidump_file_writer_unittest.cc73 static bool WriteFile(const char *path) { in WriteFile() function
171 ASSERT_TRUE(WriteFile(path)); in RunTests()
/external/google-breakpad/src/common/tests/
Dfile_utils.h48 bool WriteFile(const char* path, const void* buffer, size_t buffer_size);
/external/libmojo/third_party/catapult/devil/devil/android/perf/
Dcache_control.py15 self._device.WriteFile(CacheControl._DROP_CACHES, '3', as_root=True)
/external/chromium-trace/catapult/devil/devil/android/perf/
Dcache_control.py15 self._device.WriteFile(CacheControl._DROP_CACHES, '3', as_root=True)
/external/vboot_reference/host/linktest/
Dmain.c33 WriteFile(0, 0, 0); in main()
/external/libmojo/mojo/public/tools/bindings/pylib/mojom/generate/
Dgenerator.py27 def WriteFile(contents, full_path): function
78 WriteFile(contents, full_path)
/external/google-breakpad/src/client/windows/unittests/
Dcrash_generation_server_test.cc186 ASSERT_TRUE(WriteFile(pipe, in DoFaultyClient()
224 ASSERT_TRUE(WriteFile(pipe, in DoFaultyClient()
/external/toolchain-utils/crosperf/
Dgenerate_report.py175 def WriteFile(output_prefix, extension, get_contents, overwrite, verbose): function
207 WriteFile(output_prefix, extension, get_contents, overwrite, verbose)

12345