Home
last modified time | relevance | path

Searched refs:GetTestData (Results 1 – 14 of 14) sorted by relevance

/system/extras/simpleperf/
Dcmd_dumprecord_test.cpp28 ASSERT_TRUE(DumpCmd()->Run({GetTestData("perf.data")})); in TEST()
32 ASSERT_TRUE(DumpCmd()->Run({GetTestData(PERF_DATA_GENERATED_BY_LINUX_PERF)})); in TEST()
36 ASSERT_TRUE(DumpCmd()->Run({GetTestData(PERF_DATA_WITH_CALLCHAIN_RECORD)})); in TEST()
42 ASSERT_TRUE(DumpCmd()->Run({GetTestData(PERF_DATA_WITH_INTERPRETER_FRAMES)})); in TEST()
Dread_elf_test.cpp64 ASSERT_EQ(ElfStatus::NO_ERROR, GetBuildIdFromElfFile(GetTestData(ELF_FILE), &build_id)); in TEST()
70 …ASSERT_EQ(ElfStatus::NO_ERROR, GetBuildIdFromEmbeddedElfFile(GetTestData(APK_FILE), NATIVELIB_OFFS… in TEST()
99 ASSERT_EQ(ElfStatus::NO_ERROR, ParseSymbolsFromElfFile(GetTestData(ELF_FILE), elf_file_build_id, in TEST()
106 ASSERT_EQ(ElfStatus::NO_ERROR, ParseSymbolsFromElfFile(GetTestData(ELF_FILE), BuildId(), in TEST()
114 ASSERT_EQ(ElfStatus::BUILD_ID_MISMATCH, ParseSymbolsFromElfFile(GetTestData(ELF_FILE), build_id, in TEST()
120 …ASSERT_EQ(ElfStatus::NO_SYMBOL_TABLE, ParseSymbolsFromEmbeddedElfFile(GetTestData(APK_FILE), NATIV… in TEST()
128 …ASSERT_EQ(ElfStatus::NO_ERROR, ParseSymbolsFromElfFile(GetTestData(ELF_FILE_WITH_MINI_DEBUG_INFO),… in TEST()
146 ASSERT_EQ(ElfStatus::NO_ERROR, IsValidElfPath(GetTestData(ELF_FILE))); in TEST()
151 ASSERT_EQ(ElfStatus::NO_ERROR, ParseSymbolsFromElfFile(GetTestData(ELF_FILE), BuildId(), in TEST()
157 std::string elf_path = GetTestData("libsgmainso-6.4.36.so"); in TEST()
[all …]
Dread_apk_test.cpp26 ASSERT_TRUE(inspector.FindElfInApkByOffset(GetTestData(APK_FILE), 0) == nullptr); in TEST()
29 EmbeddedElf* ee = inspector.FindElfInApkByOffset(GetTestData(APK_FILE), in TEST()
39 ASSERT_TRUE(ApkInspector::FindElfInApkByName(GetTestData(APK_FILE), "") == nullptr); in TEST()
40 auto ee = ApkInspector::FindElfInApkByName(GetTestData(APK_FILE), NATIVELIB_IN_APK); in TEST()
Dcmd_debug_unwind_test.cpp37 std::string input_data = GetTestData(PERF_DATA_NO_UNWIND); in TEST()
51 std::string input_data = GetTestData(NATIVELIB_IN_APK_PERF_DATA); in TEST()
72 ASSERT_TRUE(DebugUnwindCmd()->Run({"-i", GetTestData(PERF_DATA_WITH_IP_ZERO_IN_CALLCHAIN), in TEST()
Ddso_test.cpp35 ASSERT_TRUE(android::base::ReadFileToString(GetTestData(ELF_FILE), &data)); in TEST()
91 std::unique_ptr<Dso> dso = Dso::CreateDso(dso_type, GetTestData("base.vdex")); in TEST()
108 dso = Dso::CreateDso(dso_type, GetTestData("base.zip!/not_exist_entry")); in TEST()
127 const std::string file_path = GetUrlInApk(GetTestData(APK_FILE), NATIVELIB_IN_APK); in TEST()
146 std::unique_ptr<Dso> dso = Dso::CreateDso(DSO_ELF_FILE, GetTestData("libc.so")); in TEST()
Dcmd_report_sample_test.cpp30 ReportSampleCmd()->Run({"-i", GetTestData(PERF_DATA_WITH_SYMBOLS)})); in TEST()
36 {"-i", GetTestData(PERF_DATA_WITH_SYMBOLS), "-o", tmpfile.path})); in TEST()
41 ASSERT_TRUE(ReportSampleCmd()->Run({"-i", GetTestData(CALLGRAPH_FP_PERF_DATA), in TEST()
49 std::vector<std::string> args = {"-i", GetTestData(test_data_file), "-o", tmpfile.path,
Dutils_test.cpp79 std::unique_ptr<ArchiveHelper> ahelper = ArchiveHelper::CreateInstance(GetTestData(APK_FILE)); in TEST()
99 ASSERT_FALSE(ArchiveHelper::CreateInstance(GetTestData(ELF_FILE))); in TEST()
Dcmd_report_test.cpp40 ReportRaw(GetTestData(perf_data), add_args); in Report()
355 ASSERT_TRUE(ReportCmd()->Run({"-i", GetTestData(PERF_DATA), "-o", tmpfile.path})); in TEST_F()
366 {"--symfs", GetTestData(CORRECT_SYMFS_FOR_BUILD_ID_CHECK)}); in TEST_F()
372 {"--symfs", GetTestData(WRONG_SYMFS_FOR_BUILD_ID_CHECK)}); in TEST_F()
397 {"--symfs", GetTestData(SYMFS_FOR_NO_SYMBOL_TABLE_WARNING)}); in TEST_F()
413 {"--symfs", GetTestData(SYMFS_FOR_READ_ELF_FILE_WARNING)}); in TEST_F()
453 Report(PERF_DATA, {"--kallsyms", GetTestData("kallsyms")}); in TEST_F()
459 ASSERT_FALSE(ReportCmd()->Run({"-i", GetTestData(INVALID_PERF_DATA)})); in TEST_F()
Dread_dex_file_test.cpp29 ASSERT_TRUE(ReadSymbolsFromDexFile(GetTestData("base.vdex"), {0x28}, &symbols)); in TEST()
Dcmd_trace_sched_test.cpp54 ASSERT_TRUE(TraceSchedCmd()->Run({"--record-file", GetTestData(PERF_DATA_SCHED_STAT_RUNTIME), in TEST()
Dgtest_main.cpp114 std::string GetTestData(const std::string& filename) { in GetTestData() function
Dget_test_data.h24 std::string GetTestData(const std::string& filename);
Dcmd_kmem_test.cpp67 KmemReportRawFile(GetTestData(perf_data), additional_args, result); in KmemReportFile()
DRecordReadThread_test.cpp77 GetTestData(PERF_DATA_NO_UNWIND)); in TEST()