Home
last modified time | relevance | path

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

1234567891011

/external/libchrome/base/files/
Dfile_path_watcher_unittest.cc180 bool WriteFile(const FilePath& file, const std::string& content) { in WriteFile() function in base::__anona43388140111::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/llvm-project/clang/unittests/libclang/
DLibclangTest.cpp359 WriteFile(Header, in TEST_F()
363 WriteFile(Main, in TEST_F()
396 WriteFile(Main, "#define kFOO @\"foo\"\n" in TEST_F()
462 WriteFile(CppName, "int main() {}"); in TEST_F()
483 WriteFile(CppName, CppFile); in TEST_F()
484 WriteFile(HeaderName, std::string(HeaderTop) + HeaderBottom); in TEST_F()
497 WriteFile(HeaderName, NewHeaderContents); in TEST_F()
513 WriteFile(MName, MFile); in TEST_F()
514 WriteFile(HeaderName, std::string(HeaderTop) + HeaderBottom); in TEST_F()
515 WriteFile(ModName, ModFile); in TEST_F()
[all …]
/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/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/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()
152 WriteFile(&writer); in TEST()
164 WriteFile(&writer); in TEST()
176 WriteFile(&writer); in TEST()
199 WriteFile(&writer); in TEST()
/external/libbrillo/brillo/
Dosrelease_reader_test.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()
/external/libbrillo/brillo/files/
Dsafe_fd_test.cc89 ASSERT_TRUE(WriteFile(random_data)); in TEST_F()
109 ASSERT_TRUE(WriteFile(random_data)); in TEST_F()
124 ASSERT_TRUE(WriteFile(random_data)); in TEST_F()
145 ASSERT_TRUE(WriteFile(random_data)); in TEST_F()
167 ASSERT_TRUE(WriteFile(random_data)); in TEST_F()
180 ASSERT_TRUE(WriteFile(data)); in TEST_F()
202 ASSERT_TRUE(WriteFile("")); in TEST_F()
212 ASSERT_TRUE(WriteFile("")); in TEST_F()
220 ASSERT_TRUE(WriteFile("")); in TEST_F()
246 ASSERT_TRUE(WriteFile("")); in TEST_F()
[all …]
/external/libbrillo/brillo/http/
Dhttp_form_data_test.cc48 static_cast<size_t>(base::WriteFile( in TEST()
77 base::WriteFile(filename1, file1.data(), file1.size()))); in TEST()
82 base::WriteFile(filename2, file2.data(), file2.size()))); in TEST()
152 base::WriteFile(filename1, file1.data(), file1.size()))); in TEST()
157 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/tensorflow/tensorflow/core/ops/compat/ops_history_v1/
DWriteFile.pbtxt2 name: "WriteFile"
13 name: "WriteFile"
/external/tensorflow/tensorflow/core/ops/compat/ops_history_v2/
DWriteFile.pbtxt2 name: "WriteFile"
13 name: "WriteFile"
/external/llvm-project/clang/unittests/libclang/CrashTests/
DLibclangCrashTest.cpp19 WriteFile(Main, "#pragma clang __debug llvm_fatal_error"); in TEST_F()
32 WriteFile(Main, "#pragma clang __debug llvm_fatal_error"); in TEST_F()
/external/chromium-trace/catapult/devil/devil/android/sdk/
Dshared_prefs_test.py43 device.WriteFile = mock.Mock(side_effect=write_file)
141 self.device.WriteFile('/data/data/com.some.package/shared_prefs/prefs.xml',
158 self.assertEquals(self.device.WriteFile.call_args_list, []) # did not write
169 self.assertTrue(self.device.WriteFile.called) # did write
187 self.assertEquals(self.device.WriteFile.call_args_list, []) # did not write
/external/okio/samples/src/jvmMain/java/okio/samples/
DWriteFile.java25 public final class WriteFile { class
45 new WriteFile().run(); in main()
/external/tensorflow/tensorflow/lite/tools/optimize/
Dquantization_wrapper.cc33 return WriteFile(output_path, builder.GetBufferPointer(), builder.GetSize()); in CreateModelForCalibration()
50 return WriteFile(path, builder.GetBufferPointer(), builder.GetSize()); in CreateQuantizedModel()
/external/libchrome/mojo/public/tools/bindings/
Dgen_data_files_list.py25 from mojom.generate.generator import WriteFile
44 WriteFile(stream.getvalue(), options.output)
/external/toolchain-utils/go/chromeos/
Dsetup_chromeos_testing.py77 def WriteFile(file_content, file_name): function
101 WriteFile(base_file_content, base_file)
107 WriteFile(exec_file_content, exec_file)
164 WriteFile(config_lines, config_file)
/external/skia/infra/bots/task_drivers/perf_puppeteer_render_skps/
Dperf_puppeteer_render_skps_test.go60 …require.NoError(t, ioutil.WriteFile(filepath.Join(skps, "first_skp"), []byte("doesnt matter"), 077…
101 …require.NoError(t, ioutil.WriteFile(filepath.Join(skps, "desk_carsvg.skp"), []byte("doesnt matter"…
134 …require.NoError(t, ioutil.WriteFile(filepath.Join(skps, "first_skp"), []byte("doesnt matter"), 077…
176 …require.NoError(t, ioutil.WriteFile(filepath.Join(skps, "first_skp"), []byte("doesnt matter"), 077…
302 if err := ioutil.WriteFile(filepath.Join(path, name), []byte(content), 0666); err != nil {
/external/llvm-project/llvm/lib/TableGen/
DMain.cpp135 bool WriteFile = true; in TableGenMain() local
142 WriteFile = false; in TableGenMain()
144 if (WriteFile) { in TableGenMain()
/external/chromium-trace/catapult/devil/devil/android/
Dflag_changer_test.py31 def WriteFile(self, path, contents, **_kwargs): member in _FakeDevice
47 self.device.WriteFile(self.cmdline_path_legacy, 'chrome --old --stuff')
57 self.device.WriteFile(self.cmdline_path, 'chrome --old --stuff')
/external/libbrillo/policy/tests/
Dpolicy_util_test.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/cpuinfo/deps/clog/src/
Dclog.c107 WriteFile( in clog_vlog_fatal()
183 WriteFile( in clog_vlog_error()
259 WriteFile( in clog_vlog_warning()
335 WriteFile( in clog_vlog_info()
411 WriteFile( in clog_vlog_debug()
/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/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()

1234567891011