root/trunk/tests/ConfigTest.h

Revision 205, 1.8 kB (checked in by jordi, 2 years ago)

I've added the missing pure virtual function from last week and also added a new test function for the Config class to test the last saved folder option.

Line 
1// ePDFView - Configuration Test Fixture.
2// Copyright (C) 2006 Emma's Software.
3//
4// This program is free software; you can redistribute it and/or modify
5// it under the terms of the GNU General Public License as published by
6// the Free Software Foundation; either version 2 of the License, or
7// (at your option) any later version.
8//
9// This program is distributed in the hope that it will be useful,
10// but WITHOUT ANY WARRANTY; without even the implied warranty of
11// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12// GNU General Public License for more details.
13//
14// You should have received a copy of the GNU General Public License
15// along with this program; if not, write to the Free Software
16// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
17
18#if !defined (__CONFIG_TEST_H__)
19#define __CONFIG_TEST_H__
20
21#include <cppunit/extensions/HelperMacros.h>
22
23namespace ePDFView
24{
25    class ConfigTest: public CppUnit::TestFixture
26    {
27        CPPUNIT_TEST_SUITE (ConfigTest);
28        CPPUNIT_TEST (defaultValues);
29        CPPUNIT_TEST (windowValues);
30        CPPUNIT_TEST (showToolbar);
31        CPPUNIT_TEST (showStatusbar);
32        CPPUNIT_TEST (openCurrentFolder);
33        CPPUNIT_TEST (saveCurrentFolder);
34        CPPUNIT_TEST (zoomValues);
35        CPPUNIT_TEST (externalBrowser);
36        CPPUNIT_TEST_SUITE_END ();
37
38        public:
39            void setUp (void);
40            void tearDown (void);
41
42            void defaultValues (void);
43            void windowValues (void);
44            void showToolbar (void);
45            void showStatusbar (void);
46            void openCurrentFolder (void);
47            void saveCurrentFolder (void);
48            void zoomValues (void);
49            void externalBrowser (void);
50    };
51}
52
53#endif // __CONFIG_TEST_H__
Note: See TracBrowser for help on using the browser.