Kaydet (Commit) bf449c26 authored tarafından Bjoern Michaelsen's avatar Bjoern Michaelsen

update test

Change-Id: Icccf85795d2f46cb5b50150ff553cad647247862
üst 04adb4de
......@@ -1278,6 +1278,10 @@ namespace
struct TestRing : public sw::Ring<TestRing>
{
TestRing() : sw::Ring<TestRing>() {};
TestRing* GetNext()
{ return GetNextInRing(); }
TestRing* GetPrev()
{ return GetPrevInRing(); }
#if 0
void debug()
{
......@@ -1304,7 +1308,7 @@ void SwDocTest::testIntrusiveRing()
CPPUNIT_ASSERT_EQUAL(aRing3.GetRingContainer().size(), static_cast<size_t>(3));
aRing5.MoveTo(&aRing4);
CPPUNIT_ASSERT_EQUAL(aRing4.GetRingContainer().size(), static_cast<size_t>(2));
aRing4.MoveRingTo(&aRing1);
aRing4.GetRingContainer().merge(aRing1.GetRingContainer());
BOOST_FOREACH(TestRing* pRing, vRings)
{
CPPUNIT_ASSERT_EQUAL(pRing->GetRingContainer().size(), static_cast<size_t>(5));
......
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