client lib Download class should be more mockable

Bug #1278789 reported by Mike McCracken
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
ubuntu-download-manager
Fix Released
Undecided
Manuel de la Peña
ubuntu-download-manager (Ubuntu)
Fix Released
Undecided
Unassigned

Bug Description

because Ubuntu::DownloadManager::Download doesn't declare error,isError,id,start as virtual, it is impossible to mock them straightforwardly using google mock.
Workarounds in client apps are not great, involving verbose wrappers or other stuff.

Ideally those methods could be changed, enabling easy mocking.

Related branches

Revision history for this message
Launchpad Janitor (janitor) wrote :

This bug was fixed in the package ubuntu-download-manager - 0.3+14.04.20140220-0ubuntu1

---------------
ubuntu-download-manager (0.3+14.04.20140220-0ubuntu1) trusty; urgency=low

  [ Manuel de la Peña ]
  * Provide pure abstract classes to simplify testing. (LP: #1278789)

  [ Manuel de la Pena ]
  * If proxy or server authentication is needed the download interface
    raises an authentication error signal. (LP: #1278982)
  * Add auth errors to the client lib. (LP: #1279854)
  * Fwd the single file auth errors to as group download errors. (LP:
    #1279856)
  * Fix login and allow to pass the path via the command line. (LP:
    #1278779)
  * Improve logs. (LP: #1279425)
  * Provide pure abstract classes to simplify testing. (LP: #1278789)
 -- Ubuntu daily release <email address hidden> Thu, 20 Feb 2014 13:12:24 +0000

Changed in ubuntu-download-manager (Ubuntu):
status: New → Fix Released
Changed in ubuntu-download-manager:
status: New → Fix Released
To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.