diff options
author | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2014-12-05 05:14:32 +0100 |
---|---|---|
committer | Bjoern Michaelsen <bjoern.michaelsen@canonical.com> | 2014-12-05 16:10:36 +0100 |
commit | bf449c26d0af39f3411dd527f847157eb6642733 (patch) | |
tree | f7a94625fb739256313f5e88e49fffdb032e7d25 /sw/qa | |
parent | 04adb4de787086c59813dce65dae8d7b94e900ca (diff) |
update test
Change-Id: Icccf85795d2f46cb5b50150ff553cad647247862
Diffstat (limited to 'sw/qa')
-rw-r--r-- | sw/qa/core/uwriter.cxx | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/sw/qa/core/uwriter.cxx b/sw/qa/core/uwriter.cxx index 078bf2ef1022..e69229aecd44 100644 --- a/sw/qa/core/uwriter.cxx +++ b/sw/qa/core/uwriter.cxx @@ -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)); |