diff --git a/tests/webarkit_test.cc b/tests/webarkit_test.cc index 7200f9a..d8eae31 100644 --- a/tests/webarkit_test.cc +++ b/tests/webarkit_test.cc @@ -1,5 +1,21 @@ #include #include +#include + +class WebARKitEnumTest : public testing::TestWithParam {}; + +TEST_P(WebARKitEnumTest, TestEnumValues) { + webarkit::TRACKER_TYPE value = GetParam(); + EXPECT_TRUE(value == webarkit::TRACKER_TYPE::AKAZE_TRACKER || + value == webarkit::TRACKER_TYPE::ORB_TRACKER || + value == webarkit::TRACKER_TYPE::FREAK_TRACKER); +} + +INSTANTIATE_TEST_SUITE_P(WebARKitEnumTestSuite, WebARKitEnumTest, + testing::ValuesIn({webarkit::TRACKER_TYPE::AKAZE_TRACKER, + webarkit::TRACKER_TYPE::ORB_TRACKER, + webarkit::TRACKER_TYPE::FREAK_TRACKER})); + // Check WebARKitManager initialisation. TEST(WebARKitTest, InitialiseBaseTest) {