Jeff Thompson | ef2d5a4 | 2013-08-22 19:09:24 -0700 | [diff] [blame] | 1 | // (C) Copyright Gennadiy Rozental 2001-2008. |
| 2 | // Distributed under the Boost Software License, Version 1.0. |
| 3 | // (See accompanying file LICENSE_1_0.txt or copy at |
| 4 | // http://www.boost.org/LICENSE_1_0.txt) |
| 5 | |
| 6 | // See http://www.boost.org/libs/test for the library home page. |
| 7 | // |
| 8 | // File : $RCSfile$ |
| 9 | // |
| 10 | // Version : $Revision: 57992 $ |
| 11 | // |
| 12 | // Description : defines Unit Test Framework public API |
| 13 | // *************************************************************************** |
| 14 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 15 | #ifndef NDNBOOST_TEST_UNIT_TEST_SUITE_HPP_071894GER |
| 16 | #define NDNBOOST_TEST_UNIT_TEST_SUITE_HPP_071894GER |
Jeff Thompson | ef2d5a4 | 2013-08-22 19:09:24 -0700 | [diff] [blame] | 17 | |
| 18 | // Boost.Test |
| 19 | #include <ndnboost/test/unit_test_suite_impl.hpp> |
| 20 | #include <ndnboost/test/framework.hpp> |
| 21 | |
| 22 | //____________________________________________________________________________// |
| 23 | |
| 24 | // ************************************************************************** // |
| 25 | // ************** Non-auto (explicit) test case interface ************** // |
| 26 | // ************************************************************************** // |
| 27 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 28 | #define NDNBOOST_TEST_CASE( test_function ) \ |
| 29 | ndnboost::unit_test::make_test_case( ndnboost::unit_test::callback0<>(test_function), NDNBOOST_TEST_STRINGIZE( test_function ) ) |
| 30 | #define NDNBOOST_CLASS_TEST_CASE( test_function, tc_instance ) \ |
| 31 | ndnboost::unit_test::make_test_case((test_function), NDNBOOST_TEST_STRINGIZE( test_function ), tc_instance ) |
Jeff Thompson | ef2d5a4 | 2013-08-22 19:09:24 -0700 | [diff] [blame] | 32 | |
| 33 | // ************************************************************************** // |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 34 | // ************** NDNBOOST_TEST_SUITE ************** // |
Jeff Thompson | ef2d5a4 | 2013-08-22 19:09:24 -0700 | [diff] [blame] | 35 | // ************************************************************************** // |
| 36 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 37 | #define NDNBOOST_TEST_SUITE( testsuite_name ) \ |
Jeff Thompson | ef2d5a4 | 2013-08-22 19:09:24 -0700 | [diff] [blame] | 38 | ( new ndnboost::unit_test::test_suite( testsuite_name ) ) |
| 39 | |
| 40 | // ************************************************************************** // |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 41 | // ************** NDNBOOST_AUTO_TEST_SUITE ************** // |
Jeff Thompson | ef2d5a4 | 2013-08-22 19:09:24 -0700 | [diff] [blame] | 42 | // ************************************************************************** // |
| 43 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 44 | #define NDNBOOST_AUTO_TEST_SUITE( suite_name ) \ |
Jeff Thompson | ef2d5a4 | 2013-08-22 19:09:24 -0700 | [diff] [blame] | 45 | namespace suite_name { \ |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 46 | NDNBOOST_AUTO_TU_REGISTRAR( suite_name )( NDNBOOST_STRINGIZE( suite_name ) ); \ |
Jeff Thompson | ef2d5a4 | 2013-08-22 19:09:24 -0700 | [diff] [blame] | 47 | /**/ |
| 48 | |
| 49 | // ************************************************************************** // |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 50 | // ************** NDNBOOST_FIXTURE_TEST_SUITE ************** // |
Jeff Thompson | ef2d5a4 | 2013-08-22 19:09:24 -0700 | [diff] [blame] | 51 | // ************************************************************************** // |
| 52 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 53 | #define NDNBOOST_FIXTURE_TEST_SUITE( suite_name, F ) \ |
| 54 | NDNBOOST_AUTO_TEST_SUITE( suite_name ) \ |
| 55 | typedef F NDNBOOST_AUTO_TEST_CASE_FIXTURE; \ |
Jeff Thompson | ef2d5a4 | 2013-08-22 19:09:24 -0700 | [diff] [blame] | 56 | /**/ |
| 57 | |
| 58 | // ************************************************************************** // |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 59 | // ************** NDNBOOST_AUTO_TEST_SUITE_END ************** // |
Jeff Thompson | ef2d5a4 | 2013-08-22 19:09:24 -0700 | [diff] [blame] | 60 | // ************************************************************************** // |
| 61 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 62 | #define NDNBOOST_AUTO_TEST_SUITE_END() \ |
| 63 | NDNBOOST_AUTO_TU_REGISTRAR( NDNBOOST_JOIN( end_suite, __LINE__ ) )( 1 ); \ |
Jeff Thompson | ef2d5a4 | 2013-08-22 19:09:24 -0700 | [diff] [blame] | 64 | } \ |
| 65 | /**/ |
| 66 | |
| 67 | // ************************************************************************** // |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 68 | // ************** NDNBOOST_AUTO_TEST_CASE_EXPECTED_FAILURES ************** // |
Jeff Thompson | ef2d5a4 | 2013-08-22 19:09:24 -0700 | [diff] [blame] | 69 | // ************************************************************************** // |
| 70 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 71 | #define NDNBOOST_AUTO_TEST_CASE_EXPECTED_FAILURES( test_name, n ) \ |
| 72 | struct NDNBOOST_AUTO_TC_UNIQUE_ID( test_name ); \ |
Jeff Thompson | ef2d5a4 | 2013-08-22 19:09:24 -0700 | [diff] [blame] | 73 | \ |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 74 | static struct NDNBOOST_JOIN( test_name, _exp_fail_num_spec ) \ |
Jeff Thompson | ef2d5a4 | 2013-08-22 19:09:24 -0700 | [diff] [blame] | 75 | : ndnboost::unit_test::ut_detail:: \ |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 76 | auto_tc_exp_fail<NDNBOOST_AUTO_TC_UNIQUE_ID( test_name ) > \ |
Jeff Thompson | ef2d5a4 | 2013-08-22 19:09:24 -0700 | [diff] [blame] | 77 | { \ |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 78 | NDNBOOST_JOIN( test_name, _exp_fail_num_spec )() \ |
Jeff Thompson | ef2d5a4 | 2013-08-22 19:09:24 -0700 | [diff] [blame] | 79 | : ndnboost::unit_test::ut_detail:: \ |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 80 | auto_tc_exp_fail<NDNBOOST_AUTO_TC_UNIQUE_ID( test_name ) >( n ) \ |
Jeff Thompson | ef2d5a4 | 2013-08-22 19:09:24 -0700 | [diff] [blame] | 81 | {} \ |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 82 | } NDNBOOST_JOIN( test_name, _exp_fail_num_spec_inst ); \ |
Jeff Thompson | ef2d5a4 | 2013-08-22 19:09:24 -0700 | [diff] [blame] | 83 | \ |
| 84 | /**/ |
| 85 | |
| 86 | // ************************************************************************** // |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 87 | // ************** NDNBOOST_FIXTURE_TEST_CASE ************** // |
Jeff Thompson | ef2d5a4 | 2013-08-22 19:09:24 -0700 | [diff] [blame] | 88 | // ************************************************************************** // |
| 89 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 90 | #define NDNBOOST_FIXTURE_TEST_CASE( test_name, F ) \ |
Jeff Thompson | ef2d5a4 | 2013-08-22 19:09:24 -0700 | [diff] [blame] | 91 | struct test_name : public F { void test_method(); }; \ |
| 92 | \ |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 93 | static void NDNBOOST_AUTO_TC_INVOKER( test_name )() \ |
Jeff Thompson | ef2d5a4 | 2013-08-22 19:09:24 -0700 | [diff] [blame] | 94 | { \ |
| 95 | test_name t; \ |
| 96 | t.test_method(); \ |
| 97 | } \ |
| 98 | \ |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 99 | struct NDNBOOST_AUTO_TC_UNIQUE_ID( test_name ) {}; \ |
Jeff Thompson | ef2d5a4 | 2013-08-22 19:09:24 -0700 | [diff] [blame] | 100 | \ |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 101 | NDNBOOST_AUTO_TU_REGISTRAR( test_name )( \ |
Jeff Thompson | ef2d5a4 | 2013-08-22 19:09:24 -0700 | [diff] [blame] | 102 | ndnboost::unit_test::make_test_case( \ |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 103 | &NDNBOOST_AUTO_TC_INVOKER( test_name ), #test_name ), \ |
Jeff Thompson | ef2d5a4 | 2013-08-22 19:09:24 -0700 | [diff] [blame] | 104 | ndnboost::unit_test::ut_detail::auto_tc_exp_fail< \ |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 105 | NDNBOOST_AUTO_TC_UNIQUE_ID( test_name )>::instance()->value() ); \ |
Jeff Thompson | ef2d5a4 | 2013-08-22 19:09:24 -0700 | [diff] [blame] | 106 | \ |
| 107 | void test_name::test_method() \ |
| 108 | /**/ |
| 109 | |
| 110 | // ************************************************************************** // |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 111 | // ************** NDNBOOST_AUTO_TEST_CASE ************** // |
Jeff Thompson | ef2d5a4 | 2013-08-22 19:09:24 -0700 | [diff] [blame] | 112 | // ************************************************************************** // |
| 113 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 114 | #define NDNBOOST_AUTO_TEST_CASE( test_name ) \ |
| 115 | NDNBOOST_FIXTURE_TEST_CASE( test_name, NDNBOOST_AUTO_TEST_CASE_FIXTURE ) |
Jeff Thompson | ef2d5a4 | 2013-08-22 19:09:24 -0700 | [diff] [blame] | 116 | /**/ |
| 117 | |
| 118 | // ************************************************************************** // |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 119 | // ************** NDNBOOST_FIXTURE_TEST_CASE_TEMPLATE ************** // |
Jeff Thompson | ef2d5a4 | 2013-08-22 19:09:24 -0700 | [diff] [blame] | 120 | // ************************************************************************** // |
| 121 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 122 | #define NDNBOOST_FIXTURE_TEST_CASE_TEMPLATE( test_name, type_name, TL, F ) \ |
Jeff Thompson | ef2d5a4 | 2013-08-22 19:09:24 -0700 | [diff] [blame] | 123 | template<typename type_name> \ |
| 124 | struct test_name : public F \ |
| 125 | { void test_method(); }; \ |
| 126 | \ |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 127 | struct NDNBOOST_AUTO_TC_INVOKER( test_name ) { \ |
Jeff Thompson | ef2d5a4 | 2013-08-22 19:09:24 -0700 | [diff] [blame] | 128 | template<typename TestType> \ |
| 129 | static void run( ndnboost::type<TestType>* = 0 ) \ |
| 130 | { \ |
| 131 | test_name<TestType> t; \ |
| 132 | t.test_method(); \ |
| 133 | } \ |
| 134 | }; \ |
| 135 | \ |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 136 | NDNBOOST_AUTO_TU_REGISTRAR( test_name )( \ |
Jeff Thompson | ef2d5a4 | 2013-08-22 19:09:24 -0700 | [diff] [blame] | 137 | ndnboost::unit_test::ut_detail::template_test_case_gen< \ |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 138 | NDNBOOST_AUTO_TC_INVOKER( test_name ),TL >( \ |
| 139 | NDNBOOST_STRINGIZE( test_name ) ) ); \ |
Jeff Thompson | ef2d5a4 | 2013-08-22 19:09:24 -0700 | [diff] [blame] | 140 | \ |
| 141 | template<typename type_name> \ |
| 142 | void test_name<type_name>::test_method() \ |
| 143 | /**/ |
| 144 | |
| 145 | // ************************************************************************** // |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 146 | // ************** NDNBOOST_AUTO_TEST_CASE_TEMPLATE ************** // |
Jeff Thompson | ef2d5a4 | 2013-08-22 19:09:24 -0700 | [diff] [blame] | 147 | // ************************************************************************** // |
| 148 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 149 | #define NDNBOOST_AUTO_TEST_CASE_TEMPLATE( test_name, type_name, TL ) \ |
| 150 | NDNBOOST_FIXTURE_TEST_CASE_TEMPLATE( test_name, type_name, TL, NDNBOOST_AUTO_TEST_CASE_FIXTURE ) |
Jeff Thompson | ef2d5a4 | 2013-08-22 19:09:24 -0700 | [diff] [blame] | 151 | |
| 152 | // ************************************************************************** // |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 153 | // ************** NDNBOOST_TEST_CASE_TEMPLATE ************** // |
Jeff Thompson | ef2d5a4 | 2013-08-22 19:09:24 -0700 | [diff] [blame] | 154 | // ************************************************************************** // |
| 155 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 156 | #define NDNBOOST_TEST_CASE_TEMPLATE( name, typelist ) \ |
Jeff Thompson | ef2d5a4 | 2013-08-22 19:09:24 -0700 | [diff] [blame] | 157 | ndnboost::unit_test::ut_detail::template_test_case_gen<name,typelist >( \ |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 158 | NDNBOOST_TEST_STRINGIZE( name ) ) \ |
Jeff Thompson | ef2d5a4 | 2013-08-22 19:09:24 -0700 | [diff] [blame] | 159 | /**/ |
| 160 | |
| 161 | // ************************************************************************** // |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 162 | // ************** NDNBOOST_TEST_CASE_TEMPLATE_FUNCTION ************** // |
Jeff Thompson | ef2d5a4 | 2013-08-22 19:09:24 -0700 | [diff] [blame] | 163 | // ************************************************************************** // |
| 164 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 165 | #define NDNBOOST_TEST_CASE_TEMPLATE_FUNCTION( name, type_name ) \ |
Jeff Thompson | ef2d5a4 | 2013-08-22 19:09:24 -0700 | [diff] [blame] | 166 | template<typename type_name> \ |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 167 | void NDNBOOST_JOIN( name, _impl )( ndnboost::type<type_name>* ); \ |
Jeff Thompson | ef2d5a4 | 2013-08-22 19:09:24 -0700 | [diff] [blame] | 168 | \ |
| 169 | struct name { \ |
| 170 | template<typename TestType> \ |
| 171 | static void run( ndnboost::type<TestType>* frwrd = 0 ) \ |
| 172 | { \ |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 173 | NDNBOOST_JOIN( name, _impl )( frwrd ); \ |
Jeff Thompson | ef2d5a4 | 2013-08-22 19:09:24 -0700 | [diff] [blame] | 174 | } \ |
| 175 | }; \ |
| 176 | \ |
| 177 | template<typename type_name> \ |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 178 | void NDNBOOST_JOIN( name, _impl )( ndnboost::type<type_name>* ) \ |
Jeff Thompson | ef2d5a4 | 2013-08-22 19:09:24 -0700 | [diff] [blame] | 179 | /**/ |
| 180 | |
| 181 | // ************************************************************************** // |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 182 | // ************** NDNBOOST_GLOBAL_FIXURE ************** // |
Jeff Thompson | ef2d5a4 | 2013-08-22 19:09:24 -0700 | [diff] [blame] | 183 | // ************************************************************************** // |
| 184 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 185 | #define NDNBOOST_GLOBAL_FIXTURE( F ) \ |
| 186 | static ndnboost::unit_test::ut_detail::global_fixture_impl<F> NDNBOOST_JOIN( gf_, F ) ; \ |
Jeff Thompson | ef2d5a4 | 2013-08-22 19:09:24 -0700 | [diff] [blame] | 187 | /**/ |
| 188 | |
| 189 | // ************************************************************************** // |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 190 | // ************** NDNBOOST_AUTO_TEST_CASE_FIXTURE ************** // |
Jeff Thompson | ef2d5a4 | 2013-08-22 19:09:24 -0700 | [diff] [blame] | 191 | // ************************************************************************** // |
| 192 | |
| 193 | namespace ndnboost { namespace unit_test { namespace ut_detail { |
| 194 | |
| 195 | struct nil_t {}; |
| 196 | |
| 197 | } // namespace ut_detail |
| 198 | } // unit_test |
| 199 | } // namespace ndnboost |
| 200 | |
| 201 | // Intentionally is in global namespace, so that FIXURE_TEST_SUITE can reset it in user code. |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 202 | typedef ::ndnboost::unit_test::ut_detail::nil_t NDNBOOST_AUTO_TEST_CASE_FIXTURE; |
Jeff Thompson | ef2d5a4 | 2013-08-22 19:09:24 -0700 | [diff] [blame] | 203 | |
| 204 | // ************************************************************************** // |
| 205 | // ************** Auto registration facility helper macros ************** // |
| 206 | // ************************************************************************** // |
| 207 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 208 | #define NDNBOOST_AUTO_TU_REGISTRAR( test_name ) \ |
| 209 | static ndnboost::unit_test::ut_detail::auto_test_unit_registrar NDNBOOST_JOIN( NDNBOOST_JOIN( test_name, _registrar ), __LINE__ ) |
| 210 | #define NDNBOOST_AUTO_TC_INVOKER( test_name ) NDNBOOST_JOIN( test_name, _invoker ) |
| 211 | #define NDNBOOST_AUTO_TC_UNIQUE_ID( test_name ) NDNBOOST_JOIN( test_name, _id ) |
Jeff Thompson | ef2d5a4 | 2013-08-22 19:09:24 -0700 | [diff] [blame] | 212 | |
| 213 | // ************************************************************************** // |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 214 | // ************** NDNBOOST_TEST_MAIN ************** // |
Jeff Thompson | ef2d5a4 | 2013-08-22 19:09:24 -0700 | [diff] [blame] | 215 | // ************************************************************************** // |
| 216 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 217 | #if defined(NDNBOOST_TEST_MAIN) |
Jeff Thompson | ef2d5a4 | 2013-08-22 19:09:24 -0700 | [diff] [blame] | 218 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 219 | #ifdef NDNBOOST_TEST_ALTERNATIVE_INIT_API |
Jeff Thompson | ef2d5a4 | 2013-08-22 19:09:24 -0700 | [diff] [blame] | 220 | bool init_unit_test() { |
| 221 | #else |
| 222 | ::ndnboost::unit_test::test_suite* |
| 223 | init_unit_test_suite( int, char* [] ) { |
| 224 | #endif |
| 225 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 226 | #ifdef NDNBOOST_TEST_MODULE |
Jeff Thompson | ef2d5a4 | 2013-08-22 19:09:24 -0700 | [diff] [blame] | 227 | using namespace ::ndnboost::unit_test; |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 228 | assign_op( framework::master_test_suite().p_name.value, NDNBOOST_TEST_STRINGIZE( NDNBOOST_TEST_MODULE ).trim( "\"" ), 0 ); |
Jeff Thompson | ef2d5a4 | 2013-08-22 19:09:24 -0700 | [diff] [blame] | 229 | |
| 230 | #endif |
| 231 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 232 | #ifdef NDNBOOST_TEST_ALTERNATIVE_INIT_API |
Jeff Thompson | ef2d5a4 | 2013-08-22 19:09:24 -0700 | [diff] [blame] | 233 | return true; |
| 234 | } |
| 235 | #else |
| 236 | return 0; |
| 237 | } |
| 238 | #endif |
| 239 | |
| 240 | #endif |
| 241 | |
| 242 | //____________________________________________________________________________// |
| 243 | |
Jeff Thompson | 3d613fd | 2013-10-15 15:39:04 -0700 | [diff] [blame^] | 244 | #endif // NDNBOOST_TEST_UNIT_TEST_SUITE_HPP_071894GER |
Jeff Thompson | ef2d5a4 | 2013-08-22 19:09:24 -0700 | [diff] [blame] | 245 | |