summaryrefslogtreecommitdiff
path: root/platform/android/src/test/test_runner_common.hpp
diff options
context:
space:
mode:
Diffstat (limited to 'platform/android/src/test/test_runner_common.hpp')
-rw-r--r--platform/android/src/test/test_runner_common.hpp23
1 files changed, 23 insertions, 0 deletions
diff --git a/platform/android/src/test/test_runner_common.hpp b/platform/android/src/test/test_runner_common.hpp
new file mode 100644
index 0000000000..4be59e9178
--- /dev/null
+++ b/platform/android/src/test/test_runner_common.hpp
@@ -0,0 +1,23 @@
+#pragma once
+
+#include <android_native_app_glue.h>
+
+#include <mbgl/util/logging.hpp>
+
+#include "jni.hpp"
+
+namespace mbgl {
+namespace android {
+
+int severityToPriority(EventSeverity severity);
+void changeState(JNIEnv* env, struct android_app* app, bool result);
+bool copyFile(JNIEnv* env,
+ AAssetManager* assetManager,
+ const std::string& filePath,
+ const std::string& destinationPath,
+ const std::string& fileName);
+
+void unZipFile(JNIEnv* env, const std::string& zipFilePath, const std::string& destinationPath);
+
+} // namespace android
+} // namespace mbgl