ultimatepp/bazaar/upt/GoogleTest.upt
klugier cafaf99c4a .bazaar GoogleTest.upt now using namespace Upp when main package is enabled.
git-svn-id: svn://ultimatepp.org/upp/trunk@10931 f0d560ea-af0d-0410-9eb7-867de7ffcac7
2017-03-09 22:42:37 +00:00

27 lines
606 B
Text

template "Unit test package with Google Test" main;
option "Main package" mainPackage = 1;
option "Use Google Mock" googleMock = 1;
@@<:PACKAGE:>.cpp
??mainPackage
#include <Core/Core.h>
<:?googleMock == 0:>#include <plugin/gtest/gtest.h><:.:><:?googleMock == 1:>#include <plugin/gmock/gmock.h><:.:>
using namespace Upp;
TEST_APP_MAIN {}<:.:>
@@<:PACKAGE:>.upp
uses
Core,
plugin/gtest<:?googleMock == 0:>;<:.:><:?googleMock == 1:>,
plugin/gmock;<:.:>
file
Tests readonly separator<:?mainPackage == 0:>;<:.:><:?mainPackage:>,
Init readonly separator,
<:PACKAGE:>.cpp
mainconfig
"" = "";
<:.:>