Kaydet (Commit) e598c5f7 authored tarafından Stephan Bergmann's avatar Stephan Bergmann

loplugin:cppunitassertequals: configmgr

Change-Id: I02d54c1eee815e7c6575a8131d59974089299bdf
üst d70cc23f
...@@ -165,13 +165,21 @@ RecursiveTest::~RecursiveTest() ...@@ -165,13 +165,21 @@ RecursiveTest::~RecursiveTest()
void RecursiveTest::disposing(css::lang::EventObject const & Source) void RecursiveTest::disposing(css::lang::EventObject const & Source)
{ {
CPPUNIT_ASSERT(properties_.is() && Source.Source == properties_); CPPUNIT_ASSERT(properties_.is());
CPPUNIT_ASSERT_EQUAL(
css::uno::Reference<css::uno::XInterface>(
properties_, css::uno::UNO_QUERY_THROW),
Source.Source);
properties_.clear(); properties_.clear();
} }
void RecursiveTest::propertyChange(css::beans::PropertyChangeEvent const & evt) void RecursiveTest::propertyChange(css::beans::PropertyChangeEvent const & evt)
{ {
CPPUNIT_ASSERT( evt.Source == properties_ && evt.PropertyName == "Label" ); CPPUNIT_ASSERT_EQUAL(
css::uno::Reference<css::uno::XInterface>(
properties_, css::uno::UNO_QUERY_THROW),
evt.Source);
CPPUNIT_ASSERT_EQUAL( OUString("Label"), evt.PropertyName );
if (count_ > 0) { if (count_ > 0) {
--count_; --count_;
step(); step();
......
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