Home
last modified time | relevance | path

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

123456789

/external/libchrome/base/files/
Dfile_path_watcher_unittest.cc180 bool WriteFile(const FilePath& file, const std::string& content) { in WriteFile() function in base::__anonbec4f5360111::FilePathWatcherTest
181 int write_size = ::base::WriteFile(file, content.c_str(), content.length()); in WriteFile()
234 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()
254 ASSERT_TRUE(WriteFile(source_file, "content")); in TEST_F()
266 ASSERT_TRUE(WriteFile(test_file(), "content")); in TEST_F()
306 ASSERT_TRUE(WriteFile(test_file(), "content")); in TEST_F()
321 ASSERT_TRUE(WriteFile(test_file(), "content")); in TEST_F()
331 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/tensorflow/tensorflow/core/util/
Devents_writer_test.cc49 void WriteFile(EventsWriter* writer) { in WriteFile() function
114 WriteFile(&writer); in TEST()
123 WriteFile(&writer); in TEST()
132 WriteFile(writer); in TEST()
142 WriteFile(&writer); in TEST()
154 WriteFile(&writer); in TEST()
168 WriteFile(&writer); in TEST()
180 WriteFile(&writer); in TEST()
203 WriteFile(&writer); in TEST()
/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.cc49 void WriteFile(const std::string& contents) { in WriteFile() function in brillo::FileUtilsTest
51 base::WriteFile(file_path_, contents.c_str(), contents.length())); in WriteFile()
96 WriteFile("abcd"); in TEST_F()
117 WriteFile("abcd"); in TEST_F()
123 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/tensorflow/tensorflow/core/api_def/java_api/
Dapi_def_WriteFile.pbtxt2 graph_op_name: "WriteFile"
4 name: "io.WriteFile"
/external/chromium-trace/catapult/devil/devil/android/sdk/
Dshared_prefs_test.py45 device.WriteFile = mock.Mock(side_effect=write_file)
137 self.device.WriteFile('/data/data/com.some.package/shared_prefs/prefs.xml',
152 self.assertEquals(self.device.WriteFile.call_args_list, []) # did not write
163 self.assertTrue(self.device.WriteFile.called) # did write
181 self.assertEquals(self.device.WriteFile.call_args_list, []) # did not write
/external/chromium-trace/catapult/devil/devil/android/
Dflag_changer_test.py30 def WriteFile(self, path, contents, **_kwargs): member in _FakeDevice
46 self.device.WriteFile(self.cmdline_path_legacy, 'chrome --old --stuff')
56 self.device.WriteFile(self.cmdline_path, 'chrome --old --stuff')
Dflag_changer_devicetest.py51 self.device.WriteFile(
55 self.device.WriteFile(
/external/libchrome/mojo/public/tools/bindings/
Dgen_data_files_list.py25 from mojom.generate.generator import WriteFile
44 WriteFile(stream.getvalue(), options.output)
Dgenerate_type_mappings.py69 from mojom.generate.generator import WriteFile
152 WriteFile(json.dumps({'c++': typemaps}, indent=2), params.output)
/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/syzkaller/pkg/build/
Dakaros.go22 if err := osutil.WriteFile(configFile, config); err != nil {
64 if err := osutil.WriteFile(initFile, []byte(init)); err != nil {
85 if err := osutil.WriteFile(filepath.Join(outputDir, "image"), nil); err != nil {
/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/libbrillo/policy/tests/
Dpolicy_util_unittest.cc30 base::WriteFile(invalid_policy_data_path, data.data(), data.size())); in TEST()
39 ASSERT_TRUE(base::WriteFile(good_policy_data_path, policy_blob.data(), in TEST()
/external/libchrome/base/process/
Dmemory_linux.cc83 return (score_len == WriteFile(oom_file, score_str.c_str(), score_len)); in AdjustOOMScore()
98 return (score_len == WriteFile(oom_file, score_str.c_str(), score_len)); in AdjustOOMScore()
/external/syzkaller/pkg/osutil/
Dosutil.go194 func WriteFile(filename string, data []byte) error { func
195 return ioutil.WriteFile(filename, data, DefaultFilePerm)
199 if err := ioutil.WriteFile(filename, data, DefaultExecPerm); err != nil {
/external/syzkaller/pkg/host/
Dhost_linux.go411 if err := osutil.WriteFile("/sys/kernel/debug/failslab/ignore-gfp-wait", []byte("N")); err != nil {
414 …if err := osutil.WriteFile("/sys/kernel/debug/fail_futex/ignore-private", []byte("N")); err != nil…
417 …if err := osutil.WriteFile("/sys/kernel/debug/fail_page_alloc/ignore-gfp-highmem", []byte("N")); e…
420 …if err := osutil.WriteFile("/sys/kernel/debug/fail_page_alloc/ignore-gfp-wait", []byte("N")); err …
423 …if err := osutil.WriteFile("/sys/kernel/debug/fail_page_alloc/min-order", []byte("0")); err != nil…
/external/tensorflow/tensorflow/examples/wav_to_spectrogram/
Dwav_to_spectrogram.cc74 tensorflow::ops::WriteFile file_writer = tensorflow::ops::WriteFile( in WavToSpectrogram()
/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/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()

123456789