Merge lp:~khurshid-alam/indicator-sound/fix-build-impish into lp:indicator-sound
- fix-build-impish
- Merge into trunk.16.10
Status: | Merged |
---|---|
Merged at revision: | 565 |
Proposed branch: | lp:~khurshid-alam/indicator-sound/fix-build-impish |
Merge into: | lp:indicator-sound |
Diff against target: |
1043 lines (+170/-104) 24 files modified
debian/changelog (+36/-0) debian/control (+1/-1) debian/rules (+2/-1) src/CMakeLists.txt (+0/-1) src/accounts-service-access.vala (+3/-3) src/freedesktop-interfaces.vala (+2/-2) src/greeter-broadcast.vala (+5/-5) src/media-player-list-greeter.vala (+7/-3) src/media-player-list-mpris.vala (+1/-1) src/media-player-mpris.vala (+1/-1) src/media-player-user.vala (+15/-3) src/mpris2-interfaces.vala (+8/-8) src/notification.vala (+1/-1) src/options-gsettings.vala (+5/-5) src/sound-menu.vala (+2/-0) src/volume-control-pulse.vala (+6/-0) src/volume-control.vala (+1/-1) src/volume-warning.vala (+4/-3) tests/CMakeLists.txt (+1/-1) tests/indicator-test.cc (+3/-3) tests/integration/indicator-sound-test-base.cpp (+7/-2) tests/integration/test-indicator.cpp (+49/-49) tests/notifications-test.cc (+9/-9) tests/volume-control-test.cc (+1/-1) |
To merge this branch: | bzr merge lp:~khurshid-alam/indicator-sound/fix-build-impish |
Related bugs: |
Reviewer | Review Type | Date Requested | Status |
---|---|---|---|
Gunnar Hjalmarsson | Approve | ||
Review via email:
|
Commit message
* Fix build against vala > 48 & vala >= 50
* Add symbolic icons to the tests
* Avoid possible null value in Greeterlist and GreeterBroadcast object.
* Fix build against GLib > 2.64: Replace HashTable with GenericSet
* Fix static member access
* Drop deprecated DBusProxy.
* Add libdbustest-1 include path
* Unit Tests: Unset environment variable and session bus in teardown
* debian/control: Remove qt5-default & add libgmock-dev in build depends. See https:/
* Unit Tests: The desktop pulseaudio daemon also needs the stream-restore module these days
* Unit Tests: Disable notification tests that can not be fixed now. Most of them are phone related and depends on liburl-dispatcher library which was dropped from code since it is no longer in the universe repository. See https:/
* Unit Tests: Disable indicator tests that can not be fixed now. These tests needs to be re-enabled later
- tests/indicator
- tests/indicator
- tests/indicator
- tests/integrati
- tests/volume-
* debian/rules: Re enable live tests logs
Description of the change
Regarding tests, most only works on unity-8/phone environment and some are failing due to bugs libdbustest and gmock. As per my testing this doesn't hamper functionality on desktop, indicator-sound works as expected. These tests can be enabled for desktop later if someone able to fix those.
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Dmitry Shachnev (mitya57) wrote : | # |
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Gunnar Hjalmarsson (gunnarhj) wrote : | # |
I built it successfully on multiple archs:
https:/
So I'm ready to sponsor provided that you
* address Dmitry's questions/
* summarize the changes in a proper d/changelog entry.
- 584. By Khurshid Alam
-
Keep dependency order sorted. Remove empty lines
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Khurshid Alam (khurshid-alam) wrote (last edit ): | # |
@Gunner
Hi,
1. I addressed Dimitry's suggestions.
2. For debian/changelog, the way it works for bzr launchpad, I think, I don't change it. You merged and then released with d/changelog modified.
But I can still change from my end if it is required. Pleae let me know in comments.
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Gunnar Hjalmarsson (gunnarhj) wrote : | # |
Since it's multiple changes, I'd prefer if you include the d/changelog change in your merge request. (I think the practice differs between different teams, but in this case, as a sponsor, I ask you to do it.)
- 585. By Khurshid Alam
-
Update d/changelog
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Khurshid Alam (khurshid-alam) wrote : | # |
Alright. I have updated the changelog.
![](/+icing/build/overlay/assets/skins/sam/images/close.gif)
Gunnar Hjalmarsson (gunnarhj) wrote : | # |
Thanks! Merged and uploaded.
Preview Diff
1 | === modified file 'debian/changelog' | |||
2 | --- debian/changelog 2020-06-04 12:59:23 +0000 | |||
3 | +++ debian/changelog 2021-09-29 20:46:45 +0000 | |||
4 | @@ -1,3 +1,39 @@ | |||
5 | 1 | indicator-sound (12.10.2+18.10.20180612-0ubuntu4) impish; urgency=medium | ||
6 | 2 | |||
7 | 3 | * Fix build against vala > 48 & vala >= 50 | ||
8 | 4 | |||
9 | 5 | * Add symbolic icons to the tests | ||
10 | 6 | |||
11 | 7 | * Avoid possible null value in Greeterlist and GreeterBroadcast object. | ||
12 | 8 | See https://github.com/AyatanaIndicators/ayatana-indicator-sound/commit/8df9168f5587cfd31e0bf6a4170a4c4f9784dbb7 | ||
13 | 9 | |||
14 | 10 | * Fix build against GLib > 2.64: Replace HashTable with GenericSet | ||
15 | 11 | |||
16 | 12 | * Fix static member access | ||
17 | 13 | |||
18 | 14 | * Drop deprecated DBusProxy.create_for_bus | ||
19 | 15 | |||
20 | 16 | * Add libdbustest-1 include path | ||
21 | 17 | |||
22 | 18 | * Unit Tests: Unset environment variable and session bus in teardown | ||
23 | 19 | |||
24 | 20 | * debian/control: Remove qt5-default & add libgmock-dev in build depends. See https://bugs.launchpad.net/bugs/1921781 | ||
25 | 21 | |||
26 | 22 | * Unit Tests: The desktop pulseaudio daemon also needs the stream-restore module these days | ||
27 | 23 | |||
28 | 24 | * Unit Tests: Disable notification tests that can not be fixed now. Most of them are phone related and depends on liburl-dispatcher library which was dropped from code since it is no longer in the universe repository. See https://bazaar.launchpad.net/~indicator-applet-developers/indicator-sound/trunk.16.10/revision/564 | ||
29 | 25 | |||
30 | 26 | * Unit Tests: Disable indicator tests that can not be fixed now. These tests needs to be re-enabled later | ||
31 | 27 | - tests/indicator-test.cc:PhoneMenu | ||
32 | 28 | - tests/indicator-test.cc:DesktopMenu | ||
33 | 29 | - tests/indicator-test.cc:BaseActions | ||
34 | 30 | - tests/integration/test-indicator.cpp:All tests | ||
35 | 31 | - tests/volume-control-test.cc:BasicObject | ||
36 | 32 | |||
37 | 33 | * debian/rules: Re enable live tests logs | ||
38 | 34 | |||
39 | 35 | -- Khurshid Alam <khurshid.alam@linuxmail.org> Thu, 30 Sep 2021 02:12:26 +0530 | ||
40 | 36 | |||
41 | 1 | indicator-sound (12.10.2+18.10.20180612-0ubuntu3) groovy; urgency=medium | 37 | indicator-sound (12.10.2+18.10.20180612-0ubuntu3) groovy; urgency=medium |
42 | 2 | 38 | ||
43 | 3 | * Drop url-dispatcher based Unity8 support. ubuntu-app-launch & | 39 | * Drop url-dispatcher based Unity8 support. ubuntu-app-launch & |
44 | 4 | 40 | ||
45 | === modified file 'debian/control' | |||
46 | --- debian/control 2020-06-04 12:59:23 +0000 | |||
47 | +++ debian/control 2021-09-29 20:46:45 +0000 | |||
48 | @@ -22,6 +22,7 @@ | |||
49 | 22 | libdbustest1-dev (>= 15.04.0), | 22 | libdbustest1-dev (>= 15.04.0), |
50 | 23 | libgirepository1.0-dev, | 23 | libgirepository1.0-dev, |
51 | 24 | libglib2.0-dev (>= 2.32.0), | 24 | libglib2.0-dev (>= 2.32.0), |
52 | 25 | libgmock-dev, | ||
53 | 25 | libqtdbusmock1-dev (>= 0.3), | 26 | libqtdbusmock1-dev (>= 0.3), |
54 | 26 | libqtdbustest1-dev, | 27 | libqtdbustest1-dev, |
55 | 27 | libunity-api-dev, | 28 | libunity-api-dev, |
56 | @@ -32,7 +33,6 @@ | |||
57 | 32 | libxml2-dev, | 33 | libxml2-dev, |
58 | 33 | pulseaudio, | 34 | pulseaudio, |
59 | 34 | python3-dbusmock, | 35 | python3-dbusmock, |
60 | 35 | qt5-default, | ||
61 | 36 | qtbase5-dev, | 36 | qtbase5-dev, |
62 | 37 | qtbase5-dev-tools, | 37 | qtbase5-dev-tools, |
63 | 38 | qtdeclarative5-dev, | 38 | qtdeclarative5-dev, |
64 | 39 | 39 | ||
65 | === modified file 'debian/rules' | |||
66 | --- debian/rules 2020-06-04 12:59:23 +0000 | |||
67 | +++ debian/rules 2021-09-29 20:46:45 +0000 | |||
68 | @@ -17,5 +17,6 @@ | |||
69 | 17 | install -m 644 debian/indicator-sound-crashdb.conf debian/indicator-sound/etc/apport/crashdb.conf.d/ | 17 | install -m 644 debian/indicator-sound-crashdb.conf debian/indicator-sound/etc/apport/crashdb.conf.d/ |
70 | 18 | dh_install --fail-missing | 18 | dh_install --fail-missing |
71 | 19 | 19 | ||
72 | 20 | # For live test logs: | ||
73 | 20 | override_dh_auto_test: | 21 | override_dh_auto_test: |
75 | 21 | -timeout 10m dh_auto_test | 22 | ARGS=-V dh_auto_test |
76 | 22 | 23 | ||
77 | === modified file 'src/CMakeLists.txt' | |||
78 | --- src/CMakeLists.txt 2020-06-04 12:59:23 +0000 | |||
79 | +++ src/CMakeLists.txt 2021-09-29 20:46:45 +0000 | |||
80 | @@ -31,7 +31,6 @@ | |||
81 | 31 | accounts-service | 31 | accounts-service |
82 | 32 | OPTIONS | 32 | OPTIONS |
83 | 33 | --ccode | 33 | --ccode |
84 | 34 | --thread | ||
85 | 35 | --target-glib=${GLIB_2_0_REQUIRED_VERSION} | 34 | --target-glib=${GLIB_2_0_REQUIRED_VERSION} |
86 | 36 | --vapidir=${CMAKE_SOURCE_DIR}/vapi/ | 35 | --vapidir=${CMAKE_SOURCE_DIR}/vapi/ |
87 | 37 | --vapidir=. | 36 | --vapidir=. |
88 | 38 | 37 | ||
89 | === modified file 'src/accounts-service-access.vala' | |||
90 | --- src/accounts-service-access.vala 2016-03-03 08:59:37 +0000 | |||
91 | +++ src/accounts-service-access.vala 2021-09-29 20:46:45 +0000 | |||
92 | @@ -25,7 +25,7 @@ | |||
93 | 25 | [DBus (name="com.canonical.UnityGreeter.List")] | 25 | [DBus (name="com.canonical.UnityGreeter.List")] |
94 | 26 | interface GreeterListInterfaceAccess : Object | 26 | interface GreeterListInterfaceAccess : Object |
95 | 27 | { | 27 | { |
97 | 28 | public abstract async string get_active_entry () throws IOError; | 28 | public abstract async string get_active_entry () throws GLib.DBusError, GLib.IOError; |
98 | 29 | public signal void entry_selected (string entry_name); | 29 | public signal void entry_selected (string entry_name); |
99 | 30 | } | 30 | } |
100 | 31 | 31 | ||
101 | @@ -130,7 +130,7 @@ | |||
102 | 130 | // Get master AccountsService object | 130 | // Get master AccountsService object |
103 | 131 | DBusProxy accounts_proxy; | 131 | DBusProxy accounts_proxy; |
104 | 132 | try { | 132 | try { |
106 | 133 | accounts_proxy = yield DBusProxy.create_for_bus (BusType.SYSTEM, DBusProxyFlags.DO_NOT_LOAD_PROPERTIES | DBusProxyFlags.DO_NOT_CONNECT_SIGNALS, null, "org.freedesktop.Accounts", "/org/freedesktop/Accounts", "org.freedesktop.Accounts"); | 133 | accounts_proxy = yield new DBusProxy.for_bus (BusType.SYSTEM, DBusProxyFlags.DO_NOT_LOAD_PROPERTIES | DBusProxyFlags.DO_NOT_CONNECT_SIGNALS, null, "org.freedesktop.Accounts", "/org/freedesktop/Accounts", "org.freedesktop.Accounts"); |
107 | 134 | } catch (GLib.Error e) { | 134 | } catch (GLib.Error e) { |
108 | 135 | warning ("unable to get greeter proxy: %s", e.message); | 135 | warning ("unable to get greeter proxy: %s", e.message); |
109 | 136 | return; | 136 | return; |
110 | @@ -142,7 +142,7 @@ | |||
111 | 142 | string user_path; | 142 | string user_path; |
112 | 143 | if (user_path_variant.check_format_string ("(o)", true)) { | 143 | if (user_path_variant.check_format_string ("(o)", true)) { |
113 | 144 | user_path_variant.get ("(o)", out user_path); | 144 | user_path_variant.get ("(o)", out user_path); |
115 | 145 | _user_proxy = yield DBusProxy.create_for_bus (BusType.SYSTEM, DBusProxyFlags.GET_INVALIDATED_PROPERTIES, null, "org.freedesktop.Accounts", user_path, "com.ubuntu.AccountsService.Sound"); | 145 | _user_proxy = yield new DBusProxy.for_bus (BusType.SYSTEM, DBusProxyFlags.GET_INVALIDATED_PROPERTIES, null, "org.freedesktop.Accounts", user_path, "com.ubuntu.AccountsService.Sound"); |
116 | 146 | } else { | 146 | } else { |
117 | 147 | warning ("Unable to find user name after calling FindUserByName. Expected type: %s and obtained %s", "(o)", user_path_variant.get_type_string () ); | 147 | warning ("Unable to find user name after calling FindUserByName. Expected type: %s and obtained %s", "(o)", user_path_variant.get_type_string () ); |
118 | 148 | return; | 148 | return; |
119 | 149 | 149 | ||
120 | === modified file 'src/freedesktop-interfaces.vala' | |||
121 | --- src/freedesktop-interfaces.vala 2011-01-09 15:30:29 +0000 | |||
122 | +++ src/freedesktop-interfaces.vala 2021-09-29 20:46:45 +0000 | |||
123 | @@ -19,7 +19,7 @@ | |||
124 | 19 | 19 | ||
125 | 20 | [DBus (name = "org.freedesktop.DBus")] | 20 | [DBus (name = "org.freedesktop.DBus")] |
126 | 21 | public interface FreeDesktopObject: Object { | 21 | public interface FreeDesktopObject: Object { |
128 | 22 | public abstract async string[] list_names() throws IOError; | 22 | public abstract async string[] list_names() throws GLib.DBusError, GLib.IOError; |
129 | 23 | public abstract signal void name_owner_changed ( string name, | 23 | public abstract signal void name_owner_changed ( string name, |
130 | 24 | string old_owner, | 24 | string old_owner, |
131 | 25 | string new_owner ); | 25 | string new_owner ); |
132 | @@ -27,7 +27,7 @@ | |||
133 | 27 | 27 | ||
134 | 28 | [DBus (name = "org.freedesktop.DBus.Introspectable")] | 28 | [DBus (name = "org.freedesktop.DBus.Introspectable")] |
135 | 29 | public interface FreeDesktopIntrospectable: Object { | 29 | public interface FreeDesktopIntrospectable: Object { |
137 | 30 | public abstract string Introspect() throws IOError; | 30 | public abstract string Introspect() throws GLib.DBusError, GLib.IOError; |
138 | 31 | } | 31 | } |
139 | 32 | 32 | ||
140 | 33 | [DBus (name = "org.freedesktop.DBus.Properties")] | 33 | [DBus (name = "org.freedesktop.DBus.Properties")] |
141 | 34 | 34 | ||
142 | === modified file 'src/greeter-broadcast.vala' | |||
143 | --- src/greeter-broadcast.vala 2014-03-13 18:38:55 +0000 | |||
144 | +++ src/greeter-broadcast.vala 2021-09-29 20:46:45 +0000 | |||
145 | @@ -20,11 +20,11 @@ | |||
146 | 20 | [DBus (name = "com.canonical.Unity.Greeter.Broadcast")] | 20 | [DBus (name = "com.canonical.Unity.Greeter.Broadcast")] |
147 | 21 | public interface GreeterBroadcast : Object { | 21 | public interface GreeterBroadcast : Object { |
148 | 22 | // methods | 22 | // methods |
154 | 23 | // unused public abstract async void RequestApplicationStart(string name, string appid) throws IOError; | 23 | // unused public abstract async void RequestApplicationStart(string name, string appid) throws GLib.Error; |
155 | 24 | // unused public abstract async void RequestHomeShown(string name) throws IOError; | 24 | // unused public abstract async void RequestHomeShown(string name) throws GLib.Error; |
156 | 25 | public abstract async void RequestSoundPlayPause(string name) throws IOError; | 25 | public abstract async void RequestSoundPlayPause(string name) throws GLib.DBusError, GLib.IOError; |
157 | 26 | public abstract async void RequestSoundNext(string name) throws IOError; | 26 | public abstract async void RequestSoundNext(string name) throws GLib.DBusError, GLib.IOError; |
158 | 27 | public abstract async void RequestSoundPrev(string name) throws IOError; | 27 | public abstract async void RequestSoundPrev(string name) throws GLib.DBusError, GLib.IOError; |
159 | 28 | // signals | 28 | // signals |
160 | 29 | // unused public signal void StartApplication(string username, string appid); | 29 | // unused public signal void StartApplication(string username, string appid); |
161 | 30 | // unused public signal void ShowHome(string username); | 30 | // unused public signal void ShowHome(string username); |
162 | 31 | 31 | ||
163 | === modified file 'src/media-player-list-greeter.vala' | |||
164 | --- src/media-player-list-greeter.vala 2014-04-01 23:20:56 +0000 | |||
165 | +++ src/media-player-list-greeter.vala 2021-09-29 20:46:45 +0000 | |||
166 | @@ -19,7 +19,7 @@ | |||
167 | 19 | 19 | ||
168 | 20 | [DBus (name="com.canonical.UnityGreeter.List")] | 20 | [DBus (name="com.canonical.UnityGreeter.List")] |
169 | 21 | public interface UnityGreeterList : Object { | 21 | public interface UnityGreeterList : Object { |
171 | 22 | public abstract async string get_active_entry () throws IOError; | 22 | public abstract async string get_active_entry () throws GLib.DBusError, GLib.IOError; |
172 | 23 | public signal void entry_selected (string entry_name); | 23 | public signal void entry_selected (string entry_name); |
173 | 24 | } | 24 | } |
174 | 25 | 25 | ||
175 | @@ -45,8 +45,12 @@ | |||
176 | 45 | this.proxy.entry_selected.connect(active_user_changed); | 45 | this.proxy.entry_selected.connect(active_user_changed); |
177 | 46 | this.proxy.get_active_entry.begin ((obj, res) => { | 46 | this.proxy.get_active_entry.begin ((obj, res) => { |
178 | 47 | try { | 47 | try { |
181 | 48 | var value = (obj as UnityGreeterList).get_active_entry.end(res); | 48 | var list = (obj as UnityGreeterList); |
182 | 49 | active_user_changed(value); | 49 | |
183 | 50 | if (list != null) { | ||
184 | 51 | var value = list.get_active_entry.end(res); | ||
185 | 52 | active_user_changed(value); | ||
186 | 53 | } | ||
187 | 50 | } catch (Error e) { | 54 | } catch (Error e) { |
188 | 51 | warning("Unable to get active entry: %s", e.message); | 55 | warning("Unable to get active entry: %s", e.message); |
189 | 52 | } | 56 | } |
190 | 53 | 57 | ||
191 | === modified file 'src/media-player-list-mpris.vala' | |||
192 | --- src/media-player-list-mpris.vala 2014-02-25 22:47:45 +0000 | |||
193 | +++ src/media-player-list-mpris.vala 2021-09-29 20:46:45 +0000 | |||
194 | @@ -94,7 +94,7 @@ | |||
195 | 94 | public override void sync (string[] desktop_ids) { | 94 | public override void sync (string[] desktop_ids) { |
196 | 95 | 95 | ||
197 | 96 | /* hash desktop_ids for faster lookup */ | 96 | /* hash desktop_ids for faster lookup */ |
199 | 97 | var hash = new HashTable<string, unowned string> (str_hash, str_equal); | 97 | var hash = new GenericSet<string> (str_hash, str_equal); |
200 | 98 | foreach (var id in desktop_ids) | 98 | foreach (var id in desktop_ids) |
201 | 99 | hash.add (id); | 99 | hash.add (id); |
202 | 100 | 100 | ||
203 | 101 | 101 | ||
204 | === modified file 'src/media-player-mpris.vala' | |||
205 | --- src/media-player-mpris.vala 2017-06-16 17:39:00 +0000 | |||
206 | +++ src/media-player-mpris.vala 2021-09-29 20:46:45 +0000 | |||
207 | @@ -146,7 +146,7 @@ | |||
208 | 146 | this.state = "Launching"; | 146 | this.state = "Launching"; |
209 | 147 | } | 147 | } |
210 | 148 | else if (this.root != null && this.root.CanRaise) { | 148 | else if (this.root != null && this.root.CanRaise) { |
212 | 149 | this.root.Raise (); | 149 | this.root.Raise.begin (); |
213 | 150 | } | 150 | } |
214 | 151 | } | 151 | } |
215 | 152 | catch (Error e) { | 152 | catch (Error e) { |
216 | 153 | 153 | ||
217 | === modified file 'src/media-player-user.vala' | |||
218 | --- src/media-player-user.vala 2015-12-29 17:05:16 +0000 | |||
219 | +++ src/media-player-user.vala 2021-09-29 20:46:45 +0000 | |||
220 | @@ -238,7 +238,11 @@ | |||
221 | 238 | if (this.greeter != null) { | 238 | if (this.greeter != null) { |
222 | 239 | this.greeter.RequestSoundPlayPause.begin(this.username, (obj, res) => { | 239 | this.greeter.RequestSoundPlayPause.begin(this.username, (obj, res) => { |
223 | 240 | try { | 240 | try { |
225 | 241 | (obj as GreeterBroadcast).RequestSoundPlayPause.end(res); | 241 | var broadcasts = (obj as GreeterBroadcast); |
226 | 242 | |||
227 | 243 | if (broadcasts != null) { | ||
228 | 244 | broadcasts.RequestSoundPlayPause.end(res); | ||
229 | 245 | } | ||
230 | 242 | } catch (Error e) { | 246 | } catch (Error e) { |
231 | 243 | warning("Unable to send play pause: %s", e.message); | 247 | warning("Unable to send play pause: %s", e.message); |
232 | 244 | } | 248 | } |
233 | @@ -253,7 +257,11 @@ | |||
234 | 253 | if (this.greeter != null) { | 257 | if (this.greeter != null) { |
235 | 254 | this.greeter.RequestSoundNext.begin(this.username, (obj, res) => { | 258 | this.greeter.RequestSoundNext.begin(this.username, (obj, res) => { |
236 | 255 | try { | 259 | try { |
238 | 256 | (obj as GreeterBroadcast).RequestSoundNext.end(res); | 260 | var broadcasts = (obj as GreeterBroadcast); |
239 | 261 | |||
240 | 262 | if (broadcasts != null) { | ||
241 | 263 | broadcasts.RequestSoundNext.end(res); | ||
242 | 264 | } | ||
243 | 257 | } catch (Error e) { | 265 | } catch (Error e) { |
244 | 258 | warning("Unable to send next: %s", e.message); | 266 | warning("Unable to send next: %s", e.message); |
245 | 259 | } | 267 | } |
246 | @@ -268,7 +276,11 @@ | |||
247 | 268 | if (this.greeter != null) { | 276 | if (this.greeter != null) { |
248 | 269 | this.greeter.RequestSoundPrev.begin(this.username, (obj, res) => { | 277 | this.greeter.RequestSoundPrev.begin(this.username, (obj, res) => { |
249 | 270 | try { | 278 | try { |
251 | 271 | (obj as GreeterBroadcast).RequestSoundPrev.end(res); | 279 | var broadcasts = (obj as GreeterBroadcast); |
252 | 280 | |||
253 | 281 | if (broadcasts != null) { | ||
254 | 282 | broadcasts.RequestSoundPrev.end(res); | ||
255 | 283 | } | ||
256 | 272 | } catch (Error e) { | 284 | } catch (Error e) { |
257 | 273 | warning("Unable to send previous: %s", e.message); | 285 | warning("Unable to send previous: %s", e.message); |
258 | 274 | } | 286 | } |
259 | 275 | 287 | ||
260 | === modified file 'src/mpris2-interfaces.vala' | |||
261 | --- src/mpris2-interfaces.vala 2015-12-29 02:33:24 +0000 | |||
262 | +++ src/mpris2-interfaces.vala 2021-09-29 20:46:45 +0000 | |||
263 | @@ -28,8 +28,8 @@ | |||
264 | 28 | public abstract string Identity{owned get; set;} | 28 | public abstract string Identity{owned get; set;} |
265 | 29 | public abstract string DesktopEntry{owned get; set;} | 29 | public abstract string DesktopEntry{owned get; set;} |
266 | 30 | // methods | 30 | // methods |
269 | 31 | public abstract async void Quit() throws IOError; | 31 | public abstract async void Quit() throws GLib.Error; |
270 | 32 | public abstract async void Raise() throws IOError; | 32 | public abstract async void Raise() throws GLib.Error; |
271 | 33 | } | 33 | } |
272 | 34 | 34 | ||
273 | 35 | [DBus (name = "org.mpris.MediaPlayer2.Player")] | 35 | [DBus (name = "org.mpris.MediaPlayer2.Player")] |
274 | @@ -42,10 +42,10 @@ | |||
275 | 42 | public abstract bool CanGoNext{owned get; set;} | 42 | public abstract bool CanGoNext{owned get; set;} |
276 | 43 | public abstract bool CanGoPrevious{owned get; set;} | 43 | public abstract bool CanGoPrevious{owned get; set;} |
277 | 44 | // methods | 44 | // methods |
282 | 45 | public abstract async void PlayPause() throws IOError; | 45 | public abstract async void PlayPause() throws GLib.Error; |
283 | 46 | public abstract async void Next() throws IOError; | 46 | public abstract async void Next() throws GLib.Error; |
284 | 47 | public abstract async void Previous() throws IOError; | 47 | public abstract async void Previous() throws GLib.Error; |
285 | 48 | public abstract async void Seek(int64 offset) throws IOError; | 48 | public abstract async void Seek(int64 offset) throws GLib.Error; |
286 | 49 | // signals | 49 | // signals |
287 | 50 | public signal void Seeked(int64 new_position); | 50 | public signal void Seeked(int64 new_position); |
288 | 51 | } | 51 | } |
289 | @@ -71,11 +71,11 @@ | |||
290 | 71 | public abstract ActivePlaylistContainer? ActivePlaylist {owned get; set;} | 71 | public abstract ActivePlaylistContainer? ActivePlaylist {owned get; set;} |
291 | 72 | 72 | ||
292 | 73 | //methods | 73 | //methods |
294 | 74 | public abstract async void ActivatePlaylist(ObjectPath playlist_id) throws IOError; | 74 | public abstract async void ActivatePlaylist(ObjectPath playlist_id) throws GLib.Error; |
295 | 75 | public abstract async PlaylistDetails[]? GetPlaylists ( uint32 index, | 75 | public abstract async PlaylistDetails[]? GetPlaylists ( uint32 index, |
296 | 76 | uint32 max_count, | 76 | uint32 max_count, |
297 | 77 | string order, | 77 | string order, |
299 | 78 | bool reverse_order ) throws IOError; | 78 | bool reverse_order ) throws GLib.Error; |
300 | 79 | //signals | 79 | //signals |
301 | 80 | public signal void PlaylistChanged (PlaylistDetails details); | 80 | public signal void PlaylistChanged (PlaylistDetails details); |
302 | 81 | 81 | ||
303 | 82 | 82 | ||
304 | === modified file 'src/notification.vala' | |||
305 | --- src/notification.vala 2020-04-03 08:29:33 +0000 | |||
306 | +++ src/notification.vala 2021-09-29 20:46:45 +0000 | |||
307 | @@ -19,7 +19,7 @@ | |||
308 | 19 | 19 | ||
309 | 20 | public abstract class IndicatorSound.Notification: Object | 20 | public abstract class IndicatorSound.Notification: Object |
310 | 21 | { | 21 | { |
312 | 22 | protected Notification () { | 22 | internal Notification () { |
313 | 23 | BusWatcher.watch_namespace ( | 23 | BusWatcher.watch_namespace ( |
314 | 24 | GLib.BusType.SESSION, | 24 | GLib.BusType.SESSION, |
315 | 25 | "org.freedesktop.Notifications", | 25 | "org.freedesktop.Notifications", |
316 | 26 | 26 | ||
317 | === modified file 'src/options-gsettings.vala' | |||
318 | --- src/options-gsettings.vala 2015-12-31 17:13:18 +0000 | |||
319 | +++ src/options-gsettings.vala 2021-09-29 20:46:45 +0000 | |||
320 | @@ -35,9 +35,9 @@ | |||
321 | 35 | 35 | ||
322 | 36 | /** MAX VOLUME PROPERTY **/ | 36 | /** MAX VOLUME PROPERTY **/ |
323 | 37 | 37 | ||
327 | 38 | private static const string AMP_dB_KEY = "amplified-volume-decibels"; | 38 | private const string AMP_dB_KEY = "amplified-volume-decibels"; |
328 | 39 | private static const string NORMAL_dB_KEY = "normal-volume-decibels"; | 39 | private const string NORMAL_dB_KEY = "normal-volume-decibels"; |
329 | 40 | private static const string ALLOW_AMP_KEY = "allow-amplified-volume"; | 40 | private const string ALLOW_AMP_KEY = "allow-amplified-volume"; |
330 | 41 | 41 | ||
331 | 42 | private void init_max_volume() { | 42 | private void init_max_volume() { |
332 | 43 | _settings.changed[NORMAL_dB_KEY].connect(() => update_max_volume()); | 43 | _settings.changed[NORMAL_dB_KEY].connect(() => update_max_volume()); |
333 | @@ -66,8 +66,8 @@ | |||
334 | 66 | 66 | ||
335 | 67 | /** LOUD VOLUME **/ | 67 | /** LOUD VOLUME **/ |
336 | 68 | 68 | ||
339 | 69 | private static const string LOUD_ENABLED_KEY = "warning-volume-enabled"; | 69 | private const string LOUD_ENABLED_KEY = "warning-volume-enabled"; |
340 | 70 | private static const string LOUD_DECIBEL_KEY = "warning-volume-decibels"; | 70 | private const string LOUD_DECIBEL_KEY = "warning-volume-decibels"; |
341 | 71 | 71 | ||
342 | 72 | private void init_loud_volume() { | 72 | private void init_loud_volume() { |
343 | 73 | _settings.changed[LOUD_ENABLED_KEY].connect(() => update_loud_volume()); | 73 | _settings.changed[LOUD_ENABLED_KEY].connect(() => update_loud_volume()); |
344 | 74 | 74 | ||
345 | === modified file 'src/sound-menu.vala' | |||
346 | --- src/sound-menu.vala 2016-03-02 13:50:43 +0000 | |||
347 | +++ src/sound-menu.vala 2021-09-29 20:46:45 +0000 | |||
348 | @@ -271,6 +271,8 @@ | |||
349 | 271 | case VolumeControl.ActiveOutput.HDMI_HEADPHONES: | 271 | case VolumeControl.ActiveOutput.HDMI_HEADPHONES: |
350 | 272 | label = _("Volume (HDMI headphones)"); | 272 | label = _("Volume (HDMI headphones)"); |
351 | 273 | break; | 273 | break; |
352 | 274 | case VolumeControl.ActiveOutput.CALL_MODE: | ||
353 | 275 | break; | ||
354 | 274 | } | 276 | } |
355 | 275 | this.volume_section.remove (index); | 277 | this.volume_section.remove (index); |
356 | 276 | this.volume_section.insert_item (index, this.create_slider_menu_item (_(label), "indicator.volume(0)", 0.0, 1.0, 0.01, | 278 | this.volume_section.insert_item (index, this.create_slider_menu_item (_(label), "indicator.volume(0)", 0.0, 1.0, 0.01, |
357 | 277 | 279 | ||
358 | === modified file 'src/volume-control-pulse.vala' | |||
359 | --- src/volume-control-pulse.vala 2017-06-16 17:39:00 +0000 | |||
360 | +++ src/volume-control-pulse.vala 2021-09-29 20:46:45 +0000 | |||
361 | @@ -201,8 +201,14 @@ | |||
362 | 201 | this._source_sink_mic_activated = false; | 201 | this._source_sink_mic_activated = false; |
363 | 202 | this.active_mic = _external_mic_detected; | 202 | this.active_mic = _external_mic_detected; |
364 | 203 | break; | 203 | break; |
365 | 204 | |||
366 | 205 | default: | ||
367 | 206 | break; | ||
368 | 204 | } | 207 | } |
369 | 205 | break; | 208 | break; |
370 | 209 | |||
371 | 210 | default: | ||
372 | 211 | break; | ||
373 | 206 | } | 212 | } |
374 | 207 | } | 213 | } |
375 | 208 | 214 | ||
376 | 209 | 215 | ||
377 | === modified file 'src/volume-control.vala' | |||
378 | --- src/volume-control.vala 2020-04-03 08:29:33 +0000 | |||
379 | +++ src/volume-control.vala 2021-09-29 20:46:45 +0000 | |||
380 | @@ -54,7 +54,7 @@ | |||
381 | 54 | 54 | ||
382 | 55 | protected IndicatorSound.Options _options = null; | 55 | protected IndicatorSound.Options _options = null; |
383 | 56 | 56 | ||
385 | 57 | protected VolumeControl (IndicatorSound.Options options) { | 57 | internal VolumeControl(IndicatorSound.Options options) { |
386 | 58 | _options = options; | 58 | _options = options; |
387 | 59 | } | 59 | } |
388 | 60 | 60 | ||
389 | 61 | 61 | ||
390 | === modified file 'src/volume-warning.vala' | |||
391 | --- src/volume-warning.vala 2020-04-03 08:29:33 +0000 | |||
392 | +++ src/volume-warning.vala 2021-09-29 20:46:45 +0000 | |||
393 | @@ -44,7 +44,8 @@ | |||
394 | 44 | } | 44 | } |
395 | 45 | } | 45 | } |
396 | 46 | 46 | ||
398 | 47 | protected VolumeWarning (IndicatorSound.Options options) { | 47 | internal VolumeWarning (IndicatorSound.Options options) { |
399 | 48 | |||
400 | 48 | _options = options; | 49 | _options = options; |
401 | 49 | 50 | ||
402 | 50 | init_high_volume (); | 51 | init_high_volume (); |
403 | @@ -132,7 +133,7 @@ | |||
404 | 132 | **/ | 133 | **/ |
405 | 133 | 134 | ||
406 | 134 | private Settings _settings = new Settings ("com.canonical.indicator.sound"); | 135 | private Settings _settings = new Settings ("com.canonical.indicator.sound"); |
408 | 135 | private static const string TTL_KEY = "warning-volume-confirmation-ttl"; | 136 | private const string TTL_KEY = "warning-volume-confirmation-ttl"; |
409 | 136 | private uint _approved_timer = 0; | 137 | private uint _approved_timer = 0; |
410 | 137 | private int64 _approved_at = 0; | 138 | private int64 _approved_at = 0; |
411 | 138 | private int64 _approved_ttl_usec = 0; | 139 | private int64 _approved_ttl_usec = 0; |
412 | @@ -213,7 +214,7 @@ | |||
413 | 213 | approve_high_volume (); | 214 | approve_high_volume (); |
414 | 214 | sound_system_set_multimedia_volume (_ok_volume); | 215 | sound_system_set_multimedia_volume (_ok_volume); |
415 | 215 | } else { | 216 | } else { |
417 | 216 | this.cancel_pressed (this.volume_to_double(_options.loud_volume)); | 217 | this.cancel_pressed (VolumeWarning.volume_to_double(_options.loud_volume)); |
418 | 217 | } | 218 | } |
419 | 218 | 219 | ||
420 | 219 | _ok_volume = PulseAudio.Volume.INVALID; | 220 | _ok_volume = PulseAudio.Volume.INVALID; |
421 | 220 | 221 | ||
422 | === modified file 'tests/CMakeLists.txt' | |||
423 | --- tests/CMakeLists.txt 2017-02-07 21:50:25 +0000 | |||
424 | +++ tests/CMakeLists.txt 2021-09-29 20:46:45 +0000 | |||
425 | @@ -1,5 +1,6 @@ | |||
426 | 1 | find_package(GMock) | 1 | find_package(GMock) |
427 | 2 | include_directories(${GMOCK_INCLUDE_DIRS}) | 2 | include_directories(${GMOCK_INCLUDE_DIRS}) |
428 | 3 | include_directories("${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_INCLUDEDIR}/libdbustest-1") | ||
429 | 3 | 4 | ||
430 | 4 | ########################### | 5 | ########################### |
431 | 5 | # GSettings Schema | 6 | # GSettings Schema |
432 | @@ -48,7 +49,6 @@ | |||
433 | 48 | indicator-sound-service | 49 | indicator-sound-service |
434 | 49 | OPTIONS | 50 | OPTIONS |
435 | 50 | --ccode | 51 | --ccode |
436 | 51 | --thread | ||
437 | 52 | --vapidir=${CMAKE_BINARY_DIR}/src/ | 52 | --vapidir=${CMAKE_BINARY_DIR}/src/ |
438 | 53 | --vapidir=${CMAKE_SOURCE_DIR}/vapi/ | 53 | --vapidir=${CMAKE_SOURCE_DIR}/vapi/ |
439 | 54 | --vapidir=. | 54 | --vapidir=. |
440 | 55 | 55 | ||
441 | === modified file 'tests/indicator-test.cc' | |||
442 | --- tests/indicator-test.cc 2015-02-19 16:27:24 +0000 | |||
443 | +++ tests/indicator-test.cc 2021-09-29 20:46:45 +0000 | |||
444 | @@ -64,7 +64,7 @@ | |||
445 | 64 | }; | 64 | }; |
446 | 65 | 65 | ||
447 | 66 | 66 | ||
449 | 67 | TEST_F(IndicatorTest, PhoneMenu) { | 67 | TEST_F(IndicatorTest, DISABLED_PhoneMenu) { |
450 | 68 | setMenu("/com/canonical/indicator/sound/phone"); | 68 | setMenu("/com/canonical/indicator/sound/phone"); |
451 | 69 | 69 | ||
452 | 70 | EXPECT_EVENTUALLY_MENU_ATTRIB(std::vector<int>({0}), "action", "indicator.root"); | 70 | EXPECT_EVENTUALLY_MENU_ATTRIB(std::vector<int>({0}), "action", "indicator.root"); |
453 | @@ -79,7 +79,7 @@ | |||
454 | 79 | EXPECT_MENU_ATTRIB(std::vector<int>({0, 1}), "label", "Sound Settings…"); | 79 | EXPECT_MENU_ATTRIB(std::vector<int>({0, 1}), "label", "Sound Settings…"); |
455 | 80 | } | 80 | } |
456 | 81 | 81 | ||
458 | 82 | TEST_F(IndicatorTest, DesktopMenu) { | 82 | TEST_F(IndicatorTest, DISABLED_DesktopMenu) { |
459 | 83 | setMenu("/com/canonical/indicator/sound/desktop"); | 83 | setMenu("/com/canonical/indicator/sound/desktop"); |
460 | 84 | 84 | ||
461 | 85 | EXPECT_MENU_ATTRIB({0}, "action", "indicator.root"); | 85 | EXPECT_MENU_ATTRIB({0}, "action", "indicator.root"); |
462 | @@ -94,7 +94,7 @@ | |||
463 | 94 | EXPECT_MENU_ATTRIB(std::vector<int>({0, 1}), "label", "Sound Settings…"); | 94 | EXPECT_MENU_ATTRIB(std::vector<int>({0, 1}), "label", "Sound Settings…"); |
464 | 95 | } | 95 | } |
465 | 96 | 96 | ||
467 | 97 | TEST_F(IndicatorTest, BaseActions) { | 97 | TEST_F(IndicatorTest, DISABLED_BaseActions) { |
468 | 98 | setActions("/com/canonical/indicator/sound"); | 98 | setActions("/com/canonical/indicator/sound"); |
469 | 99 | 99 | ||
470 | 100 | ASSERT_ACTION_EXISTS("root"); | 100 | ASSERT_ACTION_EXISTS("root"); |
471 | 101 | 101 | ||
472 | === modified file 'tests/integration/indicator-sound-test-base.cpp' | |||
473 | --- tests/integration/indicator-sound-test-base.cpp 2018-04-20 20:34:50 +0000 | |||
474 | +++ tests/integration/indicator-sound-test-base.cpp 2021-09-29 20:46:45 +0000 | |||
475 | @@ -80,8 +80,12 @@ | |||
476 | 80 | void IndicatorSoundTestBase::TearDown() | 80 | void IndicatorSoundTestBase::TearDown() |
477 | 81 | { | 81 | { |
478 | 82 | unsetenv("XDG_DATA_DIRS"); | 82 | unsetenv("XDG_DATA_DIRS"); |
479 | 83 | unsetenv("XDG_RUNTIME_DIR"); | ||
480 | 84 | unsetenv("XDG_CONFIG_HOME"); | ||
481 | 85 | unsetenv("HOME"); | ||
482 | 83 | unsetenv("PULSE_SERVER"); | 86 | unsetenv("PULSE_SERVER"); |
483 | 84 | unsetenv("DBUS_SYSTEM_BUS_ADDRESS"); | 87 | unsetenv("DBUS_SYSTEM_BUS_ADDRESS"); |
484 | 88 | unsetenv("DBUS_SESSION_BUS_ADDRESS"); | ||
485 | 85 | } | 89 | } |
486 | 86 | 90 | ||
487 | 87 | void gvariant_deleter(GVariant* varptr) | 91 | void gvariant_deleter(GVariant* varptr) |
488 | @@ -299,6 +303,7 @@ | |||
489 | 299 | << QString("--load=module-null-sink sink_name=indicator_sound_test_mic") | 303 | << QString("--load=module-null-sink sink_name=indicator_sound_test_mic") |
490 | 300 | << "--log-target=file:/tmp/indicator-sound-test-pulse-daemon-desktop.log" | 304 | << "--log-target=file:/tmp/indicator-sound-test-pulse-daemon-desktop.log" |
491 | 301 | << "--load=module-dbus-protocol" | 305 | << "--load=module-dbus-protocol" |
492 | 306 | << QString("--load=module-stream-restore restore_device=false restore_muted=false fallback_table=\"%1\"").arg(STREAM_RESTORE_TABLE) | ||
493 | 302 | << "--load=module-native-protocol-tcp auth-ip-acl=127.0.0.1" | 307 | << "--load=module-native-protocol-tcp auth-ip-acl=127.0.0.1" |
494 | 303 | )); | 308 | )); |
495 | 304 | pulseaudio->start(dbusTestRunner.sessionConnection()); | 309 | pulseaudio->start(dbusTestRunner.sessionConnection()); |
496 | @@ -408,8 +413,8 @@ | |||
497 | 408 | .double_attribute("max-value", 1.0) | 413 | .double_attribute("max-value", 1.0) |
498 | 409 | .double_attribute("step", 0.01) | 414 | .double_attribute("step", 0.01) |
499 | 410 | .string_attribute("x-canonical-type", "com.canonical.unity.slider") | 415 | .string_attribute("x-canonical-type", "com.canonical.unity.slider") |
502 | 411 | .themed_icon("max-icon", {"audio-volume-high-panel", "audio-volume-high", "audio-volume", "audio"}) | 416 | .themed_icon("max-icon", {"audio-volume-high-panel", "audio-volume-high", "audio-volume", "audio", "audio-volume-high-panel-symbolic", "audio-volume-high-symbolic", "audio-volume-symbolic", "audio-symbolic"}) |
503 | 412 | .themed_icon("min-icon", {"audio-volume-low-zero-panel", "audio-volume-low-zero", "audio-volume-low", "audio-volume", "audio"}) | 417 | .themed_icon("min-icon", {"audio-volume-low-zero-panel", "audio-volume-low-zero", "audio-volume-low", "audio-volume", "audio", "audio-volume-low-zero-panel-symbolic", "audio-volume-low-zero-symbolic", "audio-volume-low-symbolic", "audio-volume-symbolic", "audio-symbolic"}) |
504 | 413 | .pass_through_double_attribute("action", volume); | 418 | .pass_through_double_attribute("action", volume); |
505 | 414 | } | 419 | } |
506 | 415 | 420 | ||
507 | 416 | 421 | ||
508 | === modified file 'tests/integration/test-indicator.cpp' | |||
509 | --- tests/integration/test-indicator.cpp 2016-03-17 10:04:53 +0000 | |||
510 | +++ tests/integration/test-indicator.cpp 2021-09-29 20:46:45 +0000 | |||
511 | @@ -32,7 +32,7 @@ | |||
512 | 32 | { | 32 | { |
513 | 33 | }; | 33 | }; |
514 | 34 | 34 | ||
516 | 35 | TEST_F(TestIndicator, PhoneCheckRootIcon) | 35 | TEST_F(TestIndicator, DISABLED_PhoneCheckRootIcon) |
517 | 36 | { | 36 | { |
518 | 37 | double INITIAL_VOLUME = 0.0; | 37 | double INITIAL_VOLUME = 0.0; |
519 | 38 | 38 | ||
520 | @@ -68,10 +68,10 @@ | |||
521 | 68 | ) | 68 | ) |
522 | 69 | ).match()); | 69 | ).match()); |
523 | 70 | 70 | ||
525 | 71 | QStringList mutedIcon = {"audio-volume-muted-panel", "audio-volume-muted", "audio-volume", "audio"}; | 71 | QStringList mutedIcon = {"audio-volume-muted-panel", "audio-volume-muted", "audio-volume", "audio", "audio-volume-muted-panel-symbolic", "audio-volume-muted-symbolic", "audio-volume-symbolic", "audio-symbolic"}; |
526 | 72 | EXPECT_EQ(getRootIconValue(), mutedIcon); | 72 | EXPECT_EQ(getRootIconValue(), mutedIcon); |
527 | 73 | 73 | ||
529 | 74 | QStringList lowVolumeIcon = {"audio-volume-low-panel", "audio-volume-low", "audio-volume", "audio"}; | 74 | QStringList lowVolumeIcon = {"audio-volume-low-panel", "audio-volume-low", "audio-volume", "audio", "audio-volume-low-panel-symbolic", "audio-volume-low-symbolic", "audio-volume-symbolic", "audio-symbolic"}; |
530 | 75 | for( double volume = 0.1; volume <= 0.3; volume+=0.1) | 75 | for( double volume = 0.1; volume <= 0.3; volume+=0.1) |
531 | 76 | { | 76 | { |
532 | 77 | EXPECT_TRUE(setStreamRestoreVolume("alert", volume)); | 77 | EXPECT_TRUE(setStreamRestoreVolume("alert", volume)); |
533 | @@ -79,14 +79,14 @@ | |||
534 | 79 | } | 79 | } |
535 | 80 | EXPECT_TRUE(setStreamRestoreVolume("alert", 0.4)); | 80 | EXPECT_TRUE(setStreamRestoreVolume("alert", 0.4)); |
536 | 81 | 81 | ||
538 | 82 | QStringList mediumVolumeIcon = {"audio-volume-medium-panel", "audio-volume-medium", "audio-volume", "audio"}; | 82 | QStringList mediumVolumeIcon = {"audio-volume-medium-panel", "audio-volume-medium", "audio-volume", "audio", "audio-volume-medium-panel-symbolic", "audio-volume-medium-symbolic", "audio-volume-symbolic", "audio-symbolic"}; |
539 | 83 | for( double volume = 0.4; volume <= 0.7; volume+=0.1) | 83 | for( double volume = 0.4; volume <= 0.7; volume+=0.1) |
540 | 84 | { | 84 | { |
541 | 85 | EXPECT_TRUE(setStreamRestoreVolume("alert", volume)); | 85 | EXPECT_TRUE(setStreamRestoreVolume("alert", volume)); |
542 | 86 | EXPECT_EQ(getRootIconValue(), mediumVolumeIcon); | 86 | EXPECT_EQ(getRootIconValue(), mediumVolumeIcon); |
543 | 87 | } | 87 | } |
544 | 88 | 88 | ||
546 | 89 | QStringList highVolumeIcon = {"audio-volume-high-panel", "audio-volume-high", "audio-volume", "audio"}; | 89 | QStringList highVolumeIcon = {"audio-volume-high-panel", "audio-volume-high", "audio-volume", "audio", "audio-volume-high-panel-symbolic", "audio-volume-high-symbolic", "audio-volume-symbolic", "audio-symbolic"}; |
547 | 90 | for( double volume = 0.8; volume <= 1.0; volume+=0.1) | 90 | for( double volume = 0.8; volume <= 1.0; volume+=0.1) |
548 | 91 | { | 91 | { |
549 | 92 | EXPECT_TRUE(setStreamRestoreVolume("alert", volume)); | 92 | EXPECT_TRUE(setStreamRestoreVolume("alert", volume)); |
550 | @@ -94,7 +94,7 @@ | |||
551 | 94 | } | 94 | } |
552 | 95 | } | 95 | } |
553 | 96 | 96 | ||
555 | 97 | TEST_F(TestIndicator, PhoneTestExternalMicInOut) | 97 | TEST_F(TestIndicator, DISABLED_PhoneTestExternalMicInOut) |
556 | 98 | { | 98 | { |
557 | 99 | double INITIAL_VOLUME = 0.0; | 99 | double INITIAL_VOLUME = 0.0; |
558 | 100 | 100 | ||
559 | @@ -178,7 +178,7 @@ | |||
560 | 178 | ).match()); | 178 | ).match()); |
561 | 179 | } | 179 | } |
562 | 180 | 180 | ||
564 | 181 | TEST_F(TestIndicator, DesktopTestExternalMicInOut) | 181 | TEST_F(TestIndicator, DISABLED_DesktopTestExternalMicInOut) |
565 | 182 | { | 182 | { |
566 | 183 | double INITIAL_VOLUME = 0.0; | 183 | double INITIAL_VOLUME = 0.0; |
567 | 184 | 184 | ||
568 | @@ -371,7 +371,7 @@ | |||
569 | 371 | ).match()); | 371 | ).match()); |
570 | 372 | } | 372 | } |
571 | 373 | 373 | ||
573 | 374 | TEST_F(TestIndicator, PhoneBasicInitialVolume) | 374 | TEST_F(TestIndicator, DISABLED_PhoneBasicInitialVolume) |
574 | 375 | { | 375 | { |
575 | 376 | double INITIAL_VOLUME = 0.0; | 376 | double INITIAL_VOLUME = 0.0; |
576 | 377 | 377 | ||
577 | @@ -406,7 +406,7 @@ | |||
578 | 406 | ).match()); | 406 | ).match()); |
579 | 407 | } | 407 | } |
580 | 408 | 408 | ||
582 | 409 | TEST_F(TestIndicator, PhoneAddMprisPlayer) | 409 | TEST_F(TestIndicator, DISABLED_PhoneAddMprisPlayer) |
583 | 410 | { | 410 | { |
584 | 411 | double INITIAL_VOLUME = 0.0; | 411 | double INITIAL_VOLUME = 0.0; |
585 | 412 | 412 | ||
586 | @@ -469,7 +469,7 @@ | |||
587 | 469 | .item(mh::MenuItemMatcher() | 469 | .item(mh::MenuItemMatcher() |
588 | 470 | .action("indicator.testplayer1.desktop") | 470 | .action("indicator.testplayer1.desktop") |
589 | 471 | .label("TestPlayer1") | 471 | .label("TestPlayer1") |
591 | 472 | .themed_icon("icon", {"testplayer"}) | 472 | .themed_icon("icon", {"testplayer", "testplayer-symbolic"}) |
592 | 473 | .string_attribute("x-canonical-type", "com.canonical.unity.media-player") | 473 | .string_attribute("x-canonical-type", "com.canonical.unity.media-player") |
593 | 474 | ) | 474 | ) |
594 | 475 | .item(mh::MenuItemMatcher() | 475 | .item(mh::MenuItemMatcher() |
595 | @@ -486,7 +486,7 @@ | |||
596 | 486 | ).match()); | 486 | ).match()); |
597 | 487 | } | 487 | } |
598 | 488 | 488 | ||
600 | 489 | TEST_F(TestIndicator, DesktopBasicInitialVolume) | 489 | TEST_F(TestIndicator, DISABLED_DesktopBasicInitialVolume) |
601 | 490 | { | 490 | { |
602 | 491 | double INITIAL_VOLUME = 0.0; | 491 | double INITIAL_VOLUME = 0.0; |
603 | 492 | 492 | ||
604 | @@ -523,7 +523,7 @@ | |||
605 | 523 | .item(mh::MenuItemMatcher() | 523 | .item(mh::MenuItemMatcher() |
606 | 524 | .action("indicator.testplayer1.desktop") | 524 | .action("indicator.testplayer1.desktop") |
607 | 525 | .label("TestPlayer1") | 525 | .label("TestPlayer1") |
609 | 526 | .themed_icon("icon", {"testplayer"}) | 526 | .themed_icon("icon", {"testplayer", "testplayer-symbolic"}) |
610 | 527 | .string_attribute("x-canonical-type", "com.canonical.unity.media-player") | 527 | .string_attribute("x-canonical-type", "com.canonical.unity.media-player") |
611 | 528 | ) | 528 | ) |
612 | 529 | .item(mh::MenuItemMatcher() | 529 | .item(mh::MenuItemMatcher() |
613 | @@ -539,7 +539,7 @@ | |||
614 | 539 | ).match()); | 539 | ).match()); |
615 | 540 | } | 540 | } |
616 | 541 | 541 | ||
618 | 542 | TEST_F(TestIndicator, DesktopAddMprisPlayer) | 542 | TEST_F(TestIndicator, DISABLED_DesktopAddMprisPlayer) |
619 | 543 | { | 543 | { |
620 | 544 | double INITIAL_VOLUME = 0.0; | 544 | double INITIAL_VOLUME = 0.0; |
621 | 545 | 545 | ||
622 | @@ -577,7 +577,7 @@ | |||
623 | 577 | .item(mh::MenuItemMatcher() | 577 | .item(mh::MenuItemMatcher() |
624 | 578 | .action("indicator.testplayer1.desktop") | 578 | .action("indicator.testplayer1.desktop") |
625 | 579 | .label("TestPlayer1") | 579 | .label("TestPlayer1") |
627 | 580 | .themed_icon("icon", {"testplayer"}) | 580 | .themed_icon("icon", {"testplayer", "testplayer-symbolic"}) |
628 | 581 | .string_attribute("x-canonical-type", "com.canonical.unity.media-player") | 581 | .string_attribute("x-canonical-type", "com.canonical.unity.media-player") |
629 | 582 | ) | 582 | ) |
630 | 583 | .item(mh::MenuItemMatcher() | 583 | .item(mh::MenuItemMatcher() |
631 | @@ -614,7 +614,7 @@ | |||
632 | 614 | .item(mh::MenuItemMatcher() | 614 | .item(mh::MenuItemMatcher() |
633 | 615 | .action("indicator.testplayer1.desktop") | 615 | .action("indicator.testplayer1.desktop") |
634 | 616 | .label("TestPlayer1") | 616 | .label("TestPlayer1") |
636 | 617 | .themed_icon("icon", {"testplayer"}) | 617 | .themed_icon("icon", {"testplayer", "testplayer-symbolic"}) |
637 | 618 | .string_attribute("x-canonical-type", "com.canonical.unity.media-player") | 618 | .string_attribute("x-canonical-type", "com.canonical.unity.media-player") |
638 | 619 | ) | 619 | ) |
639 | 620 | .item(mh::MenuItemMatcher() | 620 | .item(mh::MenuItemMatcher() |
640 | @@ -628,7 +628,7 @@ | |||
641 | 628 | ).match()); | 628 | ).match()); |
642 | 629 | } | 629 | } |
643 | 630 | 630 | ||
645 | 631 | TEST_F(TestIndicator, DesktopMprisPlayersPlaybackControls) | 631 | TEST_F(TestIndicator, DISABLED_DesktopMprisPlayersPlaybackControls) |
646 | 632 | { | 632 | { |
647 | 633 | double INITIAL_VOLUME = 0.0; | 633 | double INITIAL_VOLUME = 0.0; |
648 | 634 | 634 | ||
649 | @@ -666,7 +666,7 @@ | |||
650 | 666 | .item(mh::MenuItemMatcher() | 666 | .item(mh::MenuItemMatcher() |
651 | 667 | .action("indicator.testplayer1.desktop") | 667 | .action("indicator.testplayer1.desktop") |
652 | 668 | .label("TestPlayer1") | 668 | .label("TestPlayer1") |
654 | 669 | .themed_icon("icon", {"testplayer"}) | 669 | .themed_icon("icon", {"testplayer", "testplayer-symbolic"}) |
655 | 670 | .string_attribute("x-canonical-type", "com.canonical.unity.media-player") | 670 | .string_attribute("x-canonical-type", "com.canonical.unity.media-player") |
656 | 671 | ) | 671 | ) |
657 | 672 | .item(mh::MenuItemMatcher() | 672 | .item(mh::MenuItemMatcher() |
658 | @@ -704,7 +704,7 @@ | |||
659 | 704 | .item(mh::MenuItemMatcher() | 704 | .item(mh::MenuItemMatcher() |
660 | 705 | .action("indicator.testplayer1.desktop") | 705 | .action("indicator.testplayer1.desktop") |
661 | 706 | .label("TestPlayer1") | 706 | .label("TestPlayer1") |
663 | 707 | .themed_icon("icon", {"testplayer"}) | 707 | .themed_icon("icon", {"testplayer", "testplayer-symbolic"}) |
664 | 708 | .string_attribute("x-canonical-type", "com.canonical.unity.media-player") | 708 | .string_attribute("x-canonical-type", "com.canonical.unity.media-player") |
665 | 709 | ) | 709 | ) |
666 | 710 | .item(mh::MenuItemMatcher() | 710 | .item(mh::MenuItemMatcher() |
667 | @@ -719,7 +719,7 @@ | |||
668 | 719 | .item(mh::MenuItemMatcher() | 719 | .item(mh::MenuItemMatcher() |
669 | 720 | .action("indicator.testplayer2.desktop") | 720 | .action("indicator.testplayer2.desktop") |
670 | 721 | .label("TestPlayer2") | 721 | .label("TestPlayer2") |
672 | 722 | .themed_icon("icon", {"testplayer"}) | 722 | .themed_icon("icon", {"testplayer", "testplayer-symbolic"}) |
673 | 723 | .string_attribute("x-canonical-type", "com.canonical.unity.media-player") | 723 | .string_attribute("x-canonical-type", "com.canonical.unity.media-player") |
674 | 724 | ) | 724 | ) |
675 | 725 | .item(mh::MenuItemMatcher() | 725 | .item(mh::MenuItemMatcher() |
676 | @@ -757,7 +757,7 @@ | |||
677 | 757 | .item(mh::MenuItemMatcher() | 757 | .item(mh::MenuItemMatcher() |
678 | 758 | .action("indicator.testplayer1.desktop") | 758 | .action("indicator.testplayer1.desktop") |
679 | 759 | .label("TestPlayer1") | 759 | .label("TestPlayer1") |
681 | 760 | .themed_icon("icon", {"testplayer"}) | 760 | .themed_icon("icon", {"testplayer", "testplayer-symbolic"}) |
682 | 761 | .string_attribute("x-canonical-type", "com.canonical.unity.media-player") | 761 | .string_attribute("x-canonical-type", "com.canonical.unity.media-player") |
683 | 762 | ) | 762 | ) |
684 | 763 | .item(mh::MenuItemMatcher() | 763 | .item(mh::MenuItemMatcher() |
685 | @@ -772,7 +772,7 @@ | |||
686 | 772 | .item(mh::MenuItemMatcher() | 772 | .item(mh::MenuItemMatcher() |
687 | 773 | .action("indicator.testplayer2.desktop") | 773 | .action("indicator.testplayer2.desktop") |
688 | 774 | .label("TestPlayer2") | 774 | .label("TestPlayer2") |
690 | 775 | .themed_icon("icon", {"testplayer"}) | 775 | .themed_icon("icon", {"testplayer", "testplayer-symbolic"}) |
691 | 776 | .string_attribute("x-canonical-type", "com.canonical.unity.media-player") | 776 | .string_attribute("x-canonical-type", "com.canonical.unity.media-player") |
692 | 777 | ) | 777 | ) |
693 | 778 | .item(mh::MenuItemMatcher() | 778 | .item(mh::MenuItemMatcher() |
694 | @@ -787,7 +787,7 @@ | |||
695 | 787 | .item(mh::MenuItemMatcher() | 787 | .item(mh::MenuItemMatcher() |
696 | 788 | .action("indicator.testplayer3.desktop") | 788 | .action("indicator.testplayer3.desktop") |
697 | 789 | .label("TestPlayer3") | 789 | .label("TestPlayer3") |
699 | 790 | .themed_icon("icon", {"testplayer"}) | 790 | .themed_icon("icon", {"testplayer", "testplayer-symbolic"}) |
700 | 791 | .string_attribute("x-canonical-type", "com.canonical.unity.media-player") | 791 | .string_attribute("x-canonical-type", "com.canonical.unity.media-player") |
701 | 792 | ) | 792 | ) |
702 | 793 | .item(mh::MenuItemMatcher() | 793 | .item(mh::MenuItemMatcher() |
703 | @@ -825,7 +825,7 @@ | |||
704 | 825 | .item(mh::MenuItemMatcher() | 825 | .item(mh::MenuItemMatcher() |
705 | 826 | .action("indicator.testplayer1.desktop") | 826 | .action("indicator.testplayer1.desktop") |
706 | 827 | .label("TestPlayer1") | 827 | .label("TestPlayer1") |
708 | 828 | .themed_icon("icon", {"testplayer"}) | 828 | .themed_icon("icon", {"testplayer", "testplayer-symbolic"}) |
709 | 829 | .string_attribute("x-canonical-type", "com.canonical.unity.media-player") | 829 | .string_attribute("x-canonical-type", "com.canonical.unity.media-player") |
710 | 830 | ) | 830 | ) |
711 | 831 | .item(mh::MenuItemMatcher() | 831 | .item(mh::MenuItemMatcher() |
712 | @@ -840,7 +840,7 @@ | |||
713 | 840 | .item(mh::MenuItemMatcher() | 840 | .item(mh::MenuItemMatcher() |
714 | 841 | .action("indicator.testplayer2.desktop") | 841 | .action("indicator.testplayer2.desktop") |
715 | 842 | .label("TestPlayer2") | 842 | .label("TestPlayer2") |
717 | 843 | .themed_icon("icon", {"testplayer"}) | 843 | .themed_icon("icon", {"testplayer", "testplayer-symbolic"}) |
718 | 844 | .string_attribute("x-canonical-type", "com.canonical.unity.media-player") | 844 | .string_attribute("x-canonical-type", "com.canonical.unity.media-player") |
719 | 845 | ) | 845 | ) |
720 | 846 | .item(mh::MenuItemMatcher() | 846 | .item(mh::MenuItemMatcher() |
721 | @@ -855,7 +855,7 @@ | |||
722 | 855 | .item(mh::MenuItemMatcher() | 855 | .item(mh::MenuItemMatcher() |
723 | 856 | .action("indicator.testplayer3.desktop") | 856 | .action("indicator.testplayer3.desktop") |
724 | 857 | .label("TestPlayer3") | 857 | .label("TestPlayer3") |
726 | 858 | .themed_icon("icon", {"testplayer"}) | 858 | .themed_icon("icon", {"testplayer", "testplayer-symbolic"}) |
727 | 859 | .string_attribute("x-canonical-type", "com.canonical.unity.media-player") | 859 | .string_attribute("x-canonical-type", "com.canonical.unity.media-player") |
728 | 860 | ) | 860 | ) |
729 | 861 | ) | 861 | ) |
730 | @@ -886,7 +886,7 @@ | |||
731 | 886 | .item(mh::MenuItemMatcher() | 886 | .item(mh::MenuItemMatcher() |
732 | 887 | .action("indicator.testplayer1.desktop") | 887 | .action("indicator.testplayer1.desktop") |
733 | 888 | .label("TestPlayer1") | 888 | .label("TestPlayer1") |
735 | 889 | .themed_icon("icon", {"testplayer"}) | 889 | .themed_icon("icon", {"testplayer", "testplayer-symbolic"}) |
736 | 890 | .string_attribute("x-canonical-type", "com.canonical.unity.media-player") | 890 | .string_attribute("x-canonical-type", "com.canonical.unity.media-player") |
737 | 891 | ) | 891 | ) |
738 | 892 | .item(mh::MenuItemMatcher() | 892 | .item(mh::MenuItemMatcher() |
739 | @@ -901,7 +901,7 @@ | |||
740 | 901 | .item(mh::MenuItemMatcher() | 901 | .item(mh::MenuItemMatcher() |
741 | 902 | .action("indicator.testplayer2.desktop") | 902 | .action("indicator.testplayer2.desktop") |
742 | 903 | .label("TestPlayer2") | 903 | .label("TestPlayer2") |
744 | 904 | .themed_icon("icon", {"testplayer"}) | 904 | .themed_icon("icon", {"testplayer", "testplayer-symbolic"}) |
745 | 905 | .string_attribute("x-canonical-type", "com.canonical.unity.media-player") | 905 | .string_attribute("x-canonical-type", "com.canonical.unity.media-player") |
746 | 906 | ) | 906 | ) |
747 | 907 | ) | 907 | ) |
748 | @@ -910,7 +910,7 @@ | |||
749 | 910 | .item(mh::MenuItemMatcher() | 910 | .item(mh::MenuItemMatcher() |
750 | 911 | .action("indicator.testplayer3.desktop") | 911 | .action("indicator.testplayer3.desktop") |
751 | 912 | .label("TestPlayer3") | 912 | .label("TestPlayer3") |
753 | 913 | .themed_icon("icon", {"testplayer"}) | 913 | .themed_icon("icon", {"testplayer", "testplayer-symbolic"}) |
754 | 914 | .string_attribute("x-canonical-type", "com.canonical.unity.media-player") | 914 | .string_attribute("x-canonical-type", "com.canonical.unity.media-player") |
755 | 915 | ) | 915 | ) |
756 | 916 | ) | 916 | ) |
757 | @@ -942,7 +942,7 @@ | |||
758 | 942 | .item(mh::MenuItemMatcher() | 942 | .item(mh::MenuItemMatcher() |
759 | 943 | .action("indicator.testplayer1.desktop") | 943 | .action("indicator.testplayer1.desktop") |
760 | 944 | .label("TestPlayer1") | 944 | .label("TestPlayer1") |
762 | 945 | .themed_icon("icon", {"testplayer"}) | 945 | .themed_icon("icon", {"testplayer", "testplayer-symbolic"}) |
763 | 946 | .string_attribute("x-canonical-type", "com.canonical.unity.media-player") | 946 | .string_attribute("x-canonical-type", "com.canonical.unity.media-player") |
764 | 947 | ) | 947 | ) |
765 | 948 | .item(mh::MenuItemMatcher() | 948 | .item(mh::MenuItemMatcher() |
766 | @@ -957,7 +957,7 @@ | |||
767 | 957 | .item(mh::MenuItemMatcher() | 957 | .item(mh::MenuItemMatcher() |
768 | 958 | .action("indicator.testplayer2.desktop") | 958 | .action("indicator.testplayer2.desktop") |
769 | 959 | .label("TestPlayer2") | 959 | .label("TestPlayer2") |
771 | 960 | .themed_icon("icon", {"testplayer"}) | 960 | .themed_icon("icon", {"testplayer", "testplayer-symbolic"}) |
772 | 961 | .string_attribute("x-canonical-type", "com.canonical.unity.media-player") | 961 | .string_attribute("x-canonical-type", "com.canonical.unity.media-player") |
773 | 962 | ) | 962 | ) |
774 | 963 | ) | 963 | ) |
775 | @@ -966,7 +966,7 @@ | |||
776 | 966 | .item(mh::MenuItemMatcher() | 966 | .item(mh::MenuItemMatcher() |
777 | 967 | .action("indicator.testplayer3.desktop") | 967 | .action("indicator.testplayer3.desktop") |
778 | 968 | .label("TestPlayer3") | 968 | .label("TestPlayer3") |
780 | 969 | .themed_icon("icon", {"testplayer"}) | 969 | .themed_icon("icon", {"testplayer", "testplayer-symbolic"}) |
781 | 970 | .string_attribute("x-canonical-type", "com.canonical.unity.media-player") | 970 | .string_attribute("x-canonical-type", "com.canonical.unity.media-player") |
782 | 971 | ) | 971 | ) |
783 | 972 | ) | 972 | ) |
784 | @@ -998,7 +998,7 @@ | |||
785 | 998 | .item(mh::MenuItemMatcher() | 998 | .item(mh::MenuItemMatcher() |
786 | 999 | .action("indicator.testplayer1.desktop") | 999 | .action("indicator.testplayer1.desktop") |
787 | 1000 | .label("TestPlayer1") | 1000 | .label("TestPlayer1") |
789 | 1001 | .themed_icon("icon", {"testplayer"}) | 1001 | .themed_icon("icon", {"testplayer", "testplayer-symbolic"}) |
790 | 1002 | .string_attribute("x-canonical-type", "com.canonical.unity.media-player") | 1002 | .string_attribute("x-canonical-type", "com.canonical.unity.media-player") |
791 | 1003 | ) | 1003 | ) |
792 | 1004 | ) | 1004 | ) |
793 | @@ -1007,7 +1007,7 @@ | |||
794 | 1007 | .item(mh::MenuItemMatcher() | 1007 | .item(mh::MenuItemMatcher() |
795 | 1008 | .action("indicator.testplayer2.desktop") | 1008 | .action("indicator.testplayer2.desktop") |
796 | 1009 | .label("TestPlayer2") | 1009 | .label("TestPlayer2") |
798 | 1010 | .themed_icon("icon", {"testplayer"}) | 1010 | .themed_icon("icon", {"testplayer", "testplayer-symbolic"}) |
799 | 1011 | .string_attribute("x-canonical-type", "com.canonical.unity.media-player") | 1011 | .string_attribute("x-canonical-type", "com.canonical.unity.media-player") |
800 | 1012 | ) | 1012 | ) |
801 | 1013 | ) | 1013 | ) |
802 | @@ -1016,7 +1016,7 @@ | |||
803 | 1016 | .item(mh::MenuItemMatcher() | 1016 | .item(mh::MenuItemMatcher() |
804 | 1017 | .action("indicator.testplayer3.desktop") | 1017 | .action("indicator.testplayer3.desktop") |
805 | 1018 | .label("TestPlayer3") | 1018 | .label("TestPlayer3") |
807 | 1019 | .themed_icon("icon", {"testplayer"}) | 1019 | .themed_icon("icon", {"testplayer", "testplayer-symbolic"}) |
808 | 1020 | .string_attribute("x-canonical-type", "com.canonical.unity.media-player") | 1020 | .string_attribute("x-canonical-type", "com.canonical.unity.media-player") |
809 | 1021 | ) | 1021 | ) |
810 | 1022 | .item(mh::MenuItemMatcher() | 1022 | .item(mh::MenuItemMatcher() |
811 | @@ -1054,7 +1054,7 @@ | |||
812 | 1054 | .item(mh::MenuItemMatcher() | 1054 | .item(mh::MenuItemMatcher() |
813 | 1055 | .action("indicator.testplayer1.desktop") | 1055 | .action("indicator.testplayer1.desktop") |
814 | 1056 | .label("TestPlayer1") | 1056 | .label("TestPlayer1") |
816 | 1057 | .themed_icon("icon", {"testplayer"}) | 1057 | .themed_icon("icon", {"testplayer", "testplayer-symbolic"}) |
817 | 1058 | .string_attribute("x-canonical-type", "com.canonical.unity.media-player") | 1058 | .string_attribute("x-canonical-type", "com.canonical.unity.media-player") |
818 | 1059 | ) | 1059 | ) |
819 | 1060 | .item(mh::MenuItemMatcher() | 1060 | .item(mh::MenuItemMatcher() |
820 | @@ -1069,7 +1069,7 @@ | |||
821 | 1069 | .item(mh::MenuItemMatcher() | 1069 | .item(mh::MenuItemMatcher() |
822 | 1070 | .action("indicator.testplayer2.desktop") | 1070 | .action("indicator.testplayer2.desktop") |
823 | 1071 | .label("TestPlayer2") | 1071 | .label("TestPlayer2") |
825 | 1072 | .themed_icon("icon", {"testplayer"}) | 1072 | .themed_icon("icon", {"testplayer", "testplayer-symbolic"}) |
826 | 1073 | .string_attribute("x-canonical-type", "com.canonical.unity.media-player") | 1073 | .string_attribute("x-canonical-type", "com.canonical.unity.media-player") |
827 | 1074 | ) | 1074 | ) |
828 | 1075 | .item(mh::MenuItemMatcher() | 1075 | .item(mh::MenuItemMatcher() |
829 | @@ -1084,7 +1084,7 @@ | |||
830 | 1084 | .item(mh::MenuItemMatcher() | 1084 | .item(mh::MenuItemMatcher() |
831 | 1085 | .action("indicator.testplayer3.desktop") | 1085 | .action("indicator.testplayer3.desktop") |
832 | 1086 | .label("TestPlayer3") | 1086 | .label("TestPlayer3") |
834 | 1087 | .themed_icon("icon", {"testplayer"}) | 1087 | .themed_icon("icon", {"testplayer", "testplayer-symbolic"}) |
835 | 1088 | .string_attribute("x-canonical-type", "com.canonical.unity.media-player") | 1088 | .string_attribute("x-canonical-type", "com.canonical.unity.media-player") |
836 | 1089 | ) | 1089 | ) |
837 | 1090 | .item(mh::MenuItemMatcher() | 1090 | .item(mh::MenuItemMatcher() |
838 | @@ -1125,7 +1125,7 @@ | |||
839 | 1125 | .item(mh::MenuItemMatcher() | 1125 | .item(mh::MenuItemMatcher() |
840 | 1126 | .action("indicator.testplayer1.desktop") | 1126 | .action("indicator.testplayer1.desktop") |
841 | 1127 | .label("TestPlayer1") | 1127 | .label("TestPlayer1") |
843 | 1128 | .themed_icon("icon", {"testplayer"}) | 1128 | .themed_icon("icon", {"testplayer", "testplayer-symbolic"}) |
844 | 1129 | .string_attribute("x-canonical-type", "com.canonical.unity.media-player") | 1129 | .string_attribute("x-canonical-type", "com.canonical.unity.media-player") |
845 | 1130 | ) | 1130 | ) |
846 | 1131 | ) | 1131 | ) |
847 | @@ -1134,7 +1134,7 @@ | |||
848 | 1134 | .item(mh::MenuItemMatcher() | 1134 | .item(mh::MenuItemMatcher() |
849 | 1135 | .action("indicator.testplayer2.desktop") | 1135 | .action("indicator.testplayer2.desktop") |
850 | 1136 | .label("TestPlayer2") | 1136 | .label("TestPlayer2") |
852 | 1137 | .themed_icon("icon", {"testplayer"}) | 1137 | .themed_icon("icon", {"testplayer", "testplayer-symbolic"}) |
853 | 1138 | .string_attribute("x-canonical-type", "com.canonical.unity.media-player") | 1138 | .string_attribute("x-canonical-type", "com.canonical.unity.media-player") |
854 | 1139 | ) | 1139 | ) |
855 | 1140 | ) | 1140 | ) |
856 | @@ -1143,7 +1143,7 @@ | |||
857 | 1143 | .item(mh::MenuItemMatcher() | 1143 | .item(mh::MenuItemMatcher() |
858 | 1144 | .action("indicator.testplayer3.desktop") | 1144 | .action("indicator.testplayer3.desktop") |
859 | 1145 | .label("TestPlayer3") | 1145 | .label("TestPlayer3") |
861 | 1146 | .themed_icon("icon", {"testplayer"}) | 1146 | .themed_icon("icon", {"testplayer", "testplayer-symbolic"}) |
862 | 1147 | .string_attribute("x-canonical-type", "com.canonical.unity.media-player") | 1147 | .string_attribute("x-canonical-type", "com.canonical.unity.media-player") |
863 | 1148 | ) | 1148 | ) |
864 | 1149 | .item(mh::MenuItemMatcher() | 1149 | .item(mh::MenuItemMatcher() |
865 | @@ -1185,7 +1185,7 @@ | |||
866 | 1185 | .item(mh::MenuItemMatcher() | 1185 | .item(mh::MenuItemMatcher() |
867 | 1186 | .action("indicator.testplayer3.desktop") | 1186 | .action("indicator.testplayer3.desktop") |
868 | 1187 | .label("TestPlayer3") | 1187 | .label("TestPlayer3") |
870 | 1188 | .themed_icon("icon", {"testplayer"}) | 1188 | .themed_icon("icon", {"testplayer", "testplayer-symbolic"}) |
871 | 1189 | .string_attribute("x-canonical-type", "com.canonical.unity.media-player") | 1189 | .string_attribute("x-canonical-type", "com.canonical.unity.media-player") |
872 | 1190 | ) | 1190 | ) |
873 | 1191 | .item(mh::MenuItemMatcher() | 1191 | .item(mh::MenuItemMatcher() |
874 | @@ -1198,7 +1198,7 @@ | |||
875 | 1198 | .item(mh::MenuItemMatcher() | 1198 | .item(mh::MenuItemMatcher() |
876 | 1199 | .action("indicator.testplayer1.desktop") | 1199 | .action("indicator.testplayer1.desktop") |
877 | 1200 | .label("TestPlayer1") | 1200 | .label("TestPlayer1") |
879 | 1201 | .themed_icon("icon", {"testplayer"}) | 1201 | .themed_icon("icon", {"testplayer", "testplayer-symbolic"}) |
880 | 1202 | .string_attribute("x-canonical-type", "com.canonical.unity.media-player") | 1202 | .string_attribute("x-canonical-type", "com.canonical.unity.media-player") |
881 | 1203 | ) | 1203 | ) |
882 | 1204 | ) | 1204 | ) |
883 | @@ -1207,7 +1207,7 @@ | |||
884 | 1207 | .item(mh::MenuItemMatcher() | 1207 | .item(mh::MenuItemMatcher() |
885 | 1208 | .action("indicator.testplayer2.desktop") | 1208 | .action("indicator.testplayer2.desktop") |
886 | 1209 | .label("TestPlayer2") | 1209 | .label("TestPlayer2") |
888 | 1210 | .themed_icon("icon", {"testplayer"}) | 1210 | .themed_icon("icon", {"testplayer", "testplayer-symbolic"}) |
889 | 1211 | .string_attribute("x-canonical-type", "com.canonical.unity.media-player") | 1211 | .string_attribute("x-canonical-type", "com.canonical.unity.media-player") |
890 | 1212 | ) | 1212 | ) |
891 | 1213 | ) | 1213 | ) |
892 | @@ -1218,7 +1218,7 @@ | |||
893 | 1218 | 1218 | ||
894 | 1219 | } | 1219 | } |
895 | 1220 | 1220 | ||
897 | 1221 | TEST_F(TestIndicator, DesktopMprisPlayerButtonsState) | 1221 | TEST_F(TestIndicator, DISABLED_DesktopMprisPlayerButtonsState) |
898 | 1222 | { | 1222 | { |
899 | 1223 | double INITIAL_VOLUME = 0.0; | 1223 | double INITIAL_VOLUME = 0.0; |
900 | 1224 | 1224 | ||
901 | @@ -1256,7 +1256,7 @@ | |||
902 | 1256 | .item(mh::MenuItemMatcher() | 1256 | .item(mh::MenuItemMatcher() |
903 | 1257 | .action("indicator.testplayer1.desktop") | 1257 | .action("indicator.testplayer1.desktop") |
904 | 1258 | .label("TestPlayer1") | 1258 | .label("TestPlayer1") |
906 | 1259 | .themed_icon("icon", {"testplayer"}) | 1259 | .themed_icon("icon", {"testplayer", "testplayer-symbolic"}) |
907 | 1260 | .string_attribute("x-canonical-type", "com.canonical.unity.media-player") | 1260 | .string_attribute("x-canonical-type", "com.canonical.unity.media-player") |
908 | 1261 | ) | 1261 | ) |
909 | 1262 | .item(mh::MenuItemMatcher() | 1262 | .item(mh::MenuItemMatcher() |
910 | @@ -1294,7 +1294,7 @@ | |||
911 | 1294 | .item(mh::MenuItemMatcher() | 1294 | .item(mh::MenuItemMatcher() |
912 | 1295 | .action("indicator.testplayer1.desktop") | 1295 | .action("indicator.testplayer1.desktop") |
913 | 1296 | .label("TestPlayer1") | 1296 | .label("TestPlayer1") |
915 | 1297 | .themed_icon("icon", {"testplayer"}) | 1297 | .themed_icon("icon", {"testplayer", "testplayer-symbolic"}) |
916 | 1298 | .string_attribute("x-canonical-type", "com.canonical.unity.media-player") | 1298 | .string_attribute("x-canonical-type", "com.canonical.unity.media-player") |
917 | 1299 | ) | 1299 | ) |
918 | 1300 | .item(mh::MenuItemMatcher() | 1300 | .item(mh::MenuItemMatcher() |
919 | @@ -1333,7 +1333,7 @@ | |||
920 | 1333 | .item(mh::MenuItemMatcher() | 1333 | .item(mh::MenuItemMatcher() |
921 | 1334 | .action("indicator.testplayer1.desktop") | 1334 | .action("indicator.testplayer1.desktop") |
922 | 1335 | .label("TestPlayer1") | 1335 | .label("TestPlayer1") |
924 | 1336 | .themed_icon("icon", {"testplayer"}) | 1336 | .themed_icon("icon", {"testplayer", "testplayer-symbolic"}) |
925 | 1337 | .string_attribute("x-canonical-type", "com.canonical.unity.media-player") | 1337 | .string_attribute("x-canonical-type", "com.canonical.unity.media-player") |
926 | 1338 | ) | 1338 | ) |
927 | 1339 | .item(mh::MenuItemMatcher() | 1339 | .item(mh::MenuItemMatcher() |
928 | @@ -1371,7 +1371,7 @@ | |||
929 | 1371 | .item(mh::MenuItemMatcher() | 1371 | .item(mh::MenuItemMatcher() |
930 | 1372 | .action("indicator.testplayer1.desktop") | 1372 | .action("indicator.testplayer1.desktop") |
931 | 1373 | .label("TestPlayer1") | 1373 | .label("TestPlayer1") |
933 | 1374 | .themed_icon("icon", {"testplayer"}) | 1374 | .themed_icon("icon", {"testplayer", "testplayer-symbolic"}) |
934 | 1375 | .string_attribute("x-canonical-type", "com.canonical.unity.media-player") | 1375 | .string_attribute("x-canonical-type", "com.canonical.unity.media-player") |
935 | 1376 | ) | 1376 | ) |
936 | 1377 | .item(mh::MenuItemMatcher() | 1377 | .item(mh::MenuItemMatcher() |
937 | @@ -1387,7 +1387,7 @@ | |||
938 | 1387 | ).match()); | 1387 | ).match()); |
939 | 1388 | } | 1388 | } |
940 | 1389 | 1389 | ||
942 | 1390 | TEST_F(TestIndicator, DesktopChangeRoleVolume) | 1390 | TEST_F(TestIndicator, DISABLED_DesktopChangeRoleVolume) |
943 | 1391 | { | 1391 | { |
944 | 1392 | double INITIAL_VOLUME = 0.0; | 1392 | double INITIAL_VOLUME = 0.0; |
945 | 1393 | 1393 | ||
946 | 1394 | 1394 | ||
947 | === modified file 'tests/notifications-test.cc' | |||
948 | --- tests/notifications-test.cc 2017-08-04 11:51:07 +0000 | |||
949 | +++ tests/notifications-test.cc 2021-09-29 20:46:45 +0000 | |||
950 | @@ -227,7 +227,7 @@ | |||
951 | 227 | 227 | ||
952 | 228 | }; | 228 | }; |
953 | 229 | 229 | ||
955 | 230 | TEST_F(NotificationsTest, BasicObject) { | 230 | TEST_F(NotificationsTest, DISABLED_BasicObject) { |
956 | 231 | auto options = optionsMock(); | 231 | auto options = optionsMock(); |
957 | 232 | auto volumeControl = volumeControlMock(options); | 232 | auto volumeControl = volumeControlMock(options); |
958 | 233 | auto volumeWarning = volumeWarningMock(options); | 233 | auto volumeWarning = volumeWarningMock(options); |
959 | @@ -240,7 +240,7 @@ | |||
960 | 240 | /* Auto free */ | 240 | /* Auto free */ |
961 | 241 | } | 241 | } |
962 | 242 | 242 | ||
964 | 243 | TEST_F(NotificationsTest, VolumeChanges) { | 243 | TEST_F(NotificationsTest, DISABLED_VolumeChanges) { |
965 | 244 | auto options = optionsMock(); | 244 | auto options = optionsMock(); |
966 | 245 | auto volumeControl = volumeControlMock(options); | 245 | auto volumeControl = volumeControlMock(options); |
967 | 246 | auto volumeWarning = volumeWarningMock(options); | 246 | auto volumeWarning = volumeWarningMock(options); |
968 | @@ -282,7 +282,7 @@ | |||
969 | 282 | ASSERT_EQ(0, notev.size()); | 282 | ASSERT_EQ(0, notev.size()); |
970 | 283 | } | 283 | } |
971 | 284 | 284 | ||
973 | 285 | TEST_F(NotificationsTest, StreamChanges) { | 285 | TEST_F(NotificationsTest, DISABLED_StreamChanges) { |
974 | 286 | auto options = optionsMock(); | 286 | auto options = optionsMock(); |
975 | 287 | auto volumeControl = volumeControlMock(options); | 287 | auto volumeControl = volumeControlMock(options); |
976 | 288 | auto volumeWarning = volumeWarningMock(options); | 288 | auto volumeWarning = volumeWarningMock(options); |
977 | @@ -323,7 +323,7 @@ | |||
978 | 323 | EXPECT_GVARIANT_EQ("@i 65", notev[0].hints["value"]); | 323 | EXPECT_GVARIANT_EQ("@i 65", notev[0].hints["value"]); |
979 | 324 | } | 324 | } |
980 | 325 | 325 | ||
982 | 326 | TEST_F(NotificationsTest, IconTesting) { | 326 | TEST_F(NotificationsTest, DISABLED_IconTesting) { |
983 | 327 | auto options = optionsMock(); | 327 | auto options = optionsMock(); |
984 | 328 | auto volumeControl = volumeControlMock(options); | 328 | auto volumeControl = volumeControlMock(options); |
985 | 329 | auto volumeWarning = volumeWarningMock(options); | 329 | auto volumeWarning = volumeWarningMock(options); |
986 | @@ -360,7 +360,7 @@ | |||
987 | 360 | EXPECT_EQ("audio-volume-high", notev[10].app_icon); | 360 | EXPECT_EQ("audio-volume-high", notev[10].app_icon); |
988 | 361 | } | 361 | } |
989 | 362 | 362 | ||
991 | 363 | TEST_F(NotificationsTest, ServerRestart) { | 363 | TEST_F(NotificationsTest, DISABLED_ServerRestart) { |
992 | 364 | auto options = optionsMock(); | 364 | auto options = optionsMock(); |
993 | 365 | auto volumeControl = volumeControlMock(options); | 365 | auto volumeControl = volumeControlMock(options); |
994 | 366 | auto volumeWarning = volumeWarningMock(options); | 366 | auto volumeWarning = volumeWarningMock(options); |
995 | @@ -410,7 +410,7 @@ | |||
996 | 410 | ASSERT_EQ(1, notev.size()); | 410 | ASSERT_EQ(1, notev.size()); |
997 | 411 | } | 411 | } |
998 | 412 | 412 | ||
1000 | 413 | TEST_F(NotificationsTest, HighVolume) { | 413 | TEST_F(NotificationsTest, DISABLED_HighVolume) { |
1001 | 414 | auto options = optionsMock(); | 414 | auto options = optionsMock(); |
1002 | 415 | auto volumeControl = volumeControlMock(options); | 415 | auto volumeControl = volumeControlMock(options); |
1003 | 416 | auto volumeWarning = volumeWarningMock(options); | 416 | auto volumeWarning = volumeWarningMock(options); |
1004 | @@ -455,7 +455,7 @@ | |||
1005 | 455 | EXPECT_GVARIANT_EQ("@s 'true'", notev[0].hints["x-canonical-value-bar-tint"]); | 455 | EXPECT_GVARIANT_EQ("@s 'true'", notev[0].hints["x-canonical-value-bar-tint"]); |
1006 | 456 | } | 456 | } |
1007 | 457 | 457 | ||
1009 | 458 | TEST_F(NotificationsTest, MenuHide) { | 458 | TEST_F(NotificationsTest, DISABLED_MenuHide) { |
1010 | 459 | auto options = optionsMock(); | 459 | auto options = optionsMock(); |
1011 | 460 | auto volumeControl = volumeControlMock(options); | 460 | auto volumeControl = volumeControlMock(options); |
1012 | 461 | auto volumeWarning = volumeWarningMock(options); | 461 | auto volumeWarning = volumeWarningMock(options); |
1013 | @@ -488,7 +488,7 @@ | |||
1014 | 488 | EXPECT_EQ(1, notev.size()); | 488 | EXPECT_EQ(1, notev.size()); |
1015 | 489 | } | 489 | } |
1016 | 490 | 490 | ||
1018 | 491 | TEST_F(NotificationsTest, ExtendendVolumeNotification) { | 491 | TEST_F(NotificationsTest, DISABLED_ExtendendVolumeNotification) { |
1019 | 492 | auto options = optionsMock(); | 492 | auto options = optionsMock(); |
1020 | 493 | auto volumeControl = volumeControlMock(options); | 493 | auto volumeControl = volumeControlMock(options); |
1021 | 494 | auto volumeWarning = volumeWarningMock(options); | 494 | auto volumeWarning = volumeWarningMock(options); |
1022 | @@ -533,7 +533,7 @@ | |||
1023 | 533 | EXPECT_GVARIANT_EQ("@i 100", notev[0].hints["value"]); | 533 | EXPECT_GVARIANT_EQ("@i 100", notev[0].hints["value"]); |
1024 | 534 | } | 534 | } |
1025 | 535 | 535 | ||
1027 | 536 | TEST_F(NotificationsTest, TriggerWarning) { | 536 | TEST_F(NotificationsTest, DISABLED_TriggerWarning) { |
1028 | 537 | 537 | ||
1029 | 538 | // Tests all the conditions needed to trigger a volume warning. | 538 | // Tests all the conditions needed to trigger a volume warning. |
1030 | 539 | // There are many possible combinations, so this test is slow. :P | 539 | // There are many possible combinations, so this test is slow. :P |
1031 | 540 | 540 | ||
1032 | === modified file 'tests/volume-control-test.cc' | |||
1033 | --- tests/volume-control-test.cc 2016-02-23 12:48:46 +0000 | |||
1034 | +++ tests/volume-control-test.cc 2021-09-29 20:46:45 +0000 | |||
1035 | @@ -75,7 +75,7 @@ | |||
1036 | 75 | } | 75 | } |
1037 | 76 | }; | 76 | }; |
1038 | 77 | 77 | ||
1040 | 78 | TEST_F(VolumeControlTest, BasicObject) { | 78 | TEST_F(VolumeControlTest, DISABLED_BasicObject) { |
1041 | 79 | auto options = options_mock_new(); | 79 | auto options = options_mock_new(); |
1042 | 80 | auto pgloop = pa_glib_mainloop_new(NULL); | 80 | auto pgloop = pa_glib_mainloop_new(NULL); |
1043 | 81 | auto accounts_service_access = accounts_service_access_new(); | 81 | auto accounts_service_access = accounts_service_access_new(); |
In general this looks good to me, thanks!