diff options
Diffstat (limited to 'simpleperf/get_test_data.h')
-rw-r--r-- | simpleperf/get_test_data.h | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/simpleperf/get_test_data.h b/simpleperf/get_test_data.h index 313da040..bceedc0b 100644 --- a/simpleperf/get_test_data.h +++ b/simpleperf/get_test_data.h @@ -19,6 +19,20 @@ #include <string> +#include "build_id.h" + std::string GetTestData(const std::string& filename); +const std::string& GetTestDataDir(); + +static const std::string APK_FILE = "data/app/com.example.hellojni-1/base.apk"; +static const std::string NATIVELIB_IN_APK = "lib/arm64-v8a/libhello-jni.so"; +static const std::string NATIVELIB_IN_APK_PERF_DATA = "has_embedded_native_libs_apk_perf.data"; + +constexpr size_t NATIVELIB_OFFSET_IN_APK = 0x8000; +constexpr size_t NATIVELIB_SIZE_IN_APK = 0x15d8; + +static BuildId elf_file_build_id("7600329e31058e12b145d153ef27cd40e1a5f7b9"); + +static BuildId native_lib_build_id("b46f51cb9c4b71fb08a2fdbefc2c187894f14008"); #endif // SIMPLE_PERF_GET_TEST_DATA_H_ |