Home
last modified time | relevance | path

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

1234

/external/libchrome/base/files/
Dfile_path_watcher_unittest.cc187 bool WriteFile(const FilePath& file, const std::string& content) { in WriteFile() function in base::__anond354078d0111::FilePathWatcherTest
188 int write_size = ::base::WriteFile(file, content.c_str(), content.length()); in WriteFile()
233 ASSERT_TRUE(WriteFile(test_file(), "content")); in TEST_F()
240 ASSERT_TRUE(WriteFile(test_file(), "content")); in TEST_F()
247 ASSERT_TRUE(WriteFile(test_file(), "new content")); in TEST_F()
255 ASSERT_TRUE(WriteFile(source_file, "content")); in TEST_F()
268 ASSERT_TRUE(WriteFile(test_file(), "content")); in TEST_F()
312 ASSERT_TRUE(WriteFile(test_file(), "content")); in TEST_F()
327 ASSERT_TRUE(WriteFile(test_file(), "content")); in TEST_F()
339 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/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/chromium-trace/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/chromium-trace/catapult/telemetry/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/dbus-binding-generator/chromeos-dbus-bindings/
Dtest_utils.cc28 WriteFile(path_a, a.data(), a.size()); in GetUnifiedDiff()
29 WriteFile(path_b, b.data(), b.size()); in GetUnifiedDiff()
Dmethod_name_generator_unittest.cc47 int written = base::WriteFile(path, contents.c_str(), contents.size()); in CreateInputFile()
Dheader_generator.cc54 if (base::WriteFile(output_file, contents.c_str(), contents.size()) != in WriteTextToFile()
/external/v8/third_party/binutils/
Ddownload.py34 def WriteFile(filename, content): function
96 WriteFile(stampfile, checksum)
/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/chromium-trace/catapult/third_party/gsutil/third_party/apitools/apitools/gen/
Dgen_client_lib.py243 self.__message_registry.WriteFile(self._GetPrinter(out))
252 self.__services_registry.WriteFile(self._GetPrinter(out))
255 self.__command_registry.WriteFile(self._GetPrinter(out))
/external/google-breakpad/src/common/tests/
Dfile_utils.h48 bool WriteFile(const char* path, const void* buffer, size_t buffer_size);
/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/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/vboot_reference/host/lib/include/
Dhost_misc.h44 int WriteFile(const char* filename, const void *data, uint64_t size);
/external/google-breakpad/src/client/mac/crash_generation/
DConfigFile.h52 void WriteFile(const char* directory,
/external/google-breakpad/src/client/windows/crash_generation/
Dcrash_generation_client.cc206 bool success = WriteFile(pipe, &msg, sizeof(msg), &bytes_count, NULL) != 0; in RequestUpload()
262 if (!WriteFile(pipe, &ack_msg, sizeof(ack_msg), &bytes_count, NULL)) { in RegisterClient()
/external/bsdiff/
Dtest_utils.h27 bool WriteFile(const std::string& path, std::vector<uint8_t> contents);
Dbsdiff_unittest.cc51 test_utils::WriteFile(old_file_.filename(), vec_some_text); in TEST_F()
/external/chromium-trace/catapult/devil/devil/android/
Dinstall_commands.py50 device.WriteFile(shell_file, shell_command)

1234