Initialize tests 24/43724/1
authorAleksander Zdyb <a.zdyb@samsung.com>
Mon, 15 Jun 2015 08:57:36 +0000 (10:57 +0200)
committerAleksander Zdyb <a.zdyb@samsung.com>
Fri, 10 Jul 2015 12:50:27 +0000 (14:50 +0200)
Change-Id: If526ef37babdc4466b7602f13e0615f7b370c25d

tests/main.cpp [new file with mode: 0644]

diff --git a/tests/main.cpp b/tests/main.cpp
new file mode 100644 (file)
index 0000000..80227a8
--- /dev/null
@@ -0,0 +1,34 @@
+/*
+ * Copyright (c) 2015 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.
+ */
+/**
+ * @file        tests/main.cpp
+ * @author      Aleksander Zdyb <a.zdyb@samsung.com>
+ * @version     1.0
+ * @brief       Unit-tests setup
+ */
+
+#include <gmock/gmock.h>
+#include <gtest/gtest.h>
+
+int main(int argc, char** argv) {
+    // Disables elapsed time by default.
+    ::testing::GTEST_FLAG(print_time) = false;
+
+    // This allows the user to override the flag on the command line.
+    ::testing::InitGoogleTest(&argc, argv);
+
+    return RUN_ALL_TESTS();
+}