Unit test template using GMock
authorAki Koskinen <maemo@akikoskinen.info>
Sun, 21 Mar 2010 19:12:05 +0000 (21:12 +0200)
committerAki Koskinen <maemo@akikoskinen.info>
Sun, 21 Mar 2010 20:53:36 +0000 (22:53 +0200)
tests/ut_gmocktemplate/.gitignore [new file with mode: 0644]
tests/ut_gmocktemplate/ut_gmocktemplate.cpp [new file with mode: 0644]
tests/ut_gmocktemplate/ut_gmocktemplate.pro [new file with mode: 0644]

diff --git a/tests/ut_gmocktemplate/.gitignore b/tests/ut_gmocktemplate/.gitignore
new file mode 100644 (file)
index 0000000..61efd94
--- /dev/null
@@ -0,0 +1,2 @@
+Makefile
+ut_gmocktemplate
diff --git a/tests/ut_gmocktemplate/ut_gmocktemplate.cpp b/tests/ut_gmocktemplate/ut_gmocktemplate.cpp
new file mode 100644 (file)
index 0000000..c4f58f9
--- /dev/null
@@ -0,0 +1,12 @@
+#include <gmock/gmock.h>
+#include <gtest/gtest.h>
+
+TEST(TestSuiteName, TestMethodName)
+{
+}
+
+int main(int argc, char *argv[])
+{
+    ::testing::InitGoogleMock(&argc, argv);
+    return RUN_ALL_TESTS();
+}
diff --git a/tests/ut_gmocktemplate/ut_gmocktemplate.pro b/tests/ut_gmocktemplate/ut_gmocktemplate.pro
new file mode 100644 (file)
index 0000000..78a6c05
--- /dev/null
@@ -0,0 +1,15 @@
+include(../ut_common.pri)
+
+TARGET = ut_gmocktemplate
+QT += testlib
+QT -= gui
+CONFIG += console
+CONFIG -= app_bundle
+TEMPLATE = app
+OBJECTS_DIR = .obj
+MOC_DIR = .moc
+SOURCES += ut_gmocktemplate.cpp
+HEADERS +=
+
+include(../gmock.pri)
+include(../check.pri)