3 #ifndef CDS_CPPUNIT_TEST_BEANS_H
4 #define CDS_CPPUNIT_TEST_BEANS_H
7 // Forward declarations
13 // Including this header is a bad thing for header testing. How to avoid it?..
14 #include <cds/algo/atomic.h> // for cds::atomicity::empty_item_counter
16 namespace test_beans {
17 template <typename ItemCounter>
18 struct check_item_counter {
19 bool operator()( size_t nReal, size_t nExpected )
21 return nReal == nExpected;
26 struct check_item_counter<cds::atomicity::empty_item_counter>
28 bool operator()( size_t nReal, size_t /*nExpected*/ )
35 #endif // #ifndef CDS_CPPUNIT_TEST_BEANS_H