Merge lp:~mterry/unity8/demo-users into lp:unity8
- demo-users
- Merge into trunk
Status: | Merged |
---|---|
Approved by: | Albert Astals Cid |
Approved revision: | 665 |
Merged at revision: | 688 |
Proposed branch: | lp:~mterry/unity8/demo-users |
Merge into: | lp:unity8 |
Diff against target: |
499 lines (+13/-426) 7 files modified
tests/mocks/LightDM/demo/GreeterPrivate.cpp (+2/-0) tests/mocks/LightDM/demo/InfographicModelPrivate.cpp (+0/-91) tests/mocks/LightDM/demo/UsersModelPrivate.cpp (+11/-3) tests/mocks/LightDM/full/InfographicModelPrivate.cpp (+0/-182) tests/mocks/LightDM/single-passphrase/InfographicModelPrivate.cpp (+0/-61) tests/mocks/LightDM/single-pin/InfographicModelPrivate.cpp (+0/-61) tests/mocks/LightDM/single/InfographicModelPrivate.cpp (+0/-28) |
To merge this branch: | bzr merge lp:~mterry/unity8/demo-users |
Related bugs: | |
Related blueprints: |
list of todo's for unity8 MWC demo prep
(Undefined)
|
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
PS Jenkins bot (community) | continuous-integration | Needs Fixing | |
Albert Astals Cid (community) | Approve | ||
Review via email: mp+203823@code.launchpad.net |
Commit message
Expand greeter demo support to include listing multiple users and specifying individual passwords and names.
Description of the change
Expand greeter demo support to include listing multiple users and specifying individual passwords and names.
I did not bother with providing backwards support for previous password-specifying support. Not that it would be hard, but I don't want to spend time making our dumb demo support smart. And no actual users are using that support anyway.
This branch lets us do things like:
"""
$ cat ~/.unity8-
[General]
users=andy,
[cimi]
name=Andrea Cimitan
password=pin
passwordValue=1234
[tony]
password=keyboard
passwordValue=
"""
I also dropped some leftover infographic mock files that aren't used anywhere.
** Checklist **
* Are there any related MPs required for this MP to build/function as expected? Please list.
- Nope
* 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
PS Jenkins bot (ps-jenkins) wrote : | # |
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:664
http://
Executed test runs:
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:664
http://
Executed test runs:
None: http://
None: http://
None: http://
None: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
None: http://
None: http://
Click here to trigger a rebuild:
http://
Albert Astals Cid (aacid) wrote : | # |
Small thing
Q_FOREACH(QString user, users)
to
Q_FOREACH(const QString &user, users)
- 665. By Michael Terry
-
Make foreach loop work on const strings
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:665
http://
Executed test runs:
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
Albert Astals Cid (aacid) wrote : | # |
* Did you perform an exploratory manual test run of the code change and any related functionality?
Yes
* Did CI run pass? If not, please explain why.
No, network tests still broken
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:665
http://
Executed test runs:
UNSTABLE: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
PS Jenkins bot (ps-jenkins) wrote : | # |
PASSED: Continuous integration, rev:665
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
PS Jenkins bot (ps-jenkins) wrote : | # |
FAILED: Continuous integration, rev:665
http://
Executed test runs:
SUCCESS: http://
SUCCESS: http://
FAILURE: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
SUCCESS: http://
Click here to trigger a rebuild:
http://
Preview Diff
1 | === modified file 'tests/mocks/LightDM/demo/GreeterPrivate.cpp' |
2 | --- tests/mocks/LightDM/demo/GreeterPrivate.cpp 2013-09-04 17:26:48 +0000 |
3 | +++ tests/mocks/LightDM/demo/GreeterPrivate.cpp 2014-02-04 14:38:10 +0000 |
4 | @@ -36,6 +36,7 @@ |
5 | Q_Q(Greeter); |
6 | |
7 | QSettings settings(QDir::homePath() + "/.unity8-greeter-demo", QSettings::NativeFormat); |
8 | + settings.beginGroup(authenticationUser); |
9 | QVariant password = settings.value("password", "none"); |
10 | |
11 | if (password == "pin") { |
12 | @@ -53,6 +54,7 @@ |
13 | Q_Q(Greeter); |
14 | |
15 | QSettings settings(QDir::homePath() + "/.unity8-greeter-demo", QSettings::NativeFormat); |
16 | + settings.beginGroup(authenticationUser); |
17 | QVariant password = settings.value("password", "none"); |
18 | |
19 | QString passwordValue; |
20 | |
21 | === removed file 'tests/mocks/LightDM/demo/InfographicModelPrivate.cpp' |
22 | --- tests/mocks/LightDM/demo/InfographicModelPrivate.cpp 2013-07-15 15:14:03 +0000 |
23 | +++ tests/mocks/LightDM/demo/InfographicModelPrivate.cpp 1970-01-01 00:00:00 +0000 |
24 | @@ -1,91 +0,0 @@ |
25 | -/* |
26 | - * Copyright (C) 2013 Canonical, Ltd. |
27 | - * |
28 | - * This program is free software; you can redistribute it and/or modify |
29 | - * it under the terms of the GNU General Public License as published by |
30 | - * the Free Software Foundation; version 3. |
31 | - * |
32 | - * This program is distributed in the hope that it will be useful, |
33 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
34 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
35 | - * GNU General Public License for more details. |
36 | - * |
37 | - * You should have received a copy of the GNU General Public License |
38 | - * along with this program. If not, see <http://www.gnu.org/licenses/>. |
39 | - * |
40 | - * Author: Pete Woods <pete.woods@canonical.com> |
41 | - */ |
42 | - |
43 | -#include "../InfographicModelPrivate.h" |
44 | - |
45 | -namespace QLightDM |
46 | -{ |
47 | - |
48 | -void InfographicModelPrivate::generateFakeData() |
49 | -{ |
50 | - std::default_random_engine generator; |
51 | - std::normal_distribution<qreal> distribution(0.5, 0.2); |
52 | - auto rand = std::bind(distribution, generator); |
53 | - |
54 | - QColor orange(QColor::fromRgbF(0.9, 0.3, 0.1, 1.0)); |
55 | - QColor yellow(QColor::fromRgbF(1.0, 0.6, 0.0, 1.0)); |
56 | - QColor red(QColor::fromRgbF(0.8, 0.0, 0.0, 1.0)); |
57 | - QColor darkPurple(QColor::fromRgbF(0.5, 0.2, 0.3, 1.0)); |
58 | - QColor lightPurple(QColor::fromRgbF(0.8, 0.1, 0.8, 1.0)); |
59 | - QColor pink(QColor::fromRgbF(0.75, 0.13, 0.75)); |
60 | - |
61 | - InfographicColorTheme orangeTheme(yellow, orange, red); |
62 | - InfographicColorTheme yellowTheme(orange, yellow, orange); |
63 | - InfographicColorTheme redTheme(red, red, red); |
64 | - InfographicColorTheme darkPurpleTheme(lightPurple, darkPurple, pink); |
65 | - InfographicColorTheme lightPurpleTheme(lightPurple, lightPurple, |
66 | - lightPurple); |
67 | - InfographicColorTheme pinkTheme(lightPurple, pink, darkPurple); |
68 | - |
69 | - { |
70 | - QVariantList firstMonth; |
71 | - while (firstMonth.size() < 17) |
72 | - firstMonth.push_back(QVariant(rand())); |
73 | - while (firstMonth.size() < 31) |
74 | - firstMonth.push_back(QVariant()); |
75 | - QVariantList secondMonth; |
76 | - while (secondMonth.size() < 31) |
77 | - secondMonth.push_back(QVariant(rand())); |
78 | - QSharedPointer<InfographicData> data( |
79 | - new InfographicData("<b>52km</b> travelled", yellowTheme, firstMonth, |
80 | - orangeTheme, secondMonth, this)); |
81 | - m_fakeData.insert("phablet", data); |
82 | - } |
83 | - |
84 | - { |
85 | - QVariantList firstMonth; |
86 | - while (firstMonth.size() < 17) |
87 | - firstMonth.push_back(QVariant(rand())); |
88 | - while (firstMonth.size() < 31) |
89 | - firstMonth.push_back(QVariant()); |
90 | - QVariantList secondMonth; |
91 | - while (secondMonth.size() < 31) |
92 | - secondMonth.push_back(QVariant(rand())); |
93 | - QSharedPointer<InfographicData> data( |
94 | - new InfographicData("<b>33</b> messages today", pinkTheme, |
95 | - firstMonth, orangeTheme, secondMonth, this)); |
96 | - m_fakeData.insert("phablet", data); |
97 | - } |
98 | - |
99 | - { |
100 | - QVariantList firstMonth; |
101 | - while (firstMonth.size() < 17) |
102 | - firstMonth.push_back(QVariant(rand())); |
103 | - while (firstMonth.size() < 31) |
104 | - firstMonth.push_back(QVariant()); |
105 | - QVariantList secondMonth; |
106 | - while (secondMonth.size() < 31) |
107 | - secondMonth.push_back(QVariant(rand())); |
108 | - QSharedPointer<InfographicData> data( |
109 | - new InfographicData("<b>69</b> minutes talk time", darkPurpleTheme, |
110 | - firstMonth, redTheme, secondMonth, this)); |
111 | - m_fakeData.insert("phablet", data); |
112 | - } |
113 | -} |
114 | - |
115 | -} |
116 | |
117 | === modified file 'tests/mocks/LightDM/demo/UsersModelPrivate.cpp' |
118 | --- tests/mocks/LightDM/demo/UsersModelPrivate.cpp 2013-07-15 15:14:03 +0000 |
119 | +++ tests/mocks/LightDM/demo/UsersModelPrivate.cpp 2014-02-04 14:38:10 +0000 |
120 | @@ -18,16 +18,24 @@ |
121 | |
122 | #include "../UsersModelPrivate.h" |
123 | |
124 | +#include <QDir> |
125 | +#include <QSettings> |
126 | +#include <QStringList> |
127 | + |
128 | namespace QLightDM |
129 | { |
130 | |
131 | UsersModelPrivate::UsersModelPrivate(UsersModel* parent) |
132 | : q_ptr(parent) |
133 | { |
134 | - entries = |
135 | + QSettings settings(QDir::homePath() + "/.unity8-greeter-demo", QSettings::NativeFormat); |
136 | + QStringList users = settings.value("users", QStringList() << "phablet").toStringList(); |
137 | + |
138 | + Q_FOREACH(const QString &user, users) |
139 | { |
140 | - { "phablet", "Guest", 0, 0, false, false, 0, 0 }, |
141 | - }; |
142 | + QString name = settings.value(user + "/name", user[0].toUpper() + user.mid(1)).toString(); |
143 | + entries.append({user, name, 0, 0, false, false, 0, 0}); |
144 | + } |
145 | } |
146 | |
147 | } |
148 | |
149 | === removed file 'tests/mocks/LightDM/full/InfographicModelPrivate.cpp' |
150 | --- tests/mocks/LightDM/full/InfographicModelPrivate.cpp 2013-06-05 22:03:08 +0000 |
151 | +++ tests/mocks/LightDM/full/InfographicModelPrivate.cpp 1970-01-01 00:00:00 +0000 |
152 | @@ -1,182 +0,0 @@ |
153 | -/* |
154 | - * Copyright (C) 2013 Canonical, Ltd. |
155 | - * |
156 | - * This program is free software; you can redistribute it and/or modify |
157 | - * it under the terms of the GNU General Public License as published by |
158 | - * the Free Software Foundation; version 3. |
159 | - * |
160 | - * This program is distributed in the hope that it will be useful, |
161 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
162 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
163 | - * GNU General Public License for more details. |
164 | - * |
165 | - * You should have received a copy of the GNU General Public License |
166 | - * along with this program. If not, see <http://www.gnu.org/licenses/>. |
167 | - * |
168 | - * Author: Pete Woods <pete.woods@canonical.com> |
169 | - */ |
170 | - |
171 | -#include "../InfographicModelPrivate.h" |
172 | - |
173 | -namespace QLightDM |
174 | -{ |
175 | - |
176 | -void InfographicModelPrivate::generateFakeData() |
177 | -{ |
178 | - std::default_random_engine generator; |
179 | - std::normal_distribution<qreal> distribution(0.5, 0.2); |
180 | - auto rand = std::bind(distribution, generator); |
181 | - |
182 | - QColor orange = QColor::fromRgbF(0.9, 0.3, 0.1, 1.0); |
183 | - QColor yellow = QColor::fromRgbF(1.0, 0.6, 0.0, 1.0); |
184 | - QColor red = QColor::fromRgbF(0.8, 0.0, 0.0, 1.0); |
185 | - QColor darkPurple = QColor::fromRgbF(0.5, 0.2, 0.3, 1.0); |
186 | - QColor lightPurple = QColor::fromRgbF(0.8, 0.1, 0.8, 1.0); |
187 | - QColor pink(QColor::fromRgbF(0.75, 0.13, 0.75)); |
188 | - |
189 | - InfographicColorTheme orangeTheme(orange, orange, orange); |
190 | - InfographicColorTheme yellowTheme(yellow, yellow, yellow); |
191 | - InfographicColorTheme redTheme(red, red, red); |
192 | - InfographicColorTheme darkPurpleTheme(darkPurple, darkPurple, darkPurple); |
193 | - InfographicColorTheme lightPurpleTheme(lightPurple, lightPurple, |
194 | - lightPurple); |
195 | - InfographicColorTheme pinkTheme(pink, pink, pink); |
196 | - |
197 | - { |
198 | - QVariantList firstMonth; |
199 | - while (firstMonth.size() < 17) |
200 | - firstMonth.push_back(QVariant(rand())); |
201 | - while (firstMonth.size() < 31) |
202 | - firstMonth.push_back(QVariant()); |
203 | - QVariantList secondMonth; |
204 | - while (secondMonth.size() < 31) |
205 | - secondMonth.push_back(QVariant(rand())); |
206 | - QSharedPointer<InfographicData> data( |
207 | - new InfographicData("<b>5km</b> travelled", yellowTheme, |
208 | - firstMonth, orangeTheme, secondMonth, this)); |
209 | - m_fakeData.insert("has-password", data); |
210 | - } |
211 | - |
212 | - { |
213 | - QVariantList firstMonth; |
214 | - while (firstMonth.size() < 17) |
215 | - firstMonth.push_back(QVariant(rand())); |
216 | - while (firstMonth.size() < 31) |
217 | - firstMonth.push_back(QVariant()); |
218 | - QVariantList secondMonth; |
219 | - while (secondMonth.size() < 31) |
220 | - secondMonth.push_back(QVariant(rand())); |
221 | - QSharedPointer<InfographicData> data( |
222 | - new InfographicData("<b>33</b> messages today", pinkTheme, |
223 | - firstMonth, orangeTheme, secondMonth, this)); |
224 | - m_fakeData.insert("has-password", data); |
225 | - } |
226 | - |
227 | - { |
228 | - QVariantList firstMonth; |
229 | - while (firstMonth.size() < 17) |
230 | - firstMonth.push_back(QVariant(rand())); |
231 | - while (firstMonth.size() < 31) |
232 | - firstMonth.push_back(QVariant()); |
233 | - QVariantList secondMonth; |
234 | - while (secondMonth.size() < 31) |
235 | - secondMonth.push_back(QVariant(rand())); |
236 | - QSharedPointer<InfographicData> data( |
237 | - new InfographicData("<b>19</b> minutes talk time", orangeTheme, |
238 | - firstMonth, redTheme, secondMonth, this)); |
239 | - m_fakeData.insert("has-password", data); |
240 | - } |
241 | - |
242 | - { |
243 | - QVariantList firstMonth; |
244 | - while (firstMonth.size() < 17) |
245 | - firstMonth.push_back(QVariant(rand())); |
246 | - while (firstMonth.size() < 31) |
247 | - firstMonth.push_back(QVariant()); |
248 | - QVariantList secondMonth; |
249 | - while (secondMonth.size() < 31) |
250 | - secondMonth.push_back(QVariant(rand())); |
251 | - QSharedPointer<InfographicData> data( |
252 | - new InfographicData("<b>5km</b> travelled", redTheme, |
253 | - firstMonth, darkPurpleTheme, secondMonth, this)); |
254 | - m_fakeData.insert("no-password", data); |
255 | - } |
256 | - |
257 | - { |
258 | - QVariantList firstMonth; |
259 | - while (firstMonth.size() < 17) |
260 | - firstMonth.push_back(QVariant(rand())); |
261 | - while (firstMonth.size() < 31) |
262 | - firstMonth.push_back(QVariant()); |
263 | - QVariantList secondMonth; |
264 | - while (secondMonth.size() < 31) |
265 | - secondMonth.push_back(QVariant(rand())); |
266 | - QSharedPointer<InfographicData> data( |
267 | - new InfographicData("<b>33</b> messages today", |
268 | - lightPurpleTheme, firstMonth, darkPurpleTheme, |
269 | - secondMonth, this)); |
270 | - m_fakeData.insert("no-password", data); |
271 | - } |
272 | - |
273 | - { |
274 | - QVariantList firstMonth; |
275 | - while (firstMonth.size() < 17) |
276 | - firstMonth.push_back(QVariant(rand())); |
277 | - while (firstMonth.size() < 31) |
278 | - firstMonth.push_back(QVariant()); |
279 | - QVariantList secondMonth; |
280 | - while (secondMonth.size() < 31) |
281 | - secondMonth.push_back(QVariant()); |
282 | - QSharedPointer<InfographicData> data( |
283 | - new InfographicData("<b>19</b> minutes talk time", orangeTheme, |
284 | - firstMonth, redTheme, secondMonth, this)); |
285 | - m_fakeData.insert("no-password", data); |
286 | - } |
287 | - |
288 | - { |
289 | - QVariantList firstMonth; |
290 | - while (firstMonth.size() < 29) |
291 | - firstMonth.push_back(QVariant(rand())); |
292 | - while (firstMonth.size() < 31) |
293 | - firstMonth.push_back(QVariant()); |
294 | - QVariantList secondMonth; |
295 | - while (secondMonth.size() < 31) |
296 | - secondMonth.push_back(QVariant(rand())); |
297 | - QSharedPointer<InfographicData> data( |
298 | - new InfographicData("<b>5km</b> travelled", redTheme, |
299 | - firstMonth, darkPurpleTheme, secondMonth, this)); |
300 | - m_fakeData.insert("empty-name", data); |
301 | - } |
302 | - |
303 | - { |
304 | - QVariantList firstMonth; |
305 | - while (firstMonth.size() < 29) |
306 | - firstMonth.push_back(QVariant(rand())); |
307 | - while (firstMonth.size() < 31) |
308 | - firstMonth.push_back(QVariant()); |
309 | - QVariantList secondMonth; |
310 | - while (secondMonth.size() < 31) |
311 | - secondMonth.push_back(QVariant(rand())); |
312 | - QSharedPointer<InfographicData> data( |
313 | - new InfographicData("<b>33</b> messages today", yellowTheme, |
314 | - firstMonth, orangeTheme, secondMonth, this)); |
315 | - m_fakeData.insert("empty-name", data); |
316 | - } |
317 | - |
318 | - { |
319 | - QVariantList firstMonth; |
320 | - while (firstMonth.size() < 29) |
321 | - firstMonth.push_back(QVariant(rand())); |
322 | - while (firstMonth.size() < 31) |
323 | - firstMonth.push_back(QVariant()); |
324 | - QVariantList secondMonth; |
325 | - while (secondMonth.size() < 31) |
326 | - secondMonth.push_back(QVariant()); |
327 | - QSharedPointer<InfographicData> data( |
328 | - new InfographicData("<b>19</b> minutes talk time", pinkTheme, |
329 | - firstMonth, orangeTheme, secondMonth, this)); |
330 | - m_fakeData.insert("empty-name", data); |
331 | - } |
332 | -} |
333 | - |
334 | -} |
335 | |
336 | === removed file 'tests/mocks/LightDM/single-passphrase/InfographicModelPrivate.cpp' |
337 | --- tests/mocks/LightDM/single-passphrase/InfographicModelPrivate.cpp 2013-06-06 12:18:34 +0000 |
338 | +++ tests/mocks/LightDM/single-passphrase/InfographicModelPrivate.cpp 1970-01-01 00:00:00 +0000 |
339 | @@ -1,61 +0,0 @@ |
340 | -/* |
341 | - * Copyright (C) 2013 Canonical, Ltd. |
342 | - * |
343 | - * This program is free software; you can redistribute it and/or modify |
344 | - * it under the terms of the GNU General Public License as published by |
345 | - * the Free Software Foundation; version 3. |
346 | - * |
347 | - * This program is distributed in the hope that it will be useful, |
348 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
349 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
350 | - * GNU General Public License for more details. |
351 | - * |
352 | - * You should have received a copy of the GNU General Public License |
353 | - * along with this program. If not, see <http://www.gnu.org/licenses/>. |
354 | - * |
355 | - * Author: Pete Woods <pete.woods@canonical.com> |
356 | - */ |
357 | - |
358 | -#include "../InfographicModelPrivate.h" |
359 | - |
360 | -namespace QLightDM |
361 | -{ |
362 | - |
363 | -void InfographicModelPrivate::generateFakeData() |
364 | -{ |
365 | - std::default_random_engine generator; |
366 | - std::normal_distribution<qreal> distribution(0.5, 0.2); |
367 | - auto rand = std::bind(distribution, generator); |
368 | - |
369 | - QColor orange = QColor::fromRgbF(0.9, 0.3, 0.1, 1.0); |
370 | - QColor yellow = QColor::fromRgbF(1.0, 0.6, 0.0, 1.0); |
371 | - QColor red = QColor::fromRgbF(0.8, 0.0, 0.0, 1.0); |
372 | - QColor darkPurple = QColor::fromRgbF(0.5, 0.2, 0.3, 1.0); |
373 | - QColor lightPurple = QColor::fromRgbF(0.8, 0.1, 0.8, 1.0); |
374 | - QColor pink(QColor::fromRgbF(0.75, 0.13, 0.75)); |
375 | - |
376 | - InfographicColorTheme orangeTheme(orange, orange, orange); |
377 | - InfographicColorTheme yellowTheme(yellow, yellow, yellow); |
378 | - InfographicColorTheme redTheme(red, red, red); |
379 | - InfographicColorTheme darkPurpleTheme(darkPurple, darkPurple, darkPurple); |
380 | - InfographicColorTheme lightPurpleTheme(lightPurple, lightPurple, |
381 | - lightPurple); |
382 | - InfographicColorTheme pinkTheme(pink, pink, pink); |
383 | - |
384 | - { |
385 | - QVariantList firstMonth; |
386 | - while (firstMonth.size() < 17) |
387 | - firstMonth.push_back(QVariant(rand())); |
388 | - while (firstMonth.size() < 31) |
389 | - firstMonth.push_back(QVariant()); |
390 | - QVariantList secondMonth; |
391 | - while (secondMonth.size() < 31) |
392 | - secondMonth.push_back(QVariant(rand())); |
393 | - QSharedPointer<InfographicData> data( |
394 | - new InfographicData("<b>5km</b> travelled", yellowTheme, |
395 | - firstMonth, orangeTheme, secondMonth, this)); |
396 | - m_fakeData.insert("has-pin", data); |
397 | - } |
398 | -} |
399 | - |
400 | -} |
401 | |
402 | === removed file 'tests/mocks/LightDM/single-pin/InfographicModelPrivate.cpp' |
403 | --- tests/mocks/LightDM/single-pin/InfographicModelPrivate.cpp 2013-06-06 12:18:34 +0000 |
404 | +++ tests/mocks/LightDM/single-pin/InfographicModelPrivate.cpp 1970-01-01 00:00:00 +0000 |
405 | @@ -1,61 +0,0 @@ |
406 | -/* |
407 | - * Copyright (C) 2013 Canonical, Ltd. |
408 | - * |
409 | - * This program is free software; you can redistribute it and/or modify |
410 | - * it under the terms of the GNU General Public License as published by |
411 | - * the Free Software Foundation; version 3. |
412 | - * |
413 | - * This program is distributed in the hope that it will be useful, |
414 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
415 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
416 | - * GNU General Public License for more details. |
417 | - * |
418 | - * You should have received a copy of the GNU General Public License |
419 | - * along with this program. If not, see <http://www.gnu.org/licenses/>. |
420 | - * |
421 | - * Author: Pete Woods <pete.woods@canonical.com> |
422 | - */ |
423 | - |
424 | -#include "../InfographicModelPrivate.h" |
425 | - |
426 | -namespace QLightDM |
427 | -{ |
428 | - |
429 | -void InfographicModelPrivate::generateFakeData() |
430 | -{ |
431 | - std::default_random_engine generator; |
432 | - std::normal_distribution<qreal> distribution(0.5, 0.2); |
433 | - auto rand = std::bind(distribution, generator); |
434 | - |
435 | - QColor orange = QColor::fromRgbF(0.9, 0.3, 0.1, 1.0); |
436 | - QColor yellow = QColor::fromRgbF(1.0, 0.6, 0.0, 1.0); |
437 | - QColor red = QColor::fromRgbF(0.8, 0.0, 0.0, 1.0); |
438 | - QColor darkPurple = QColor::fromRgbF(0.5, 0.2, 0.3, 1.0); |
439 | - QColor lightPurple = QColor::fromRgbF(0.8, 0.1, 0.8, 1.0); |
440 | - QColor pink(QColor::fromRgbF(0.75, 0.13, 0.75)); |
441 | - |
442 | - InfographicColorTheme orangeTheme(orange, orange, orange); |
443 | - InfographicColorTheme yellowTheme(yellow, yellow, yellow); |
444 | - InfographicColorTheme redTheme(red, red, red); |
445 | - InfographicColorTheme darkPurpleTheme(darkPurple, darkPurple, darkPurple); |
446 | - InfographicColorTheme lightPurpleTheme(lightPurple, lightPurple, |
447 | - lightPurple); |
448 | - InfographicColorTheme pinkTheme(pink, pink, pink); |
449 | - |
450 | - { |
451 | - QVariantList firstMonth; |
452 | - while (firstMonth.size() < 17) |
453 | - firstMonth.push_back(QVariant(rand())); |
454 | - while (firstMonth.size() < 31) |
455 | - firstMonth.push_back(QVariant()); |
456 | - QVariantList secondMonth; |
457 | - while (secondMonth.size() < 31) |
458 | - secondMonth.push_back(QVariant(rand())); |
459 | - QSharedPointer<InfographicData> data( |
460 | - new InfographicData("<b>5km</b> travelled", yellowTheme, |
461 | - firstMonth, orangeTheme, secondMonth, this)); |
462 | - m_fakeData.insert("has-pin", data); |
463 | - } |
464 | -} |
465 | - |
466 | -} |
467 | |
468 | === removed file 'tests/mocks/LightDM/single/InfographicModelPrivate.cpp' |
469 | --- tests/mocks/LightDM/single/InfographicModelPrivate.cpp 2013-06-05 22:03:08 +0000 |
470 | +++ tests/mocks/LightDM/single/InfographicModelPrivate.cpp 1970-01-01 00:00:00 +0000 |
471 | @@ -1,28 +0,0 @@ |
472 | -/* |
473 | - * Copyright (C) 2013 Canonical, Ltd. |
474 | - * |
475 | - * This program is free software; you can redistribute it and/or modify |
476 | - * it under the terms of the GNU General Public License as published by |
477 | - * the Free Software Foundation; version 3. |
478 | - * |
479 | - * This program is distributed in the hope that it will be useful, |
480 | - * but WITHOUT ANY WARRANTY; without even the implied warranty of |
481 | - * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the |
482 | - * GNU General Public License for more details. |
483 | - * |
484 | - * You should have received a copy of the GNU General Public License |
485 | - * along with this program. If not, see <http://www.gnu.org/licenses/>. |
486 | - * |
487 | - * Author: Pete Woods <pete.woods@canonical.com> |
488 | - */ |
489 | - |
490 | -#include "../InfographicModelPrivate.h" |
491 | - |
492 | -namespace QLightDM |
493 | -{ |
494 | - |
495 | -void InfographicModelPrivate::generateFakeData() |
496 | -{ |
497 | -} |
498 | - |
499 | -} |
FAILED: Continuous integration, rev:664 jenkins. qa.ubuntu. com/job/ unity8- ci/2161/ jenkins. qa.ubuntu. com/job/ generic- mediumtests- trusty/ 2719 jenkins. qa.ubuntu. com/job/ generic- mediumtests- trusty- touch/2485/ console jenkins. qa.ubuntu. com/job/ unity-phablet- qmluitests- trusty/ 1034 jenkins. qa.ubuntu. com/job/ unity8- trusty- amd64-ci/ 683 jenkins. qa.ubuntu. com/job/ unity8- trusty- armhf-ci/ 685 jenkins. qa.ubuntu. com/job/ unity8- trusty- armhf-ci/ 685/artifact/ work/output/ *zip*/output. zip jenkins. qa.ubuntu. com/job/ unity8- trusty- i386-ci/ 683 jenkins. qa.ubuntu. com/job/ autopilot- testrunner- otto-trusty/ 2380 jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- trusty- amd64/2721 jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- trusty- amd64/2721/ artifact/ work/output/ *zip*/output. zip jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- trusty- armhf/2486 jenkins. qa.ubuntu. com/job/ generic- mediumtests- builder- trusty- armhf/2486/ artifact/ work/output/ *zip*/output. zip jenkins. qa.ubuntu. com/job/ generic- mediumtests- runner- mako/4922/ console s-jenkins. ubuntu- ci:8080/ job/touch- flash-device/ 3451
http://
Executed test runs:
UNSTABLE: http://
FAILURE: http://
SUCCESS: http://
SUCCESS: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
UNSTABLE: http://
SUCCESS: http://
deb: http://
SUCCESS: http://
deb: http://
FAILURE: http://
SUCCESS: http://
Click here to trigger a rebuild: s-jenkins. ubuntu- ci:8080/ job/unity8- ci/2161/ rebuild
http://