diff --git a/src/tests/kits/app/bhandler/LooperTest.cpp b/src/tests/kits/app/bhandler/LooperTest.cpp deleted file mode 100644 index 03c8f3d2d4..0000000000 --- a/src/tests/kits/app/bhandler/LooperTest.cpp +++ /dev/null @@ -1,63 +0,0 @@ -//------------------------------------------------------------------------------ -// LooperTest.cpp -// -//------------------------------------------------------------------------------ - -// Standard Includes ----------------------------------------------------------- - -// System Includes ------------------------------------------------------------- -#include - -// Project Includes ------------------------------------------------------------ - -// Local Includes -------------------------------------------------------------- -#include "LooperTest.h" - -// Local Defines --------------------------------------------------------------- - -// Globals --------------------------------------------------------------------- - -//------------------------------------------------------------------------------ -/** - Looper() - @case Not added to a BLooper - @results Returns NULL - */ -void TLooperTest::LooperTest1() -{ - CPPUNIT_ASSERT(fHandler.Looper() == NULL); -} -//------------------------------------------------------------------------------ -/** - Looper() - @case Add to a BLooper, then remove - @results Returns the added-to BLooper; when removed, returns NULL - */ -void TLooperTest::LooperTest2() -{ - BLooper Looper; - Looper.AddHandler(&fHandler); - CPPUNIT_ASSERT(fHandler.Looper() == &Looper); - - CPPUNIT_ASSERT(Looper.RemoveHandler(&fHandler)); - CPPUNIT_ASSERT(fHandler.Looper() == NULL); -} -//------------------------------------------------------------------------------ -Test* TLooperTest::Suite() -{ - TestSuite* SuiteOfTests = new TestSuite("BHandler::Looper"); - - ADD_TEST(SuiteOfTests, TLooperTest, LooperTest1); - ADD_TEST(SuiteOfTests, TLooperTest, LooperTest2); - - return SuiteOfTests; -} -//------------------------------------------------------------------------------ - -/* - * $Log $ - * - * $Id $ - * - */ - diff --git a/src/tests/kits/app/bhandler/LooperTest.h b/src/tests/kits/app/bhandler/LooperTest.h deleted file mode 100644 index 3190649f12..0000000000 --- a/src/tests/kits/app/bhandler/LooperTest.h +++ /dev/null @@ -1,50 +0,0 @@ -//------------------------------------------------------------------------------ -// LooperTest.h -// -//------------------------------------------------------------------------------ - -#ifndef LOOPERTEST_H -#define LOOPERTEST_H - -// Standard Includes ----------------------------------------------------------- - -// System Includes ------------------------------------------------------------- -#if defined(TEST_R5) -#include -#else -#include -#endif - -// Project Includes ------------------------------------------------------------ - -// Local Includes -------------------------------------------------------------- -#include "../common.h" - -// Local Defines --------------------------------------------------------------- - -// Globals --------------------------------------------------------------------- - -class TLooperTest : public TestCase -{ - public: - TLooperTest() {;} - TLooperTest(std::string name) : TestCase(name) {;} - - void LooperTest1(); - void LooperTest2(); - - static Test* Suite(); - - private: - BHandler fHandler; -}; - -#endif //LOOPERTEST_H - -/* - * $Log $ - * - * $Id $ - * - */ -