Merge lp:~mandel/unity-scope-click/rebuild-with-udm into lp:unity-scope-click

Proposed by Manuel de la Peña
Status: Merged
Merged at revision: 215
Proposed branch: lp:~mandel/unity-scope-click/rebuild-with-udm
Merge into: lp:unity-scope-click
Diff against target: 36 lines (+12/-0)
1 file modified
scope/tests/mock_ubuntu_download_manager.h (+12/-0)
To merge this branch: bzr merge lp:~mandel/unity-scope-click/rebuild-with-udm
Reviewer Review Type Date Requested Status
Alejandro J. Cura (community) Approve
PS Jenkins bot continuous-integration Needs Fixing
Review via email: mp+214935@code.launchpad.net

Commit message

Update the mock of the tests to ensure that the project compiles with the new udm client lib.

Description of the change

Update the mock of the tests to ensure that the project compiles with the new udm client lib.

To post a comment you must log in.
Revision history for this message
Alejandro J. Cura (alecu) wrote :

+1

review: Approve (trivial)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Approve (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
PS Jenkins bot (ps-jenkins) wrote :
review: Needs Fixing (continuous-integration)
Revision history for this message
Alejandro J. Cura (alecu) wrote :

the changes are no longer trivial, so I want to re-review after jenkins completes a successful run

review: Needs Fixing (re)
Revision history for this message
Sergio Schvezov (sergiusens) wrote :

> the changes are no longer trivial, so I want to re-review after jenkins
> completes a successful run

Jenkins will never complete a successful run until the new u-d-m lands into the archives. And this MR is tied to it

Revision history for this message
Manuel de la Peña (mandel) wrote :

> the changes are no longer trivial, so I want to re-review after jenkins
> completes a successful run

Jenkins will never complete a successful run for obvious reasons, the new udm is not present in the archieve because it is blocked in silo 11. In the silo 11 both projects are compiled and packaged (which includes tests are ran) and it is the only correct way to ensure that the two projects work correctly.

Revision history for this message
Alejandro J. Cura (alecu) wrote :

> > the changes are no longer trivial, so I want to re-review after jenkins
> > completes a successful run
>
> Jenkins will never complete a successful run for obvious reasons, the new udm
> is not present in the archieve because it is blocked in silo 11. In the silo
> 11 both projects are compiled and packaged (which includes tests are ran) and
> it is the only correct way to ensure that the two projects work correctly.

It was not so obvious to me! I see the problem now, so I'm approving.

Revision history for this message
Alejandro J. Cura (alecu) wrote :

+1

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'scope/tests/mock_ubuntu_download_manager.h'
2--- scope/tests/mock_ubuntu_download_manager.h 2014-02-12 12:00:11 +0000
3+++ scope/tests/mock_ubuntu_download_manager.h 2014-04-11 15:45:13 +0000
4@@ -58,6 +58,7 @@
5
6 MOCK_CONST_METHOD0(id, QString());
7
8+ MOCK_METHOD1(setDestinationDir, void(const QString& path));
9 MOCK_METHOD0(metadata, QVariantMap());
10 MOCK_METHOD0(progress, qulonglong());
11 MOCK_METHOD0(totalSize, qulonglong());
12@@ -80,6 +81,7 @@
13
14 MockSystemDownloadManager() : Ubuntu::DownloadManager::Manager() {};
15
16+ MOCK_METHOD1(getDownloadForId, Download*(const QString&));
17 MOCK_METHOD1(createDownload,
18 void(DownloadStruct downStruct));
19 MOCK_METHOD3(createDownload,
20@@ -89,6 +91,16 @@
21 MOCK_METHOD7(createDownload,
22 void(StructList downs, const QString &algorithm, bool allowed3G, const QVariantMap &metadata, StringMap headers, GroupCb cb, GroupCb errCb));
23
24+ MOCK_METHOD0(getAllDownloads, void());
25+ MOCK_METHOD2(getAllDownloads, void(DownloadsListCb cb,
26+ DownloadsListCb errCb));
27+ MOCK_METHOD2(getAllDownloadsWithMetadata, void(const QString &name,
28+ const QString &value));
29+
30+ MOCK_METHOD4(getAllDownloadsWithMetadata, void(const QString &name,
31+ const QString &value, MetadataDownloadsListCb cb,
32+ MetadataDownloadsListCb errCb));
33+
34 MOCK_CONST_METHOD0(isError, bool());
35 MOCK_CONST_METHOD0(lastError, Error*());
36 MOCK_METHOD1(allowMobileDataDownload, void(bool));

Subscribers

People subscribed via source and target branches