From cc84aaf70ac56092b32d1d329143eca0550dce12 Mon Sep 17 00:00:00 2001 From: Chirag Manwani Date: Mon, 7 Mar 2016 02:14:49 +0530 Subject: tdf#97703 removed empty setUp/tearDown methods Change-Id: I244d481bce4723d172e26c0d31aab0a541334604 Reviewed-on: https://gerrit.libreoffice.org/22959 Tested-by: Jenkins Reviewed-by: Stephan Bergmann --- sal/qa/osl/mutex/osl_Mutex.cxx | 4 -- sal/qa/osl/pipe/osl_Pipe.cxx | 8 ---- sal/qa/osl/process/osl_Thread.cxx | 86 ------------------------------------- sal/qa/rtl/ostring/rtl_OString2.cxx | 36 ---------------- 4 files changed, 134 deletions(-) (limited to 'sal') diff --git a/sal/qa/osl/mutex/osl_Mutex.cxx b/sal/qa/osl/mutex/osl_Mutex.cxx index 67924d245df3..83c1b6872cdf 100644 --- a/sal/qa/osl/mutex/osl_Mutex.cxx +++ b/sal/qa/osl/mutex/osl_Mutex.cxx @@ -254,10 +254,6 @@ namespace osl_Mutex m_Res.data2 = 0; } - void tearDown() override - { - } - /** 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. the two threads wrote two different datas: their thread ID, so we can check the datas diff --git a/sal/qa/osl/pipe/osl_Pipe.cxx b/sal/qa/osl/pipe/osl_Pipe.cxx index 568f0472923d..ce184f0a03a4 100644 --- a/sal/qa/osl/pipe/osl_Pipe.cxx +++ b/sal/qa/osl/pipe/osl_Pipe.cxx @@ -122,14 +122,6 @@ namespace osl_Pipe public: bool bRes, bRes1; - void setUp( ) override - { - } - - void tearDown( ) override - { - } - void ctors_none( ) { ::osl::Pipe aPipe; diff --git a/sal/qa/osl/process/osl_Thread.cxx b/sal/qa/osl/process/osl_Thread.cxx index 0d0eb0f2eee9..28080b41b52f 100644 --- a/sal/qa/osl/process/osl_Thread.cxx +++ b/sal/qa/osl/process/osl_Thread.cxx @@ -449,16 +449,6 @@ namespace osl_Thread class create : public CppUnit::TestFixture { public: - - // initialise your test code values here. - void setUp() override - { - } - - void tearDown() override - { - } - /** Simple create a thread. Create a simple thread, it just does add 1 to value(which initialized 0), @@ -518,15 +508,6 @@ namespace osl_Thread class createSuspended : public CppUnit::TestFixture { public: - // initialise your test code values here. - void setUp() override - { - } - - void tearDown() override - { - } - /** 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 @@ -599,15 +580,6 @@ namespace osl_Thread class suspend : public CppUnit::TestFixture { public: - // initialise your test code values here. - void setUp() override - { - } - - void tearDown() override - { - } - /** Use a thread which has a flag added 1 every second ALGORITHM: @@ -653,15 +625,6 @@ namespace osl_Thread class resume : public CppUnit::TestFixture { 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 ALGORITHM: @@ -738,15 +701,6 @@ namespace osl_Thread class terminate : public CppUnit::TestFixture { 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 ALGORITHM: @@ -817,15 +771,6 @@ namespace osl_Thread class join : public CppUnit::TestFixture { 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 the next statement after join will not exec before the thread terminate @@ -909,17 +854,6 @@ namespace osl_Thread class isRunning : public CppUnit::TestFixture { public: - // initialise your test code values here. - void setUp() override - { - } - - void tearDown() override - { - } - - /** - */ void isRunning_001() { OCountThread *aCountThread = new OCountThread(); @@ -975,15 +909,6 @@ namespace osl_Thread class setPriority : public CppUnit::TestFixture { public: - // initialise your test code values here. - void setUp() override - { - } - - void tearDown() override - { - } - // insert your test code here. rtl::OString getPrioName(oslThreadPriority _aPriority) { @@ -1433,11 +1358,6 @@ namespace osl_Thread class getPriority : public CppUnit::TestFixture { public: - // initialise your test code values here. - void setUp() override {} - - void tearDown() override {} - // insert your test code here. void getPriority_001() { @@ -1520,9 +1440,6 @@ namespace osl_Thread class waittest : public CppUnit::TestFixture { public: - void setUp() override {} - void tearDown() override {} - /** call wait in the run method ALGORITHM: @@ -1580,9 +1497,6 @@ namespace osl_Thread class yield : public CppUnit::TestFixture { public: - void setUp() override {} - void tearDown() override {} - void yield_001() { // insert your test code here. diff --git a/sal/qa/rtl/ostring/rtl_OString2.cxx b/sal/qa/rtl/ostring/rtl_OString2.cxx index 5c7605758b09..e42ac2b04dff 100644 --- a/sal/qa/rtl/ostring/rtl_OString2.cxx +++ b/sal/qa/rtl/ostring/rtl_OString2.cxx @@ -53,15 +53,6 @@ class valueOf : public CppUnit::TestFixture } public: - // initialise your test code values here. - void setUp() - { - } - - void tearDown() - { - } - // insert your test code here. void valueOf_float_test_001() { @@ -209,15 +200,6 @@ public: // testPrecision a; } - // initialise your test code values here. - void setUp() - { - } - - void tearDown() - { - } - void toDouble_test_impl(rtl::OString const& _sValue) { double nValueATOF = atof( _sValue.getStr() ); @@ -353,16 +335,6 @@ class getToken : public CppUnit::TestFixture { public: - - // initialise your test code values here. - void setUp() - { - } - - void tearDown() - { - } - void getToken_000() { rtl::OString sTokenStr; @@ -465,14 +437,6 @@ class replaceAt : public CppUnit::TestFixture { public: - // initialise your test code values here. - void setUp() - { - } - - void tearDown() - { - } sal_Bool check_replaceAt( const rtl::OString* expVal, const rtl::OString* input, const rtl::OString* newStr, sal_Int32 index, sal_Int32 count) { -- cgit