Home
last modified time | relevance | path

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

12

/system/linkerconfig/modules/tests/
Dapex_test.cc147 WriteFile("/apex/foo/bin/foo", ""); in TEST_F()
149 WriteFile("/apex/bar/lib64/bar.so", ""); in TEST_F()
151 WriteFile("/apex/baz/lib64/baz.so", ""); in TEST_F()
181 WriteFile("/apex/foo/etc/linker.config.pb", two_slash.SerializeAsString()); in TEST_F()
188 WriteFile("/apex/foo/etc/linker.config.pb", invalid_char.SerializeAsString()); in TEST_F()
195 WriteFile("/apex/foo/etc/linker.config.pb", end_with_lib.SerializeAsString()); in TEST_F()
203 WriteFile("/apex/foo/etc/linker.config.pb", lib_plus_char.SerializeAsString()); in TEST_F()
211 WriteFile("/apex/foo/etc/linker.config.pb", char_plus_lib.SerializeAsString()); in TEST_F()
219 WriteFile("/apex/foo/etc/linker.config.pb", lib_and_lib64.SerializeAsString()); in TEST_F()
Dapex_testbase.h49 WriteFile("/apex/" + apex_name + "/apex_manifest.pb", in PrepareApex()
60 void WriteFile(const std::string& file, const std::string& content) { in WriteFile() function
86 WriteFile("/apex/apex-info-list.xml", content); in CreateApexInfoList()
91 WriteFile("/system/etc/public.libraries.txt", content); in CreatePublicLibrariesTxt()
/system/apex/libs/libapexutil/
Dapexutil_test.cpp55 void WriteFile(std::string file_path, std::string content) { in WriteFile() function
80 WriteFile(foo_path + "/apex_manifest.pb", foo_manifest.SerializeAsString()); in TEST()
84 WriteFile(foo_path + "@1/apex_manifest.pb", foo_manifest.SerializeAsString()); in TEST()
90 WriteFile(bar_path + "/apex_manifest.pb", bar_manifest.SerializeAsString()); in TEST()
95 WriteFile(td.path + "/com.android.qux.apex"s, ""); in TEST()
/system/core/init/
Dutil_test.cpp44 EXPECT_RESULT_OK(WriteFile(tf.path, s)); in TEST()
55 EXPECT_RESULT_OK(WriteFile(tf.path, s)); in TEST()
90 EXPECT_RESULT_OK(WriteFile(tf.path, contents)); in TEST()
102 EXPECT_RESULT_OK(WriteFile(path, s)); in TEST()
118 EXPECT_RESULT_OK(WriteFile(tf.path, "1hello1")); in TEST()
122 EXPECT_RESULT_OK(WriteFile(tf.path, "2ll2")); in TEST()
Dinit_test.cpp211 ASSERT_RESULT_OK(WriteFile(std::string(dir.path) + "/a.rc", dir_a_script)); in TEST()
213 ASSERT_RESULT_OK(WriteFile(std::string(dir.path) + "/b.rc", "on boot\nexecute 5")); in TEST()
Dutil.h51 Result<void> WriteFile(const std::string& path, const std::string& content);
Dpersistent_properties_test.cpp143 ASSERT_RESULT_OK(WriteFile(tf.path, "ab")); in TEST()
Dbuiltins.cpp232 if (auto result = WriteFile("/proc/sys/kernel/domainname", args[1]); !result.ok()) { in do_domainname()
328 if (auto result = WriteFile("/proc/sys/kernel/hostname", args[1]); !result.ok()) { in do_hostname()
907 if (auto result = WriteFile(args[1], args[2]); !result.ok()) { in do_write()
1002 if (auto result = WriteFile(args[2], *file_contents); !result.ok()) { in do_copy()
1016 auto result = WriteFile(args[2], line); in do_copy_per_line()
/system/update_engine/common/
Dhwid_override_unittest.cc49 ASSERT_EQ(base::WriteFile(tempdir_.GetPath().Append("etc/lsb-release"), in TEST_F()
58 ASSERT_EQ(base::WriteFile(tempdir_.GetPath().Append("etc/lsb-release"), in TEST_F()
Dcpu_limiter.cc72 if (!utils::WriteFile( in SetCpuShares()
Dtest_utils.cc103 return utils::WriteFile(path.c_str(), data.data(), data.size()); in WriteFileVector()
107 return utils::WriteFile(path.c_str(), data.data(), data.size()); in WriteFileString()
Dutils_unittest.cc45 EXPECT_FALSE(utils::WriteFile("/this/doesn't/exist", "hello", 5)); in TEST()
50 EXPECT_TRUE(utils::WriteFile(file.path().c_str(), "hello", 5)); in TEST()
88 EXPECT_TRUE(utils::WriteFile(temp_file.c_str(), "", 0)); in TEST()
153 ASSERT_TRUE(utils::WriteFile(file.path().c_str(), in GetFileFormatTester()
/system/core/fs_mgr/libfs_avb/tests/
Dutil_test.cpp227 ASSERT_TRUE(base::WriteFile(file_path_1, "1", 1)); in TEST()
229 ASSERT_TRUE(base::WriteFile(file_path_2, "22", 2)); in TEST()
231 ASSERT_TRUE(base::WriteFile(file_path_3, "333", 3)); in TEST()
258 ASSERT_TRUE(base::WriteFile(file_path_1, "1", 1)); in TEST()
260 ASSERT_TRUE(base::WriteFile(file_path_2, "22", 2)); in TEST()
/system/update_engine/cros/
Dp2p_manager_unittest.cc164 EXPECT_EQ(0, base::WriteFile(path, nullptr, 0)); in TEST_F()
169 EXPECT_EQ(0, base::WriteFile(path, nullptr, 0)); in TEST_F()
238 EXPECT_EQ(0, base::WriteFile(path, nullptr, 0)); in TEST_F()
243 EXPECT_EQ(0, base::WriteFile(path, nullptr, 0)); in TEST_F()
Dhardware_chromeos.cc230 if (!utils::WriteFile(kRollbackSaveMarkerFile, nullptr, 0)) { in SchedulePowerwash()
241 bool result = utils::WriteFile( in SchedulePowerwash()
Domaha_response_handler_action.cc238 utils::WriteFile(deadline_file_.c_str(), nullptr, 0); in PerformAction()
240 utils::WriteFile(deadline_file_.c_str(), in PerformAction()
Ddownload_action_chromeos_unittest.cc49 using base::WriteFile;
648 WriteFile( in TEST_F()
682 WriteFile( in TEST_F()
/system/update_engine/payload_generator/
Dgenerate_delta_main.cc91 CHECK(utils::WriteFile( in CalculateHashForSigning()
94 CHECK(utils::WriteFile(out_metadata_hash_file.c_str(), in CalculateHashForSigning()
137 CHECK(utils::WriteFile(out_metadata_size_file.c_str(), in SignPayload()
266 utils::WriteFile( in ExtractProperties()
469 if (!utils::WriteFile(FLAGS_out_maximum_signature_size_file.c_str(), in Main()
717 CHECK(utils::WriteFile(FLAGS_out_metadata_size_file.c_str(), in Main()
Dpayload_properties_unittest.cc69 EXPECT_TRUE(utils::WriteFile(path, zeros.c_str(), zeros.size())); in SetUp()
/system/update_engine/payload_consumer/
Ddelta_performer_integration_test.cc425 EXPECT_TRUE(utils::WriteFile( in GenerateDeltaFile()
432 base::WriteFile(base::FilePath(base::StringPrintf( in GenerateDeltaFile()
447 utils::WriteFile(base::StringPrintf("%s/ones", a_mnt.c_str()).c_str(), in GenerateDeltaFile()
454 EXPECT_TRUE(utils::WriteFile( in GenerateDeltaFile()
479 EXPECT_EQ(0, base::WriteFile(mnt_path.Append("emptyfile"), "", 0)); in GenerateDeltaFile()
488 base::WriteFile(mnt_path.Append("move-from-sparse"), in GenerateDeltaFile()
515 EXPECT_TRUE(utils::WriteFile( in GenerateDeltaFile()
537 EXPECT_TRUE(utils::WriteFile(state->old_kernel->path().c_str(), in GenerateDeltaFile()
540 EXPECT_TRUE(utils::WriteFile(state->new_kernel->path().c_str(), in GenerateDeltaFile()
543 EXPECT_TRUE(utils::WriteFile(state->result_kernel->path().c_str(), in GenerateDeltaFile()
Dpartition_update_generator_android_unittest.cc69 utils::WriteFile(path.c_str(), content.data(), content.size())); in SetUpBlockDevice()
Dextent_reader_unittest.cc56 ASSERT_TRUE(utils::WriteFile( in SetUp()
Dcached_file_descriptor_unittest.cc64 EXPECT_TRUE(utils::WriteFile( in SetUp()
/system/security/keystore/
Dkeystore_cli_v2.cpp737 void WriteFile(const std::string& filename, const std::vector<uint8_t>& content) { in WriteFile() function
740 if (base::WriteFile(path, reinterpret_cast<const char*>(content.data()), size) != size) { in WriteFile()
942 WriteFile(output_filename, std::get<std::vector<uint8_t>>(result)); in Encrypt()
954 WriteFile(output_filename, std::get<std::vector<uint8_t>>(result)); in Decrypt()
/system/bt/osi/test/
Dconfig_test.cc258 EXPECT_EQ(base::WriteFile(file_path, checksum.data(), checksum.size()), in TEST_F()

12