From cb7eddb91455a69cf66fcd717e91a51ca5e2cfef Mon Sep 17 00:00:00 2001 From: tpearson Date: Wed, 16 Feb 2011 20:17:18 +0000 Subject: Moved kpilot from kdepim to applications, as the core Trinity libraries should not contain hardware-dependent software git-svn-id: svn://anonsvn.kde.org/home/kde/branches/trinity/applications/kpilot@1221127 283d02a7-25f6-0310-bc7c-ecb5cbfe19da --- tests/conduits/vcalconduit/exampletest.cc | 26 ++++++++++++++++++++++++++ tests/conduits/vcalconduit/exampletest.h | 28 ++++++++++++++++++++++++++++ 2 files changed, 54 insertions(+) create mode 100644 tests/conduits/vcalconduit/exampletest.cc create mode 100644 tests/conduits/vcalconduit/exampletest.h (limited to 'tests/conduits') 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 +#include + +#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 -- cgit v1.2.1