Merge lp:~aacid/unity8/fixLightdmMockWarnings into lp:unity8

Proposed by Albert Astals Cid
Status: Merged
Approved by: Daniel d'Andrada
Approved revision: 2705
Merged at revision: 2736
Proposed branch: lp:~aacid/unity8/fixLightdmMockWarnings
Merge into: lp:unity8
Diff against target: 97 lines (+24/-24)
2 files modified
tests/mocks/LightDM/IntegratedLightDM/liblightdm/SessionsModelPrivate.cpp (+1/-1)
tests/mocks/LightDM/IntegratedLightDM/liblightdm/UsersModelPrivate.cpp (+23/-23)
To merge this branch: bzr merge lp:~aacid/unity8/fixLightdmMockWarnings
Reviewer Review Type Date Requested Status
Unity8 CI Bot continuous-integration Approve
Daniel d'Andrada (community) Approve
Review via email: mp+311914@code.launchpad.net

Commit message

Fix compile warnings in mocks

Description of the change

 * Are there any related MPs required for this MP to build/function as expected?
No

 * Did you perform an exploratory manual test run of your code change and any related functionality?
Yes

 * If you changed the packaging (debian), did you subscribe the ubuntu-unity team to this MP?
N/A

 * If you changed the UI, has there been a design review?
N/A

To post a comment you must log in.
Revision history for this message
Daniel d'Andrada (dandrader) wrote :

Warnings are gone.

* Did you perform an exploratory manual test run of the code change and any related functionality?
N/A

* Did CI run pass? If not, please explain why.
Not relevant to this MP

review: Approve
Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote :

PASSED: Continuous integration, rev:2705
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/2580/
Executed test runs:
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build/3395
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=vivid+overlay,testname=qmluitests.sh/1953
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=xenial+overlay,testname=qmluitests.sh/1953
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=zesty,testname=qmluitests.sh/1953
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-0-fetch/3423
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=vivid+overlay/3274
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=vivid+overlay/3274/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/3274
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/3274/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/3274
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/3274/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=vivid+overlay/3274
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=vivid+overlay/3274/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/3274
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/3274/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/3274
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/3274/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=vivid+overlay/3274
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=vivid+overlay/3274/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/3274
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/3274/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/3274
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/3274/artifact/output/*zip*/output.zip

Click here to trigger a rebuild:
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/2580/rebuild

review: Approve (continuous-integration)

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'tests/mocks/LightDM/IntegratedLightDM/liblightdm/SessionsModelPrivate.cpp'
2--- tests/mocks/LightDM/IntegratedLightDM/liblightdm/SessionsModelPrivate.cpp 2016-07-13 20:24:24 +0000
3+++ tests/mocks/LightDM/IntegratedLightDM/liblightdm/SessionsModelPrivate.cpp 2016-11-28 10:21:11 +0000
4@@ -22,6 +22,7 @@
5
6 SessionsModelPrivate::SessionsModelPrivate(SessionsModel* parent)
7 : testScenario("singleSession")
8+ , q_ptr(parent)
9 , m_availableSessions(
10 {
11 {"ubuntu", "", "Ubuntu", ""},
12@@ -36,7 +37,6 @@
13 {"xterm", "", "Recovery Console", ""},
14 {"", "", "Unknown?", ""}
15 })
16- , q_ptr(parent)
17 {
18 numSessions = numAvailableSessions();
19 resetEntries();
20
21=== modified file 'tests/mocks/LightDM/IntegratedLightDM/liblightdm/UsersModelPrivate.cpp'
22--- tests/mocks/LightDM/IntegratedLightDM/liblightdm/UsersModelPrivate.cpp 2016-08-30 13:46:17 +0000
23+++ tests/mocks/LightDM/IntegratedLightDM/liblightdm/UsersModelPrivate.cpp 2016-11-28 10:21:11 +0000
24@@ -73,7 +73,7 @@
25 {
26 entries =
27 {
28- { "single", "Single User", 0, 0, false, false, "ubuntu", 0 },
29+ { "single", "Single User", 0, 0, false, false, "ubuntu", 0, 0 },
30 };
31 }
32
33@@ -81,7 +81,7 @@
34 {
35 entries =
36 {
37- { "single", "Single User", 0, 0, false, false, "ubuntu", 0 },
38+ { "single", "Single User", 0, 0, false, false, "ubuntu", 0, 0 },
39 };
40 }
41
42@@ -89,7 +89,7 @@
43 {
44 entries =
45 {
46- { "has-pin", "Has PIN", 0, 0, false, false, "ubuntu", 0 },
47+ { "has-pin", "Has PIN", 0, 0, false, false, "ubuntu", 0, 0 },
48 };
49 }
50
51@@ -97,27 +97,27 @@
52 {
53 entries =
54 {
55- { "has-password", "Has Password", 0, 0, false, false, "ubuntu", 0 },
56- { "has-pin", "Has PIN", 0, 0, false, false, "ubuntu", 0 },
57- { "different-prompt", "Different Prompt", 0, 0, false, false, "ubuntu", 0 },
58- { "no-password", "No Password", 0, 0, false, false, "ubuntu", 0 },
59- { "auth-error", "Auth Error", 0, 0, false, false, "ubuntu", 0 },
60- { "two-factor", "Two Factor", 0, 0, false, false, "ubuntu", 0 },
61- { "info-prompt", "Info Prompt", 0, 0, false, false, "ubuntu", 0 },
62- { "html-info-prompt", "HTML Info Prompt", 0, 0, false, false, "ubuntu", 0 },
63- { "long-info-prompt", "Long Info Prompt", 0, 0, false, false, "ubuntu", 0 },
64- { "wide-info-prompt", "Wide Info Prompt", 0, 0, false, false, "ubuntu", 0 },
65- { "multi-info-prompt", "Multi Info Prompt", 0, 0, false, false, "ubuntu", 0 },
66- { "long-name", "Long name (far far too long to fit, seriously this would never fit on the screen, you will never see this part of the name)", 0, 0, false, false, "ubuntu", 0 },
67- { "color-background", "Color Background", "#E95420", 0, false, false, "ubuntu", 0 },
68+ { "has-password", "Has Password", 0, 0, false, false, "ubuntu", 0, 0 },
69+ { "has-pin", "Has PIN", 0, 0, false, false, "ubuntu", 0, 0 },
70+ { "different-prompt", "Different Prompt", 0, 0, false, false, "ubuntu", 0, 0 },
71+ { "no-password", "No Password", 0, 0, false, false, "ubuntu", 0, 0 },
72+ { "auth-error", "Auth Error", 0, 0, false, false, "ubuntu", 0, 0 },
73+ { "two-factor", "Two Factor", 0, 0, false, false, "ubuntu", 0, 0 },
74+ { "info-prompt", "Info Prompt", 0, 0, false, false, "ubuntu", 0, 0 },
75+ { "html-info-prompt", "HTML Info Prompt", 0, 0, false, false, "ubuntu", 0, 0 },
76+ { "long-info-prompt", "Long Info Prompt", 0, 0, false, false, "ubuntu", 0, 0 },
77+ { "wide-info-prompt", "Wide Info Prompt", 0, 0, false, false, "ubuntu", 0, 0 },
78+ { "multi-info-prompt", "Multi Info Prompt", 0, 0, false, false, "ubuntu", 0, 0 },
79+ { "long-name", "Long name (far far too long to fit, seriously this would never fit on the screen, you will never see this part of the name)", 0, 0, false, false, "ubuntu", 0, 0 },
80+ { "color-background", "Color Background", "#E95420", 0, false, false, "ubuntu", 0, 0 },
81 // white and black are a bit redundant, but useful for manually testing if UI is still readable
82- { "white-background", "White Background", "#ffffff", 0, false, false, "ubuntu", 0 },
83- { "black-background", "Black Background", "#000000", 0, false, false, "ubuntu", 0 },
84- { "no-background", "No Background", "", 0, false, false, "ubuntu", 0 },
85- { "unicode", "가나다라마", 0, 0, false, false, "ubuntu", 0 },
86- { "no-response", "No Response", 0, 0, false, false, "ubuntu", 0 },
87- { "empty-name", "", 0, 0, false, false, "ubuntu", 0 },
88- { "active", "Active Account", 0, 0, true, false, "ubuntu", 0 },
89+ { "white-background", "White Background", "#ffffff", 0, false, false, "ubuntu", 0, 0 },
90+ { "black-background", "Black Background", "#000000", 0, false, false, "ubuntu", 0, 0 },
91+ { "no-background", "No Background", "", 0, false, false, "ubuntu", 0, 0 },
92+ { "unicode", "가나다라마", 0, 0, false, false, "ubuntu", 0, 0 },
93+ { "no-response", "No Response", 0, 0, false, false, "ubuntu", 0, 0 },
94+ { "empty-name", "", 0, 0, false, false, "ubuntu", 0, 0 },
95+ { "active", "Active Account", 0, 0, true, false, "ubuntu", 0, 0 },
96 };
97 }
98

Subscribers

People subscribed via source and target branches