Merge lp:~lukas-kde/unity8/platform-mock into lp:unity8

Proposed by Lukáš Tinkl
Status: Merged
Approved by: Michał Sawicz
Approved revision: 2750
Merged at revision: 2764
Proposed branch: lp:~lukas-kde/unity8/platform-mock
Merge into: lp:unity8
Diff against target: 55 lines (+29/-0)
4 files modified
tests/mocks/Unity/CMakeLists.txt (+1/-0)
tests/mocks/Unity/Platform/CMakeLists.txt (+1/-0)
tests/mocks/Unity/Platform/MockPlatform.qml (+25/-0)
tests/mocks/Unity/Platform/qmldir (+2/-0)
To merge this branch: bzr merge lp:~lukas-kde/unity8/platform-mock
Reviewer Review Type Date Requested Status
Unity8 CI Bot continuous-integration Approve
Michał Sawicz Approve
Review via email: mp+314423@code.launchpad.net

Commit message

Add Unity.Platform mock for our tests

Description of the change

Add Unity.Platform mock for our tests

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

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
Michał Sawicz (saviq) :
review: Approve
Revision history for this message
Unity8 CI Bot (unity8-ci-bot) wrote :

PASSED: Continuous integration, rev:2750
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/2869/
Executed test runs:
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build/3747
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=xenial+overlay,testname=qmluitests.sh/2161
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/test-0-autopkgtest/label=amd64,release=zesty,testname=qmluitests.sh/2161
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-0-fetch/3775
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/3619
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=xenial+overlay/3619/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/3619
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=amd64,release=zesty/3619/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/3619
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=xenial+overlay/3619/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/3619
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=armhf,release=zesty/3619/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/3619
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=xenial+overlay/3619/artifact/output/*zip*/output.zip
    SUCCESS: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/3619
        deb: https://unity8-jenkins.ubuntu.com/job/build-2-binpkg/arch=i386,release=zesty/3619/artifact/output/*zip*/output.zip

Click here to trigger a rebuild:
https://unity8-jenkins.ubuntu.com/job/lp-unity8-ci/2869/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/Unity/CMakeLists.txt'
2--- tests/mocks/Unity/CMakeLists.txt 2016-05-04 18:09:25 +0000
3+++ tests/mocks/Unity/CMakeLists.txt 2017-01-10 14:13:28 +0000
4@@ -6,6 +6,7 @@
5 add_subdirectory(Notifications)
6 add_subdirectory(DashCommunicator)
7 add_subdirectory(Screens)
8+add_subdirectory(Platform)
9
10 pkg_search_module(GOBJECT gobject-2.0 REQUIRED)
11 pkg_check_modules(SCOPES_API REQUIRED unity-shell-scopes=12)
12
13=== added directory 'tests/mocks/Unity/Platform'
14=== added file 'tests/mocks/Unity/Platform/CMakeLists.txt'
15--- tests/mocks/Unity/Platform/CMakeLists.txt 1970-01-01 00:00:00 +0000
16+++ tests/mocks/Unity/Platform/CMakeLists.txt 2017-01-10 14:13:28 +0000
17@@ -0,0 +1,1 @@
18+add_unity8_mock(Unity.Platform 1.0 Unity/Platform)
19
20=== added file 'tests/mocks/Unity/Platform/MockPlatform.qml'
21--- tests/mocks/Unity/Platform/MockPlatform.qml 1970-01-01 00:00:00 +0000
22+++ tests/mocks/Unity/Platform/MockPlatform.qml 2017-01-10 14:13:28 +0000
23@@ -0,0 +1,25 @@
24+/*
25+ * Copyright (C) 2017 Canonical, Ltd.
26+ *
27+ * This program is free software; you can redistribute it and/or modify
28+ * it under the terms of the GNU General Public License as published by
29+ * the Free Software Foundation; version 3.
30+ *
31+ * This program is distributed in the hope that it will be useful,
32+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
33+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
34+ * GNU General Public License for more details.
35+ *
36+ * You should have received a copy of the GNU General Public License
37+ * along with this program. If not, see <http://www.gnu.org/licenses/>.
38+ */
39+
40+pragma Singleton
41+
42+import QtQuick 2.4
43+
44+QtObject {
45+ property string chassis: "desktop"
46+ property bool isPC: true
47+ property bool isMultiSession: true
48+}
49
50=== added file 'tests/mocks/Unity/Platform/qmldir'
51--- tests/mocks/Unity/Platform/qmldir 1970-01-01 00:00:00 +0000
52+++ tests/mocks/Unity/Platform/qmldir 2017-01-10 14:13:28 +0000
53@@ -0,0 +1,2 @@
54+module Unity.Platform
55+singleton Platform 1.0 MockPlatform.qml

Subscribers

People subscribed via source and target branches