Refactoring MediaCodec decoder
This commit is contained in:
25
vav2/platforms/android/tests/unit-tests/src/TestMain.cpp
Normal file
25
vav2/platforms/android/tests/unit-tests/src/TestMain.cpp
Normal file
@@ -0,0 +1,25 @@
|
||||
#include <gtest/gtest.h>
|
||||
#include <android/log.h>
|
||||
|
||||
#define LOG_TAG "VavCoreUnitTests"
|
||||
#define LOGI(...) __android_log_print(ANDROID_LOG_INFO, LOG_TAG, __VA_ARGS__)
|
||||
#define LOGE(...) __android_log_print(ANDROID_LOG_ERROR, LOG_TAG, __VA_ARGS__)
|
||||
|
||||
int main(int argc, char** argv) {
|
||||
LOGI("=== VavCore Android Unit Tests ===");
|
||||
LOGI("Starting Google Test framework...");
|
||||
|
||||
// Initialize Google Test
|
||||
::testing::InitGoogleTest(&argc, argv);
|
||||
|
||||
// Run all tests
|
||||
int result = RUN_ALL_TESTS();
|
||||
|
||||
if (result == 0) {
|
||||
LOGI("=== All tests passed! ===");
|
||||
} else {
|
||||
LOGE("=== Some tests failed! ===");
|
||||
}
|
||||
|
||||
return result;
|
||||
}
|
||||
Reference in New Issue
Block a user