diff options
Diffstat (limited to 'tests/conduits')
-rw-r--r-- | tests/conduits/vcalconduit/exampletest.cc | 26 | ||||
-rw-r--r-- | tests/conduits/vcalconduit/exampletest.h | 28 |
2 files changed, 54 insertions, 0 deletions
diff --git a/tests/conduits/vcalconduit/exampletest.cc b/tests/conduits/vcalconduit/exampletest.cc new file mode 100644 index 0000000..b16a6c3 --- /dev/null +++ b/tests/conduits/vcalconduit/exampletest.cc @@ -0,0 +1,26 @@ +#include "options.h" +#include "config.h" + +#include "exampletest.h" + +CPPUNIT_TEST_SUITE_REGISTRATION( VCalConduitTest ); + + +void VCalConduitTest::setUp() +{ + device = TQString("testdevice"); + link = new KPilotLocalLink(0, "localLink"); + syncMode = SyncAction::SyncMode::eHotSync; +} + + +void VCalConduitTest::tearDown() +{ + delete link; +} + + +void VCalConduitTest::testConstructor() +{ + CPPUNIT_ASSERT( true == true ); +} diff --git a/tests/conduits/vcalconduit/exampletest.h b/tests/conduits/vcalconduit/exampletest.h new file mode 100644 index 0000000..f98c14c --- /dev/null +++ b/tests/conduits/vcalconduit/exampletest.h @@ -0,0 +1,28 @@ +#ifndef EXAMPLETEST_H +#define EXAMPLETEST_H + +#include <cppunit/extensions/HelperMacros.h> +#include <tqstring.h> + +#include "kpilotlocallink.h" +#include "syncAction.h" + +class VCalConduitTest : public CppUnit::TestFixture +{ + CPPUNIT_TEST_SUITE( VCalConduitTest ); + CPPUNIT_TEST( testConstructor ); + CPPUNIT_TEST_SUITE_END(); + +private: + TQString device; + KPilotLocalLink *link; + SyncAction::SyncMode::Mode syncMode; + +public: + void setUp(); + void tearDown(); + + void testConstructor(); +}; + +#endif |