Kaydet (Commit) cc84aaf7 authored tarafından Chirag Manwani's avatar Chirag Manwani Kaydeden (comit) Stephan Bergmann

tdf#97703 removed empty setUp/tearDown methods

Change-Id: I244d481bce4723d172e26c0d31aab0a541334604
Reviewed-on: https://gerrit.libreoffice.org/22959Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarStephan Bergmann <sbergman@redhat.com>
üst 472d900e
...@@ -254,10 +254,6 @@ namespace osl_Mutex ...@@ -254,10 +254,6 @@ namespace osl_Mutex
m_Res.data2 = 0; m_Res.data2 = 0;
} }
void tearDown() override
{
}
/** Create two threads to write data to the same buffer, use Mutex to assure /** Create two threads to write data to the same buffer, use Mutex to assure
during one thread write data five times, the other thread should not begin writing. during one thread write data five times, the other thread should not begin writing.
the two threads wrote two different datas: their thread ID, so we can check the datas the two threads wrote two different datas: their thread ID, so we can check the datas
......
...@@ -122,14 +122,6 @@ namespace osl_Pipe ...@@ -122,14 +122,6 @@ namespace osl_Pipe
public: public:
bool bRes, bRes1; bool bRes, bRes1;
void setUp( ) override
{
}
void tearDown( ) override
{
}
void ctors_none( ) void ctors_none( )
{ {
::osl::Pipe aPipe; ::osl::Pipe aPipe;
......
...@@ -449,16 +449,6 @@ namespace osl_Thread ...@@ -449,16 +449,6 @@ namespace osl_Thread
class create : public CppUnit::TestFixture class create : public CppUnit::TestFixture
{ {
public: public:
// initialise your test code values here.
void setUp() override
{
}
void tearDown() override
{
}
/** Simple create a thread. /** Simple create a thread.
Create a simple thread, it just does add 1 to value(which initialized 0), Create a simple thread, it just does add 1 to value(which initialized 0),
...@@ -518,15 +508,6 @@ namespace osl_Thread ...@@ -518,15 +508,6 @@ namespace osl_Thread
class createSuspended : public CppUnit::TestFixture class createSuspended : public CppUnit::TestFixture
{ {
public: public:
// initialise your test code values here.
void setUp() override
{
}
void tearDown() override
{
}
/** Create a suspended thread, use the same class as create_001 /** Create a suspended thread, use the same class as create_001
after create, wait enough time, check the value, if it's still the initial value, pass after create, wait enough time, check the value, if it's still the initial value, pass
...@@ -599,15 +580,6 @@ namespace osl_Thread ...@@ -599,15 +580,6 @@ namespace osl_Thread
class suspend : public CppUnit::TestFixture class suspend : public CppUnit::TestFixture
{ {
public: public:
// initialise your test code values here.
void setUp() override
{
}
void tearDown() override
{
}
/** Use a thread which has a flag added 1 every second /** Use a thread which has a flag added 1 every second
ALGORITHM: ALGORITHM:
...@@ -653,15 +625,6 @@ namespace osl_Thread ...@@ -653,15 +625,6 @@ namespace osl_Thread
class resume : public CppUnit::TestFixture class resume : public CppUnit::TestFixture
{ {
public: public:
// initialise your test code values here.
void setUp() override
{
}
void tearDown() override
{
}
/** check if the thread run samely as usual after suspend and resume /** check if the thread run samely as usual after suspend and resume
ALGORITHM: ALGORITHM:
...@@ -738,15 +701,6 @@ namespace osl_Thread ...@@ -738,15 +701,6 @@ namespace osl_Thread
class terminate : public CppUnit::TestFixture class terminate : public CppUnit::TestFixture
{ {
public: public:
// initialise your test code values here.
void setUp() override
{
}
void tearDown() override
{
}
/** Check after call terminate if the running thread running go on executing /** Check after call terminate if the running thread running go on executing
ALGORITHM: ALGORITHM:
...@@ -817,15 +771,6 @@ namespace osl_Thread ...@@ -817,15 +771,6 @@ namespace osl_Thread
class join : public CppUnit::TestFixture class join : public CppUnit::TestFixture
{ {
public: public:
// initialise your test code values here.
void setUp() override
{
}
void tearDown() override
{
}
/** Check after call terminate if the thread running function will not go on executing /** Check after call terminate if the thread running function will not go on executing
the next statement after join will not exec before the thread terminate the next statement after join will not exec before the thread terminate
...@@ -909,17 +854,6 @@ namespace osl_Thread ...@@ -909,17 +854,6 @@ namespace osl_Thread
class isRunning : public CppUnit::TestFixture class isRunning : public CppUnit::TestFixture
{ {
public: public:
// initialise your test code values here.
void setUp() override
{
}
void tearDown() override
{
}
/**
*/
void isRunning_001() void isRunning_001()
{ {
OCountThread *aCountThread = new OCountThread(); OCountThread *aCountThread = new OCountThread();
...@@ -975,15 +909,6 @@ namespace osl_Thread ...@@ -975,15 +909,6 @@ namespace osl_Thread
class setPriority : public CppUnit::TestFixture class setPriority : public CppUnit::TestFixture
{ {
public: public:
// initialise your test code values here.
void setUp() override
{
}
void tearDown() override
{
}
// insert your test code here. // insert your test code here.
rtl::OString getPrioName(oslThreadPriority _aPriority) rtl::OString getPrioName(oslThreadPriority _aPriority)
{ {
...@@ -1433,11 +1358,6 @@ namespace osl_Thread ...@@ -1433,11 +1358,6 @@ namespace osl_Thread
class getPriority : public CppUnit::TestFixture class getPriority : public CppUnit::TestFixture
{ {
public: public:
// initialise your test code values here.
void setUp() override {}
void tearDown() override {}
// insert your test code here. // insert your test code here.
void getPriority_001() void getPriority_001()
{ {
...@@ -1520,9 +1440,6 @@ namespace osl_Thread ...@@ -1520,9 +1440,6 @@ namespace osl_Thread
class waittest : public CppUnit::TestFixture class waittest : public CppUnit::TestFixture
{ {
public: public:
void setUp() override {}
void tearDown() override {}
/** call wait in the run method /** call wait in the run method
ALGORITHM: ALGORITHM:
...@@ -1580,9 +1497,6 @@ namespace osl_Thread ...@@ -1580,9 +1497,6 @@ namespace osl_Thread
class yield : public CppUnit::TestFixture class yield : public CppUnit::TestFixture
{ {
public: public:
void setUp() override {}
void tearDown() override {}
void yield_001() void yield_001()
{ {
// insert your test code here. // insert your test code here.
......
...@@ -53,15 +53,6 @@ class valueOf : public CppUnit::TestFixture ...@@ -53,15 +53,6 @@ class valueOf : public CppUnit::TestFixture
} }
public: public:
// initialise your test code values here.
void setUp()
{
}
void tearDown()
{
}
// insert your test code here. // insert your test code here.
void valueOf_float_test_001() void valueOf_float_test_001()
{ {
...@@ -209,15 +200,6 @@ public: ...@@ -209,15 +200,6 @@ public:
// testPrecision a; // testPrecision a;
} }
// initialise your test code values here.
void setUp()
{
}
void tearDown()
{
}
void toDouble_test_impl(rtl::OString const& _sValue) void toDouble_test_impl(rtl::OString const& _sValue)
{ {
double nValueATOF = atof( _sValue.getStr() ); double nValueATOF = atof( _sValue.getStr() );
...@@ -353,16 +335,6 @@ class getToken : public CppUnit::TestFixture ...@@ -353,16 +335,6 @@ class getToken : public CppUnit::TestFixture
{ {
public: public:
// initialise your test code values here.
void setUp()
{
}
void tearDown()
{
}
void getToken_000() void getToken_000()
{ {
rtl::OString sTokenStr; rtl::OString sTokenStr;
...@@ -465,14 +437,6 @@ class replaceAt : public CppUnit::TestFixture ...@@ -465,14 +437,6 @@ class replaceAt : public CppUnit::TestFixture
{ {
public: public:
// initialise your test code values here.
void setUp()
{
}
void tearDown()
{
}
sal_Bool check_replaceAt( const rtl::OString* expVal, const rtl::OString* input, sal_Bool check_replaceAt( const rtl::OString* expVal, const rtl::OString* input,
const rtl::OString* newStr, sal_Int32 index, sal_Int32 count) const rtl::OString* newStr, sal_Int32 index, sal_Int32 count)
{ {
......
...@@ -50,7 +50,6 @@ public: ...@@ -50,7 +50,6 @@ public:
Test(); Test();
virtual ~Test(); virtual ~Test();
virtual void setUp() override;
virtual void tearDown() override; virtual void tearDown() override;
void testNumberFormat(); void testNumberFormat();
...@@ -98,10 +97,6 @@ Test::Test() ...@@ -98,10 +97,6 @@ Test::Test()
m_pDefaultTimeZone.reset(icu::TimeZone::createDefault()); m_pDefaultTimeZone.reset(icu::TimeZone::createDefault());
} }
void Test::setUp()
{
}
void Test::tearDown() void Test::tearDown()
{ {
icu::TimeZone::setDefault(*m_pDefaultTimeZone); icu::TimeZone::setDefault(*m_pDefaultTimeZone);
......
...@@ -34,7 +34,6 @@ class Test: public CppUnit::TestFixture ...@@ -34,7 +34,6 @@ class Test: public CppUnit::TestFixture
{ {
public: public:
virtual void setUp() override;
void testSingleElement(); void testSingleElement();
void testSingleElementWithAttributes(); void testSingleElementWithAttributes();
void testSingleElementWithContent(); void testSingleElementWithContent();
...@@ -53,9 +52,6 @@ public: ...@@ -53,9 +52,6 @@ public:
CPPUNIT_TEST_SUITE_END(); CPPUNIT_TEST_SUITE_END();
}; };
void Test::setUp()
{}
void Test::testSingleElement() void Test::testSingleElement()
{ {
{ {
......
...@@ -43,15 +43,6 @@ namespace tools_urlobj ...@@ -43,15 +43,6 @@ namespace tools_urlobj
{ {
public: public:
// initialise your test code values here.
void setUp( ) override
{
}
void tearDown( ) override
{
}
// insert your test code here. // insert your test code here.
// this is only demonstration code // this is only demonstration code
void urlobjTest_001( ) void urlobjTest_001( )
......
...@@ -18,7 +18,6 @@ ...@@ -18,7 +18,6 @@
class Test: public CppUnit::TestFixture class Test: public CppUnit::TestFixture
{ {
public: public:
virtual void setUp() override;
void testSingleElement(); void testSingleElement();
CPPUNIT_TEST_SUITE(Test); CPPUNIT_TEST_SUITE(Test);
...@@ -27,10 +26,6 @@ public: ...@@ -27,10 +26,6 @@ public:
CPPUNIT_TEST_SUITE_END(); CPPUNIT_TEST_SUITE_END();
}; };
void Test::setUp()
{
}
void Test::testSingleElement() void Test::testSingleElement()
{ {
{ // lowercase { // lowercase
......
...@@ -65,10 +65,6 @@ namespace { ...@@ -65,10 +65,6 @@ namespace {
~Test(); ~Test();
virtual void setUp();
virtual void tearDown();
void test_Others(); void test_Others();
void test_RFC822(); void test_RFC822();
...@@ -164,12 +160,6 @@ namespace { ...@@ -164,12 +160,6 @@ namespace {
} }
void Test::setUp() {
}
void Test::tearDown() {
}
void Test::test_Others() { void Test::test_Others() {
CPPUNIT_ASSERT_ASSERTION_PASS( CPPUNIT_ASSERT( altNames.getLength() > 0 ) ); CPPUNIT_ASSERT_ASSERTION_PASS( CPPUNIT_ASSERT( altNames.getLength() > 0 ) );
for(int n = 1; n < altNames.getLength(); n++) for(int n = 1; n < altNames.getLength(); n++)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment