Kaydet (Commit) cb937da5 authored tarafından Jan Holesovsky's avatar Jan Holesovsky

online update: Now check even the checkForUpdates().

üst 358ce1e9
...@@ -128,14 +128,14 @@ protected: ...@@ -128,14 +128,14 @@ protected:
rtl::Reference< UpdateCheck > aController( UpdateCheck::get() ); rtl::Reference< UpdateCheck > aController( UpdateCheck::get() );
if ( checkForUpdates( aInfo, m_xContext, aController->getInteractionHandler(), m_xProvider, if ( checkForUpdates( aInfo, m_xContext, aController->getInteractionHandler(), m_xProvider,
rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "OS" ) ), rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Linux" ) ),
rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "Arch" ) ), rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "x86" ) ),
m_aRepositoryList, m_aRepositoryList,
rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "BuildID" ) ), rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "100" ) ),
rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "InstallSetID" ) ) ) ) rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "InstallSetID" ) ) ) )
{ {
//aController->setUpdateInfo( aInfo ); CPPUNIT_ASSERT( aInfo.Sources.size() == 1 );
// TODO check the result CPPUNIT_ASSERT( aInfo.Sources[0].URL == rtl::OUString( RTL_CONSTASCII_USTRINGPARAM( "http://www.libreoffice.org/download/" ) ) );
} }
else else
CPPUNIT_FAIL( "Calling checkForUpdates() failed." ); CPPUNIT_FAIL( "Calling checkForUpdates() failed." );
......
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