]> git.saurik.com Git - wxWidgets.git/blob - tests/controls/listbasetest.h
Convert wxFSW_EVENT_{WARNING,ERROR} to string correctly.
[wxWidgets.git] / tests / controls / listbasetest.h
1 ///////////////////////////////////////////////////////////////////////////////
2 // Name: tests/controls/listbasetest.cpp
3 // Purpose: Base class for wxListCtrl and wxListView tests
4 // Author: Steven Lamerton
5 // Created: 2010-07-20
6 // RCS-ID: $Id$
7 // Copyright: (c) 2008 Vadim Zeitlin <vadim@wxwidgets.org>,
8 // (c) 2010 Steven Lamerton
9 ///////////////////////////////////////////////////////////////////////////////
10
11 #ifndef _WX_TESTS_CONTROLS_LISTBASETEST_H_
12 #define _WX_TESTS_CONTROLS_LISTBASETEST_H_
13
14 class ListBaseTestCase
15 {
16 public:
17 ListBaseTestCase() { }
18 virtual ~ListBaseTestCase() { }
19
20 protected:
21 virtual wxListCtrl *GetList() const = 0;
22
23 #define wxLIST_BASE_TESTS() \
24 CPPUNIT_TEST( ColumnsOrder ); \
25 CPPUNIT_TEST( ItemRect ); \
26 CPPUNIT_TEST( ItemText ); \
27 CPPUNIT_TEST( ChangeMode ); \
28 WXUISIM_TEST( ItemClick ); \
29 WXUISIM_TEST( KeyDown ); \
30 CPPUNIT_TEST( DeleteItems ); \
31 CPPUNIT_TEST( InsertItem ); \
32 CPPUNIT_TEST( Find ); \
33 CPPUNIT_TEST( Visible ); \
34 CPPUNIT_TEST( ItemFormatting ); \
35 WXUISIM_TEST( EditLabel ); \
36 CPPUNIT_TEST( ImageList ); \
37 CPPUNIT_TEST( Sort )
38
39 void ColumnsOrder();
40 void ItemRect();
41 void ItemText();
42 void ChangeMode();
43 void ItemClick();
44 void KeyDown();
45 void DeleteItems();
46 void InsertItem();
47 void Find();
48 void Visible();
49 void ItemFormatting();
50 void EditLabel();
51 void ImageList();
52 void Sort();
53
54 wxDECLARE_NO_COPY_CLASS(ListBaseTestCase);
55 };
56
57 #endif