BuildRequires: pkgconfig(cynara-client)
BuildRequires: pkgconfig(cynara-session)
BuildRequires: pkgconfig(libsmack)
+BuildRequires: pkgconfig(gmock)
%description
Wayland Compositor Library for Tizen
--- /dev/null
+#include "gmock/gmock.h"
+
+int
+main(int argc, char **argv)
+{
+ auto AllTestSuccess = false;
+
+ try {
+ ::testing::InitGoogleMock(&argc, argv);
+ ::testing::FLAGS_gtest_death_test_style = "fast";
+ } catch (...) {
+ std::cout << "error while trying to init google tests.\n";
+ exit(EXIT_FAILURE);
+ }
+
+ try {
+ AllTestSuccess = RUN_ALL_TESTS() == 0 ? true : false;
+ } catch (const ::testing::internal::GoogleTestFailureException &e) {
+ AllTestSuccess = false;
+ std::cout << "GoogleTestFailureException was thrown:" << e.what()
+ << std::endl;
+ std::cout << "\n";
+ }
+
+ return AllTestSuccess;
+}
--- /dev/null
+#ifndef TC_MAIN_H
+#define TC_MAIN_H
+
+#include <iostream>
+#include <gmock/gmock.h>
+
+using ::testing::Bool;
+using ::testing::Combine;
+using ::testing::TestWithParam;
+using ::testing::Values;
+
+#endif