diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2017-04-28 14:21:59 +0200 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2017-04-28 14:21:59 +0200 |
commit | a46141f2e02fe50d21dd4f79df86bcdb90ba36c2 (patch) | |
tree | 1db5d03527ab39fd69edf0af44f997ddbbbd2dec /extensions | |
parent | f288d880a8d16640b7d763bcc94b5c691240b3b6 (diff) |
loplugin:cppunitassertequals: extensions
Change-Id: I075b2da8062c5209de261791f0a65e3c52d3510b
Diffstat (limited to 'extensions')
-rw-r--r-- | extensions/qa/update/test_update.cxx | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/extensions/qa/update/test_update.cxx b/extensions/qa/update/test_update.cxx index 57417998aeeb..1852f1d06f3e 100644 --- a/extensions/qa/update/test_update.cxx +++ b/extensions/qa/update/test_update.cxx @@ -6,6 +6,10 @@ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */ +#include <sal/config.h> + +#include <cstddef> + #include <test/bootstrapfixture.hxx> #include <cppuhelper/bootstrap.hxx> @@ -65,7 +69,7 @@ protected: deployment::UpdateInformationEntry aEntry; if ( aUpdateInfoEnumeration->nextElement() >>= aEntry ) { - CPPUNIT_ASSERT( aEntry.UpdateDocument->getNodeName() == "description" ); + CPPUNIT_ASSERT_EQUAL( OUString("description"), aEntry.UpdateDocument->getNodeName() ); uno::Reference< dom::XNodeList> xChildNodes = aEntry.UpdateDocument->getChildNodes(); CPPUNIT_ASSERT( xChildNodes.is() ); @@ -81,7 +85,7 @@ protected: } } #endif - CPPUNIT_ASSERT( xChildNodes->getLength() == 13 ); + CPPUNIT_ASSERT_EQUAL( sal_Int32(13), xChildNodes->getLength() ); //uno::Reference< dom::XElement > xChildId( xChildNodes->item( 0 ), uno::UNO_QUERY ); //CPPUNIT_ASSERT( xChildId.is() ); @@ -107,8 +111,8 @@ protected: "111111-222222-333333-444444", "InstallSetID" ) ) { - CPPUNIT_ASSERT( aInfo.Sources.size() == 1 ); - CPPUNIT_ASSERT( aInfo.Sources[0].URL == "http://www.libreoffice.org/download/" ); + CPPUNIT_ASSERT_EQUAL( std::size_t(1), aInfo.Sources.size() ); + CPPUNIT_ASSERT_EQUAL( OUString("http://www.libreoffice.org/download/"), aInfo.Sources[0].URL ); } else CPPUNIT_FAIL( "Calling checkForUpdates() failed." ); |