--- /dev/null
+bin_PROGRAMS = gtest-video360
+
+gtest_video360_SOURCES = gtest_video360.cpp
+
+gtest_video360_CXXFLAGS = \
+ -I$(top_srcdir)/video360/src \
+ $(GTESTS_CFLAGS) \
+ $(GLES_CFLAGS)
+
+gtest_video360_LDADD = \
+ $(top_builddir)/video360/src/libgstvideo360.la \
+ $(GTESTS_LIBS) \
+ $(GLES_LIBS)
--- /dev/null
+/*
+ * Copyright (c) 2018 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+#include "gtest_video360.h"
+
+using ::testing::InitGoogleTest;
+using ::testing::Test;
+using ::testing::TestCase;
+
+class video360_Test : public ::testing::Test {
+ protected:
+ void SetUp() {
+ std::cout << "SetUp()" << std::endl;
+ }
+
+ void TearDown() {
+ std::cout << "TearDown()" << std::endl;
+ }
+};
+
+TEST(video360_Test, _video360_egl_bind)
+{
+ EGLBoolean ret;
+
+ ret = eglBindAPI(EGL_OPENGL_ES_API);
+
+ EXPECT_EQ(ret, EGL_TRUE);
+}
+
+int main(int argc, char **argv)
+{
+ InitGoogleTest(&argc, argv);
+
+ return RUN_ALL_TESTS();
+}
--- /dev/null
+/*
+ * Copyright (c) 2018 Samsung Electronics Co., Ltd All Rights Reserved
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+
+#ifndef __VIDEO360_UNITTEST_H__
+#define __VIDEO360_UNITTEST_H__
+
+#include <EGL/egl.h>
+#include <EGL/eglext.h>
+#include <gmock/gmock.h>
+#include <gtest/gtest.h>
+
+#undef LOG_TAG
+#define LOG_TAG "GTEST_VIDEO360"
+
+#endif /*__VIDEO360_UNITTEST_H__*/