Kaydet (Commit) 9f8605b0 authored tarafından Michael Meeks's avatar Michael Meeks

sal: cleanup unit tests whitespace.

Change-Id: If067f755b99480b7b7bd0bd3bb7a71a447794273
üst f57a697f
...@@ -1434,13 +1434,9 @@ namespace osl_Thread ...@@ -1434,13 +1434,9 @@ namespace osl_Thread
{ {
public: public:
// initialise your test code values here. // initialise your test code values here.
void setUp() SAL_OVERRIDE void setUp() SAL_OVERRIDE {}
{
}
void tearDown() SAL_OVERRIDE void tearDown() SAL_OVERRIDE {}
{
}
// insert your test code here. // insert your test code here.
void getPriority_001() void getPriority_001()
...@@ -1473,14 +1469,8 @@ namespace osl_Thread ...@@ -1473,14 +1469,8 @@ namespace osl_Thread
#endif #endif
} }
void getPriority_002()
{
}
CPPUNIT_TEST_SUITE(getPriority); CPPUNIT_TEST_SUITE(getPriority);
CPPUNIT_TEST(getPriority_001); CPPUNIT_TEST(getPriority_001);
CPPUNIT_TEST(getPriority_002);
CPPUNIT_TEST_SUITE_END(); CPPUNIT_TEST_SUITE_END();
}; // class getPriority }; // class getPriority
...@@ -1488,28 +1478,17 @@ namespace osl_Thread ...@@ -1488,28 +1478,17 @@ namespace osl_Thread
{ {
public: public:
// initialise your test code values here. // initialise your test code values here.
void setUp() SAL_OVERRIDE void setUp() SAL_OVERRIDE {}
{
}
void tearDown() SAL_OVERRIDE void tearDown() SAL_OVERRIDE {}
{
}
// insert your test code here.
void getIdentifier_001() void getIdentifier_001()
{ {
// insert your test code here.
}
void getIdentifier_002()
{
} }
CPPUNIT_TEST_SUITE(getIdentifier); CPPUNIT_TEST_SUITE(getIdentifier);
CPPUNIT_TEST(getIdentifier_001); CPPUNIT_TEST(getIdentifier_001);
CPPUNIT_TEST(getIdentifier_002);
CPPUNIT_TEST_SUITE_END(); CPPUNIT_TEST_SUITE_END();
}; // class getIdentifier }; // class getIdentifier
...@@ -1518,16 +1497,9 @@ namespace osl_Thread ...@@ -1518,16 +1497,9 @@ namespace osl_Thread
class getCurrentIdentifier : public CppUnit::TestFixture class getCurrentIdentifier : public CppUnit::TestFixture
{ {
public: public:
// initialise your test code values here. void setUp() SAL_OVERRIDE {}
void setUp() SAL_OVERRIDE void tearDown() SAL_OVERRIDE {}
{
}
void tearDown() SAL_OVERRIDE
{
}
// insert your test code here.
void getCurrentIdentifier_001() void getCurrentIdentifier_001()
{ {
oslThreadIdentifier oId; oslThreadIdentifier oId;
...@@ -1541,9 +1513,7 @@ namespace osl_Thread ...@@ -1541,9 +1513,7 @@ namespace osl_Thread
CPPUNIT_ASSERT_MESSAGE( CPPUNIT_ASSERT_MESSAGE(
"Get the identifier for the current active thread.", "Get the identifier for the current active thread.",
oId != oIdChild oId != oIdChild);
);
} }
CPPUNIT_TEST_SUITE(getCurrentIdentifier); CPPUNIT_TEST_SUITE(getCurrentIdentifier);
...@@ -1556,14 +1526,8 @@ namespace osl_Thread ...@@ -1556,14 +1526,8 @@ namespace osl_Thread
class wait : public CppUnit::TestFixture class wait : public CppUnit::TestFixture
{ {
public: public:
// initialise your test code values here. void setUp() SAL_OVERRIDE {}
void setUp() SAL_OVERRIDE void tearDown() SAL_OVERRIDE {}
{
}
void tearDown() SAL_OVERRIDE
{
}
/** call wait in the run method /** call wait in the run method
...@@ -1617,22 +1581,34 @@ namespace osl_Thread ...@@ -1617,22 +1581,34 @@ namespace osl_Thread
CPPUNIT_TEST_SUITE_END(); CPPUNIT_TEST_SUITE_END();
}; // class wait }; // class wait
/** osl::Thread::yield method: can not design good test scenario to test up to now class cpu_count : public CppUnit::TestFixture
*/
class yield : public CppUnit::TestFixture
{ {
public: public:
void setUp() SAL_OVERRIDE void setUp() SAL_OVERRIDE {}
void tearDown() SAL_OVERRIDE {}
void cpu_count_001()
{ {
sal_uInt32 nThreads = osl_getCPUThreadCount();
CPPUNIT_ASSERT(false && nThreads > 0);
} }
void tearDown() SAL_OVERRIDE CPPUNIT_TEST_SUITE(cpu_count);
CPPUNIT_TEST(cpu_count_001);
CPPUNIT_TEST_SUITE_END();
}; // class cpu_count
/** osl::Thread::yield method: can not design good test scenario to test up to now
*/
class yield : public CppUnit::TestFixture
{ {
} public:
void setUp() SAL_OVERRIDE {}
void tearDown() SAL_OVERRIDE {}
// insert your test code here.
void yield_001() void yield_001()
{ {
// insert your test code here.
} }
CPPUNIT_TEST_SUITE(yield); CPPUNIT_TEST_SUITE(yield);
...@@ -1645,14 +1621,8 @@ namespace osl_Thread ...@@ -1645,14 +1621,8 @@ namespace osl_Thread
class schedule : public CppUnit::TestFixture class schedule : public CppUnit::TestFixture
{ {
public: public:
// initialise your test code values here. void setUp() SAL_OVERRIDE {}
void setUp() SAL_OVERRIDE void tearDown() SAL_OVERRIDE {}
{
}
void tearDown() SAL_OVERRIDE
{
}
/** The requested thread will get terminate the next time schedule() is called. /** The requested thread will get terminate the next time schedule() is called.
......
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