From cfb71ddb1cc4b0e852f59af1fda47ad2ad6d8aab Mon Sep 17 00:00:00 2001 From: Aki Koskinen Date: Sun, 21 Mar 2010 21:12:05 +0200 Subject: [PATCH] Unit test template using GMock --- tests/ut_gmocktemplate/.gitignore | 2 ++ tests/ut_gmocktemplate/ut_gmocktemplate.cpp | 12 ++++++++++++ tests/ut_gmocktemplate/ut_gmocktemplate.pro | 15 +++++++++++++++ 3 files changed, 29 insertions(+) create mode 100644 tests/ut_gmocktemplate/.gitignore create mode 100644 tests/ut_gmocktemplate/ut_gmocktemplate.cpp create mode 100644 tests/ut_gmocktemplate/ut_gmocktemplate.pro diff --git a/tests/ut_gmocktemplate/.gitignore b/tests/ut_gmocktemplate/.gitignore new file mode 100644 index 0000000..61efd94 --- /dev/null +++ b/tests/ut_gmocktemplate/.gitignore @@ -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 index 0000000..c4f58f9 --- /dev/null +++ b/tests/ut_gmocktemplate/ut_gmocktemplate.cpp @@ -0,0 +1,12 @@ +#include +#include + +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 index 0000000..78a6c05 --- /dev/null +++ b/tests/ut_gmocktemplate/ut_gmocktemplate.pro @@ -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) -- 1.7.9.5