Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Gorshenin <y@maps.me>2016-02-01 15:16:59 +0300
committerSergey Yershov <yershov@corp.mail.ru>2016-03-23 16:16:40 +0300
commit5c6c58051651ce791aac4ae93c33fd3edc93ab49 (patch)
treee511f115645f893f84d89a9c4767dd693779e13a /testing
parent45e0985a217bc7c007911295340c519d8cd7832f (diff)
Review fixes.
Diffstat (limited to 'testing')
-rw-r--r--testing/testing.hpp13
1 files changed, 13 insertions, 0 deletions
diff --git a/testing/testing.hpp b/testing/testing.hpp
index 5976b41dd3..19ef6b87df 100644
--- a/testing/testing.hpp
+++ b/testing/testing.hpp
@@ -15,6 +15,19 @@
TestRegister g_TestRegister_##name(#name, __FILE__, &UnitTest_##name); \
void UnitTest_##name()
+#define UNIT_CLASS_TEST(CLASS, NAME) \
+ struct UnitClass_##CLASS_##NAME : public CLASS \
+ { \
+ public: \
+ void NAME(); \
+ }; \
+ UNIT_TEST(CLASS##_##NAME) \
+ { \
+ UnitClass_##CLASS_##NAME instance; \
+ instance.NAME(); \
+ } \
+ void UnitClass_##CLASS_##NAME::NAME()
+
DECLARE_EXCEPTION(TestFailureException, RootException);
namespace my