]> git.saurik.com Git - wxWidgets.git/blame_incremental - tests/controls/pickerbasetest.h
Add a test for eol-native file existence in the release script.
[wxWidgets.git] / tests / controls / pickerbasetest.h
... / ...
CommitLineData
1///////////////////////////////////////////////////////////////////////////////
2// Name: tests/controls/pickerbasetest.cpp
3// Purpose: wxPickerBase unit test
4// Author: Steven Lamerton
5// Created: 2010-08-07
6// RCS-ID: $Id$
7// Copyright: (c) 2010 Steven Lamerton
8///////////////////////////////////////////////////////////////////////////////
9
10#ifndef _WX_TESTS_CONTROLS_PICKERBASETEST_H_
11#define _WX_TESTS_CONTROLS_PICKERBASETEST_H_
12
13class PickerBaseTestCase
14{
15public:
16 PickerBaseTestCase() { }
17 virtual ~PickerBaseTestCase() { }
18
19protected:
20 // this function must be overridden by the derived classes to return the
21 // text entry object we're testing, typically this is done by creating a
22 // control implementing wxPickerBase interface in setUp() virtual method and
23 // just returning it from here
24 virtual wxPickerBase *GetBase() const = 0;
25
26 // this should be inserted in the derived class CPPUNIT_TEST_SUITE
27 // definition to run all wxPickerBase tests as part of it
28 #define wxPICKER_BASE_TESTS() \
29 CPPUNIT_TEST( Margin ); \
30 CPPUNIT_TEST( Proportion ); \
31 CPPUNIT_TEST( Growable ); \
32 CPPUNIT_TEST( Controls )
33
34 void Margin();
35 void Proportion();
36 void Growable();
37 void Controls();
38
39private:
40 wxDECLARE_NO_COPY_CLASS(PickerBaseTestCase);
41};
42
43#endif // _WX_TESTS_CONTROLS_PICKERBASETEST_H_