change wl_signal_emit_mutable into wl_signal_emit
[platform/core/uifw/libds-tizen.git] / tests / tc_main.cpp
1 #include "gmock/gmock.h"
2
3 int
4 main(int argc, char **argv)
5 {
6     auto AllTestSuccess = false;
7
8     try {
9         ::testing::InitGoogleMock(&argc, argv);
10         ::testing::FLAGS_gtest_death_test_style = "fast";
11     } catch (...) {
12         std::cout << "error while trying to init google tests.\n";
13         exit(EXIT_FAILURE);
14     }
15
16     try {
17         AllTestSuccess = RUN_ALL_TESTS() == 0 ? true : false;
18     } catch (const ::testing::internal::GoogleTestFailureException &e) {
19         AllTestSuccess = false;
20         std::cout << "GoogleTestFailureException was thrown:" << e.what()
21                   << std::endl;
22         std::cout << "\n";
23     }
24
25     return AllTestSuccess;
26 }