Searched refs:tmp_file (Results 1 – 7 of 7) sorted by relevance
/system/core/libziparchive/ |
D | zip_archive_test.cc | 379 TemporaryFile tmp_file; in TEST() local 380 ASSERT_NE(-1, tmp_file.fd); in TEST() 381 ASSERT_TRUE(android::base::WriteFully(tmp_file.fd, kEmptyEntriesZip, sizeof(kEmptyEntriesZip))); in TEST() 384 ASSERT_EQ(0, OpenArchiveFd(tmp_file.fd, "EmptyEntriesTest", &handle)); in TEST() 405 TemporaryFile tmp_file; in TEST() local 406 ASSERT_NE(-1, tmp_file.fd); in TEST() 407 ASSERT_TRUE(android::base::WriteFully(tmp_file.fd, reinterpret_cast<const uint8_t*>(kAbZip), in TEST() 410 ASSERT_EQ(0, OpenArchiveFd(tmp_file.fd, "EntryLargerThan32KTest", &handle)); in TEST() 449 TemporaryFile tmp_file; in TEST() local 450 ASSERT_NE(-1, tmp_file.fd); in TEST() [all …]
|
/system/extras/simpleperf/ |
D | gtest_main.cpp | 49 TemporaryFile tmp_file; in ExtractTestDataFromElfSection() local 50 if (!android::base::WriteStringToFile(content, tmp_file.path)) { in ExtractTestDataFromElfSection() 51 PLOG(ERROR) << "failed to write file " << tmp_file.path; in ExtractTestDataFromElfSection() 54 ArchiveHelper ahelper(tmp_file.fd, tmp_file.path); in ExtractTestDataFromElfSection() 56 LOG(ERROR) << "failed to open archive " << tmp_file.path; in ExtractTestDataFromElfSection()
|
D | cmd_report_test.cpp | 48 "--symfs", GetTestDataDir(), "-o", tmp_file.path}; in ReportRaw() 51 ASSERT_TRUE(android::base::ReadFileToString(tmp_file.path, &content)); in ReportRaw() 65 TemporaryFile tmp_file; member in ReportCommandTest 272 TemporaryFile tmp_file; in TEST_F() local 273 ASSERT_TRUE(RecordCmd()->Run({"-g", "-o", tmp_file.path, "sleep", SLEEP_SEC})); in TEST_F() 274 ReportRaw(tmp_file.path, {"-g"}); in TEST_F()
|
/system/core/metricsd/uploader/ |
D | upload_service_test.cc | 263 std::string tmp_file = dir_.path().Append("tmpfile").value(); in TEST_F() local 265 std::string first_guid = SystemProfileCache::GetPersistentGUID(tmp_file); in TEST_F() 266 std::string second_guid = SystemProfileCache::GetPersistentGUID(tmp_file); in TEST_F() 271 base::DeleteFile(base::FilePath(tmp_file), false); in TEST_F() 273 first_guid = SystemProfileCache::GetPersistentGUID(tmp_file); in TEST_F() 274 base::DeleteFile(base::FilePath(tmp_file), false); in TEST_F() 275 second_guid = SystemProfileCache::GetPersistentGUID(tmp_file); in TEST_F()
|
/system/core/debuggerd/test/ |
D | dump_memory_test.cpp | 111 char tmp_file[256]; in SetUp() local 113 memcpy(tmp_file, data_template, sizeof(data_template)); in SetUp() 114 int tombstone_fd = mkstemp(tmp_file); in SetUp() 117 memcpy(tmp_file, tmp_template, sizeof(tmp_template)); in SetUp() 118 tombstone_fd = mkstemp(tmp_file); in SetUp() 123 if (unlink(tmp_file) == -1) { in SetUp()
|
D | tombstone_test.cpp | 54 char tmp_file[256]; in SetUp() local 56 memcpy(tmp_file, data_template, sizeof(data_template)); in SetUp() 57 int tombstone_fd = mkstemp(tmp_file); in SetUp() 60 memcpy(tmp_file, tmp_template, sizeof(tmp_template)); in SetUp() 61 tombstone_fd = mkstemp(tmp_file); in SetUp() 66 if (unlink(tmp_file) == -1) { in SetUp()
|
/system/core/adb/ |
D | test_device.py | 775 with tempfile.NamedTemporaryFile() as tmp_file: 776 tmp_file.write('\0' * 1024 * 1024) 777 tmp_file.flush() 779 self.device.push(local=tmp_file.name, remote='/system/')
|