Searched defs:tmp_file (Results 1 - 8 of 8) sorted by relevance
/system/extras/simpleperf/ |
H A D | cmd_stat_test.cpp | 113 TemporaryFile tmp_file; local 115 tmp_file.path, "sleep", "1"})); 117 ASSERT_TRUE(android::base::ReadFileToString(tmp_file.path, &s)); 134 TemporaryFile tmp_file; local 137 tmp_file.path, "sleep", "2"})); 139 ASSERT_TRUE(android::base::ReadFileToString(tmp_file.path, &s));
|
H A D | cmd_kmem_test.cpp | 45 TemporaryFile tmp_file; local 47 tmp_file.path}; 50 ASSERT_TRUE(android::base::ReadFileToString(tmp_file.path, &result->content)); 99 TemporaryFile tmp_file; local 101 ASSERT_TRUE(RunKmemRecordCmd({"--slab"}, tmp_file.path)); 103 KmemReportRawFile(tmp_file.path, {}, &result); 109 TemporaryFile tmp_file; local 111 ASSERT_TRUE(RunKmemRecordCmd({"--slab", "-g"}, tmp_file.path)); 113 KmemReportRawFile(tmp_file.path, {"-g"}, &result);
|
H A D | read_elf_test.cpp | 143 TemporaryFile tmp_file; local 144 ASSERT_EQ(ElfStatus::READ_FAILED, IsValidElfPath(tmp_file.path)); 145 ASSERT_TRUE(android::base::WriteStringToFile("wrong format for elf", tmp_file.path)); 146 ASSERT_EQ(ElfStatus::FILE_MALFORMED, IsValidElfPath(tmp_file.path));
|
H A D | cmd_report_test.cpp | 48 TemporaryFile tmp_file; local 50 "-i", perf_data, "--symfs", GetTestDataDir(), "-o", tmp_file.path}; 53 ASSERT_TRUE(android::base::ReadFileToString(tmp_file.path, &content)); 487 TemporaryFile tmp_file; local 489 RecordCmd()->Run({"-p", pid, "-g", "-o", tmp_file.path, "sleep", SLEEP_SEC})); 490 ReportRaw(tmp_file.path, {"-g"});
|
H A D | gtest_main.cpp | 57 TemporaryFile tmp_file; local 58 if (!android::base::WriteStringToFile(content, tmp_file.path)) { 59 PLOG(ERROR) << "failed to write file " << tmp_file.path; 62 ArchiveHelper ahelper(tmp_file.fd, tmp_file.path); 64 LOG(ERROR) << "failed to open archive " << tmp_file.path;
|
/system/core/debuggerd/libdebuggerd/test/ |
H A D | dump_memory_test.cpp | 111 char tmp_file[256]; local 113 memcpy(tmp_file, data_template, sizeof(data_template)); 114 int tombstone_fd = mkstemp(tmp_file); 117 memcpy(tmp_file, tmp_template, sizeof(tmp_template)); 118 tombstone_fd = mkstemp(tmp_file); 123 if (unlink(tmp_file) == -1) {
|
H A D | tombstone_test.cpp | 54 char tmp_file[256]; local 56 memcpy(tmp_file, data_template, sizeof(data_template)); 57 int tombstone_fd = mkstemp(tmp_file); 60 memcpy(tmp_file, tmp_template, sizeof(tmp_template)); 61 tombstone_fd = mkstemp(tmp_file); 66 if (unlink(tmp_file) == -1) {
|
/system/core/libziparchive/ |
H A D | zip_archive_test.cc | 373 TemporaryFile tmp_file; local 374 ASSERT_NE(-1, tmp_file.fd); 375 ASSERT_TRUE(android::base::WriteFully(tmp_file.fd, kEmptyEntriesZip, sizeof(kEmptyEntriesZip))); 378 ASSERT_EQ(0, OpenArchiveFd(tmp_file.fd, "EmptyEntriesTest", &handle)); 398 TemporaryFile tmp_file; local 399 ASSERT_NE(-1, tmp_file.fd); 400 ASSERT_TRUE(android::base::WriteFully(tmp_file.fd, reinterpret_cast<const uint8_t*>(kAbZip), 403 ASSERT_EQ(0, OpenArchiveFd(tmp_file.fd, "EntryLargerThan32KTest", &handle)); 441 TemporaryFile tmp_file; local 442 ASSERT_NE(-1, tmp_file 454 TemporaryFile tmp_file; local 657 TemporaryFile tmp_file; local 761 TemporaryFile tmp_file; local [all...] |
Completed in 186 milliseconds