Files
video-v1/vav2/platforms/android/tests/unit-tests/src/TestMain.cpp
2025-09-30 19:54:29 +09:00

25 lines
655 B
C++

#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;
}