diff options
author | Jan Holesovsky <kendy@suse.cz> | 2011-11-30 00:11:01 +0100 |
---|---|---|
committer | Jan Holesovsky <kendy@suse.cz> | 2011-11-30 00:24:52 +0100 |
commit | cb937da55c3ab3d238b97d6e0e709ea2a04d2c26 (patch) | |
tree | d58b885b946379a1161f49b49606ac3907d5ec7e /extensions/qa | |
parent | 358ce1e9c1d85ae7590ecc2b2ddee9db81cf8b84 (diff) |
online update: Now check even the checkForUpdates().
Diffstat (limited to 'extensions/qa')
-rw-r--r-- | extensions/qa/update/test_update.cxx | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/extensions/qa/update/test_update.cxx b/extensions/qa/update/test_update.cxx index 57ff71cc40a1..84cbc4ff7fbe 100644 --- a/extensions/qa/update/test_update.cxx +++ b/extensions/qa/update/test_update.cxx @@ -128,14 +128,14 @@ protected: rtl::Reference< UpdateCheck > aController( UpdateCheck::get() ); if ( checkForUpdates( aInfo, m_xContext, aController->getInteractionHandler(), m_xProvider, - rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "OS" ) ), - rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Arch" ) ), + rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Linux" ) ), + rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "x86" ) ), m_aRepositoryList, - rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "BuildID" ) ), + rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "100" ) ), rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "InstallSetID" ) ) ) ) { - //aController->setUpdateInfo( aInfo ); - // TODO check the result + CPPUNIT_ASSERT( aInfo.Sources.size() == 1 ); + CPPUNIT_ASSERT( aInfo.Sources[0].URL == rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "http://www.libreoffice.org/download/" ) ) ); } else CPPUNIT_FAIL( "Calling checkForUpdates() failed." ); |