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:
authorvng <viktor.govako@gmail.com>2016-02-18 17:30:22 +0300
committerSergey Yershov <yershov@corp.mail.ru>2016-03-23 16:21:25 +0300
commitefc698553f054ffee768fb1abd4e29bf7c2b71f9 (patch)
tree0d2b94ccd85911b24113d159e34cca8fb864b1d5 /testing
parentceaa7b4d73dd9e41bee09ba1afdaa78590fdd2ca (diff)
Fixed bug with test macros.
Diffstat (limited to 'testing')
-rw-r--r--testing/testing.hpp24
1 files changed, 12 insertions, 12 deletions
diff --git a/testing/testing.hpp b/testing/testing.hpp
index 818f1a0aa9..4c82ac6ffa 100644
--- a/testing/testing.hpp
+++ b/testing/testing.hpp
@@ -15,18 +15,18 @@
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()
+#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);