Merge lp:~michael-sheldon/unity-scope-click/update-udm-tests into lp:unity-scope-click

Proposed by Michael Sheldon
Status: Merged
Approved by: dobey
Approved revision: 398
Merged at revision: 396
Proposed branch: lp:~michael-sheldon/unity-scope-click/update-udm-tests
Merge into: lp:unity-scope-click
Diff against target: 27 lines (+8/-2)
1 file modified
libclickscope/tests/mock_ubuntu_download_manager.h (+8/-2)
To merge this branch: bzr merge lp:~michael-sheldon/unity-scope-click/update-udm-tests
Reviewer Review Type Date Requested Status
dobey (community) Approve
PS Jenkins bot continuous-integration Needs Fixing
Review via email: mp+280297@code.launchpad.net

Commit message

Update UDM test mocks to match new API

Description of the change

Update UDM test mocks to match new API

To post a comment you must log in.
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
397. By Michael Sheldon

Fix UDM mock definitions

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
398. By Michael Sheldon

Fix UDM mock definitions

Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
dobey (dobey) wrote :

It is very unfortunate that we must keep breaking C++ APIs.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'libclickscope/tests/mock_ubuntu_download_manager.h'
2--- libclickscope/tests/mock_ubuntu_download_manager.h 2015-09-21 14:04:46 +0000
3+++ libclickscope/tests/mock_ubuntu_download_manager.h 2015-12-11 15:38:21 +0000
4@@ -73,6 +73,10 @@
5 MOCK_METHOD0(headers, QMap<QString, QString>());
6 MOCK_METHOD1(setHeaders, void(QMap<QString, QString>));
7 MOCK_CONST_METHOD0(destinationApp, QString());
8+
9+ MOCK_METHOD0(collected, void());
10+ MOCK_METHOD0(filePath, QString());
11+ MOCK_METHOD0(state, Download::State());
12 };
13
14 class MockError : public Ubuntu::DownloadManager::Error
15@@ -99,8 +103,10 @@
16 MOCK_METHOD7(createDownload,
17 void(StructList downs, const QString &algorithm, bool allowed3G, const QVariantMap &metadata, StringMap headers, GroupCb cb, GroupCb errCb));
18
19- MOCK_METHOD0(getAllDownloads, void());
20- MOCK_METHOD2(getAllDownloads, void(DownloadsListCb cb,
21+ MOCK_METHOD2(getAllDownloads, void(const QString &appId, bool uncompleted));
22+ MOCK_METHOD4(getAllDownloads, void(const QString &appId,
23+ bool uncompleted,
24+ DownloadsListCb cb,
25 DownloadsListCb errCb));
26 MOCK_METHOD2(getAllDownloadsWithMetadata, void(const QString &name,
27 const QString &value));

Subscribers

People subscribed via source and target branches