]> git.saurik.com Git - wxWidgets.git/blame - tests/controls/pickerbasetest.h
Applied patch #15540: wxRichTextTable: crashes due to an invalid focus object (dghart)
[wxWidgets.git] / tests / controls / pickerbasetest.h
CommitLineData
232fdc63
VZ
1///////////////////////////////////////////////////////////////////////////////
2// Name: tests/controls/pickerbasetest.cpp
3// Purpose: wxPickerBase unit test
4// Author: Steven Lamerton
5// Created: 2010-08-07
232fdc63
VZ
6// Copyright: (c) 2010 Steven Lamerton
7///////////////////////////////////////////////////////////////////////////////
8
9#ifndef _WX_TESTS_CONTROLS_PICKERBASETEST_H_
10#define _WX_TESTS_CONTROLS_PICKERBASETEST_H_
11
12class PickerBaseTestCase
13{
14public:
15 PickerBaseTestCase() { }
16 virtual ~PickerBaseTestCase() { }
17
18protected:
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;
24
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 )
32
33 void Margin();
34 void Proportion();
35 void Growable();
36 void Controls();
37
38private:
39 wxDECLARE_NO_COPY_CLASS(PickerBaseTestCase);
40};
41
42#endif // _WX_TESTS_CONTROLS_PICKERBASETEST_H_