Home
last modified time | relevance | path

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

/system/extras/simpleperf/
Dread_apk_test.cpp26 ASSERT_FALSE(IsValidApkPath(GetTestData(ELF_FILE))); in TEST()
27 ASSERT_TRUE(IsValidApkPath(GetTestData(APK_FILE))); in TEST()
33 ASSERT_TRUE(inspector.FindElfInApkByOffset(GetTestData(APK_FILE), 0) == nullptr); in TEST()
36 EmbeddedElf* ee = inspector.FindElfInApkByOffset(GetTestData(APK_FILE), in TEST()
46 ASSERT_TRUE(ApkInspector::FindElfInApkByName(GetTestData(APK_FILE), "") == nullptr); in TEST()
47 auto ee = ApkInspector::FindElfInApkByName(GetTestData(APK_FILE), NATIVELIB_IN_APK); in TEST()
55 …ASSERT_EQ(ElfStatus::NO_ERROR, GetBuildIdFromApkFile(GetTestData(APK_FILE), NATIVELIB_IN_APK, &bui… in TEST()
62 ParseSymbolsFromApkFile(GetTestData(APK_FILE), NATIVELIB_IN_APK, native_lib_build_id, in TEST()
Dcmd_report_sample_test.cpp31 ReportSampleCmd()->Run({"-i", GetTestData(PERF_DATA_WITH_SYMBOLS)})); in TEST()
37 {"-i", GetTestData(PERF_DATA_WITH_SYMBOLS), "-o", tmpfile.path})); in TEST()
42 ASSERT_TRUE(ReportSampleCmd()->Run({"-i", GetTestData(CALLGRAPH_FP_PERF_DATA), in TEST()
49 ASSERT_TRUE(ReportSampleCmd()->Run({"-i", GetTestData(PERF_DATA_WITH_SYMBOLS), in TEST()
Dread_elf_test.cpp65 ASSERT_EQ(ElfStatus::NO_ERROR, GetBuildIdFromElfFile(GetTestData(ELF_FILE), &build_id)); in TEST()
71 …ASSERT_EQ(ElfStatus::NO_ERROR, GetBuildIdFromEmbeddedElfFile(GetTestData(APK_FILE), NATIVELIB_OFFS… in TEST()
100 ASSERT_EQ(ElfStatus::NO_ERROR, ParseSymbolsFromElfFile(GetTestData(ELF_FILE), elf_file_build_id, in TEST()
107 ASSERT_EQ(ElfStatus::NO_ERROR, ParseSymbolsFromElfFile(GetTestData(ELF_FILE), BuildId(), in TEST()
115 ASSERT_EQ(ElfStatus::BUILD_ID_MISMATCH, ParseSymbolsFromElfFile(GetTestData(ELF_FILE), build_id, in TEST()
121 …ASSERT_EQ(ElfStatus::NO_SYMBOL_TABLE, ParseSymbolsFromEmbeddedElfFile(GetTestData(APK_FILE), NATIV… in TEST()
129 …ASSERT_EQ(ElfStatus::NO_ERROR, ParseSymbolsFromElfFile(GetTestData(ELF_FILE_WITH_MINI_DEBUG_INFO),… in TEST()
147 ASSERT_EQ(ElfStatus::NO_ERROR, IsValidElfPath(GetTestData(ELF_FILE))); in TEST()
152 ASSERT_EQ(ElfStatus::NO_ERROR, ParseSymbolsFromElfFile(GetTestData(ELF_FILE), BuildId(), in TEST()
Dcmd_dumprecord_test.cpp27 ASSERT_TRUE(DumpCmd()->Run({GetTestData("perf.data")})); in TEST()
31 ASSERT_TRUE(DumpCmd()->Run({GetTestData(PERF_DATA_GENERATED_BY_LINUX_PERF)})); in TEST()
Dcmd_report_test.cpp41 ReportRaw(GetTestData(perf_data), add_args); in Report()
364 {"--symfs", GetTestData(CORRECT_SYMFS_FOR_BUILD_ID_CHECK)}); in TEST_F()
370 {"--symfs", GetTestData(WRONG_SYMFS_FOR_BUILD_ID_CHECK)}); in TEST_F()
395 {"--symfs", GetTestData(SYMFS_FOR_NO_SYMBOL_TABLE_WARNING)}); in TEST_F()
411 {"--symfs", GetTestData(SYMFS_FOR_READ_ELF_FILE_WARNING)}); in TEST_F()
451 Report(PERF_DATA, {"--kallsyms", GetTestData("kallsyms")}); in TEST_F()
457 ASSERT_FALSE(ReportCmd()->Run({"-i", GetTestData(INVALID_PERF_DATA)})); in TEST_F()
Dget_test_data.h24 std::string GetTestData(const std::string& filename);
Dcmd_kmem_test.cpp68 KmemReportRawFile(GetTestData(perf_data), additional_args, result); in KmemReportFile()
Dgtest_main.cpp230 std::string GetTestData(const std::string& filename) { in GetTestData() function