]>
git.saurik.com Git - wxWidgets.git/blob - tests/controls/pickerbasetest.h
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: tests/controls/pickerbasetest.cpp
3 // Purpose: wxPickerBase unit test
4 // Author: Steven Lamerton
6 // Copyright: (c) 2010 Steven Lamerton
7 ///////////////////////////////////////////////////////////////////////////////
9 #ifndef _WX_TESTS_CONTROLS_PICKERBASETEST_H_
10 #define _WX_TESTS_CONTROLS_PICKERBASETEST_H_
12 class PickerBaseTestCase
15 PickerBaseTestCase() { }
16 virtual ~PickerBaseTestCase() { }
19 // this function must be overridden by the derived classes to return the
20 // text entry object we're testing, typically this is done by creating a
21 // control implementing wxPickerBase interface in setUp() virtual method and
22 // just returning it from here
23 virtual wxPickerBase
*GetBase() const = 0;
25 // this should be inserted in the derived class CPPUNIT_TEST_SUITE
26 // definition to run all wxPickerBase tests as part of it
27 #define wxPICKER_BASE_TESTS() \
28 CPPUNIT_TEST( Margin ); \
29 CPPUNIT_TEST( Proportion ); \
30 CPPUNIT_TEST( Growable ); \
31 CPPUNIT_TEST( Controls )
39 wxDECLARE_NO_COPY_CLASS(PickerBaseTestCase
);
42 #endif // _WX_TESTS_CONTROLS_PICKERBASETEST_H_