Merge lp:~khurshid-alam/indicator-sound/fix-build-impish into lp:indicator-sound

Proposed by Khurshid Alam
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
Reviewer Review Type Date Requested Status
Gunnar Hjalmarsson Approve
Review via email: mp+409379@code.launchpad.net

Commit message

* Fix build against vala > 48 & vala >= 50

* Add symbolic icons to the tests

* Avoid possible null value in Greeterlist and GreeterBroadcast object.

  See https://github.com/AyatanaIndicators/ayatana-indicator-sound/commit/8df9168f5587cfd31e0bf6a4170a4c4f9784dbb7

* Fix build against GLib > 2.64: Replace HashTable with GenericSet

* Fix static member access

* Drop deprecated DBusProxy.create_for_bus

* 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://bugs.launchpad.net/bugs/1921781

* 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://bazaar.launchpad.net/~indicator-applet-developers/indicator-sound/trunk.16.10/revision/564

* Unit Tests: Disable indicator tests that can not be fixed now. These tests needs to be re-enabled later
   - tests/indicator-test.cc:PhoneMenu
   - tests/indicator-test.cc:DesktopMenu
   - tests/indicator-test.cc:BaseActions
   - tests/integration/test-indicator.cpp:All tests
   - tests/volume-control-test.cc:BasicObject

* 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.

To post a comment you must log in.
Revision history for this message
Dmitry Shachnev (mitya57) wrote :

In general this looks good to me, thanks!

Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

I built it successfully on multiple archs:

https://launchpad.net/~gunnarhj/+archive/ubuntu/indicator-sound/+packages

So I'm ready to sponsor provided that you

* address Dmitry's questions/suggestions, and

* summarize the changes in a proper d/changelog entry.

review: Needs Fixing
584. By Khurshid Alam

Keep dependency order sorted. Remove empty lines

Revision history for this message
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.

Revision history for this message
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

Revision history for this message
Khurshid Alam (khurshid-alam) wrote :

Alright. I have updated the changelog.

Revision history for this message
Gunnar Hjalmarsson (gunnarhj) wrote :

Thanks! Merged and uploaded.

review: Approve

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
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+indicator-sound (12.10.2+18.10.20180612-0ubuntu4) impish; urgency=medium
6+
7+ * Fix build against vala > 48 & vala >= 50
8+
9+ * Add symbolic icons to the tests
10+
11+ * Avoid possible null value in Greeterlist and GreeterBroadcast object.
12+ See https://github.com/AyatanaIndicators/ayatana-indicator-sound/commit/8df9168f5587cfd31e0bf6a4170a4c4f9784dbb7
13+
14+ * Fix build against GLib > 2.64: Replace HashTable with GenericSet
15+
16+ * Fix static member access
17+
18+ * Drop deprecated DBusProxy.create_for_bus
19+
20+ * Add libdbustest-1 include path
21+
22+ * Unit Tests: Unset environment variable and session bus in teardown
23+
24+ * debian/control: Remove qt5-default & add libgmock-dev in build depends. See https://bugs.launchpad.net/bugs/1921781
25+
26+ * Unit Tests: The desktop pulseaudio daemon also needs the stream-restore module these days
27+
28+ * 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+
30+ * Unit Tests: Disable indicator tests that can not be fixed now. These tests needs to be re-enabled later
31+ - tests/indicator-test.cc:PhoneMenu
32+ - tests/indicator-test.cc:DesktopMenu
33+ - tests/indicator-test.cc:BaseActions
34+ - tests/integration/test-indicator.cpp:All tests
35+ - tests/volume-control-test.cc:BasicObject
36+
37+ * debian/rules: Re enable live tests logs
38+
39+ -- Khurshid Alam <khurshid.alam@linuxmail.org> Thu, 30 Sep 2021 02:12:26 +0530
40+
41 indicator-sound (12.10.2+18.10.20180612-0ubuntu3) groovy; urgency=medium
42
43 * Drop url-dispatcher based Unity8 support. ubuntu-app-launch &
44
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 libdbustest1-dev (>= 15.04.0),
50 libgirepository1.0-dev,
51 libglib2.0-dev (>= 2.32.0),
52+ libgmock-dev,
53 libqtdbusmock1-dev (>= 0.3),
54 libqtdbustest1-dev,
55 libunity-api-dev,
56@@ -32,7 +33,6 @@
57 libxml2-dev,
58 pulseaudio,
59 python3-dbusmock,
60- qt5-default,
61 qtbase5-dev,
62 qtbase5-dev-tools,
63 qtdeclarative5-dev,
64
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 install -m 644 debian/indicator-sound-crashdb.conf debian/indicator-sound/etc/apport/crashdb.conf.d/
70 dh_install --fail-missing
71
72+# For live test logs:
73 override_dh_auto_test:
74- -timeout 10m dh_auto_test
75+ ARGS=-V dh_auto_test
76
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 accounts-service
82 OPTIONS
83 --ccode
84- --thread
85 --target-glib=${GLIB_2_0_REQUIRED_VERSION}
86 --vapidir=${CMAKE_SOURCE_DIR}/vapi/
87 --vapidir=.
88
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 [DBus (name="com.canonical.UnityGreeter.List")]
94 interface GreeterListInterfaceAccess : Object
95 {
96- public abstract async string get_active_entry () throws IOError;
97+ public abstract async string get_active_entry () throws GLib.DBusError, GLib.IOError;
98 public signal void entry_selected (string entry_name);
99 }
100
101@@ -130,7 +130,7 @@
102 // Get master AccountsService object
103 DBusProxy accounts_proxy;
104 try {
105- 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");
106+ 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 } catch (GLib.Error e) {
108 warning ("unable to get greeter proxy: %s", e.message);
109 return;
110@@ -142,7 +142,7 @@
111 string user_path;
112 if (user_path_variant.check_format_string ("(o)", true)) {
113 user_path_variant.get ("(o)", out user_path);
114- _user_proxy = yield DBusProxy.create_for_bus (BusType.SYSTEM, DBusProxyFlags.GET_INVALIDATED_PROPERTIES, null, "org.freedesktop.Accounts", user_path, "com.ubuntu.AccountsService.Sound");
115+ _user_proxy = yield new DBusProxy.for_bus (BusType.SYSTEM, DBusProxyFlags.GET_INVALIDATED_PROPERTIES, null, "org.freedesktop.Accounts", user_path, "com.ubuntu.AccountsService.Sound");
116 } else {
117 warning ("Unable to find user name after calling FindUserByName. Expected type: %s and obtained %s", "(o)", user_path_variant.get_type_string () );
118 return;
119
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
125 [DBus (name = "org.freedesktop.DBus")]
126 public interface FreeDesktopObject: Object {
127- public abstract async string[] list_names() throws IOError;
128+ public abstract async string[] list_names() throws GLib.DBusError, GLib.IOError;
129 public abstract signal void name_owner_changed ( string name,
130 string old_owner,
131 string new_owner );
132@@ -27,7 +27,7 @@
133
134 [DBus (name = "org.freedesktop.DBus.Introspectable")]
135 public interface FreeDesktopIntrospectable: Object {
136- public abstract string Introspect() throws IOError;
137+ public abstract string Introspect() throws GLib.DBusError, GLib.IOError;
138 }
139
140 [DBus (name = "org.freedesktop.DBus.Properties")]
141
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 [DBus (name = "com.canonical.Unity.Greeter.Broadcast")]
147 public interface GreeterBroadcast : Object {
148 // methods
149- // unused public abstract async void RequestApplicationStart(string name, string appid) throws IOError;
150- // unused public abstract async void RequestHomeShown(string name) throws IOError;
151- public abstract async void RequestSoundPlayPause(string name) throws IOError;
152- public abstract async void RequestSoundNext(string name) throws IOError;
153- public abstract async void RequestSoundPrev(string name) throws IOError;
154+ // unused public abstract async void RequestApplicationStart(string name, string appid) throws GLib.Error;
155+ // unused public abstract async void RequestHomeShown(string name) throws GLib.Error;
156+ public abstract async void RequestSoundPlayPause(string name) throws GLib.DBusError, GLib.IOError;
157+ public abstract async void RequestSoundNext(string name) throws GLib.DBusError, GLib.IOError;
158+ public abstract async void RequestSoundPrev(string name) throws GLib.DBusError, GLib.IOError;
159 // signals
160 // unused public signal void StartApplication(string username, string appid);
161 // unused public signal void ShowHome(string username);
162
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
168 [DBus (name="com.canonical.UnityGreeter.List")]
169 public interface UnityGreeterList : Object {
170- public abstract async string get_active_entry () throws IOError;
171+ public abstract async string get_active_entry () throws GLib.DBusError, GLib.IOError;
172 public signal void entry_selected (string entry_name);
173 }
174
175@@ -45,8 +45,12 @@
176 this.proxy.entry_selected.connect(active_user_changed);
177 this.proxy.get_active_entry.begin ((obj, res) => {
178 try {
179- var value = (obj as UnityGreeterList).get_active_entry.end(res);
180- active_user_changed(value);
181+ var list = (obj as UnityGreeterList);
182+
183+ if (list != null) {
184+ var value = list.get_active_entry.end(res);
185+ active_user_changed(value);
186+ }
187 } catch (Error e) {
188 warning("Unable to get active entry: %s", e.message);
189 }
190
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 public override void sync (string[] desktop_ids) {
196
197 /* hash desktop_ids for faster lookup */
198- var hash = new HashTable<string, unowned string> (str_hash, str_equal);
199+ var hash = new GenericSet<string> (str_hash, str_equal);
200 foreach (var id in desktop_ids)
201 hash.add (id);
202
203
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 this.state = "Launching";
209 }
210 else if (this.root != null && this.root.CanRaise) {
211- this.root.Raise ();
212+ this.root.Raise.begin ();
213 }
214 }
215 catch (Error e) {
216
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 if (this.greeter != null) {
222 this.greeter.RequestSoundPlayPause.begin(this.username, (obj, res) => {
223 try {
224- (obj as GreeterBroadcast).RequestSoundPlayPause.end(res);
225+ var broadcasts = (obj as GreeterBroadcast);
226+
227+ if (broadcasts != null) {
228+ broadcasts.RequestSoundPlayPause.end(res);
229+ }
230 } catch (Error e) {
231 warning("Unable to send play pause: %s", e.message);
232 }
233@@ -253,7 +257,11 @@
234 if (this.greeter != null) {
235 this.greeter.RequestSoundNext.begin(this.username, (obj, res) => {
236 try {
237- (obj as GreeterBroadcast).RequestSoundNext.end(res);
238+ var broadcasts = (obj as GreeterBroadcast);
239+
240+ if (broadcasts != null) {
241+ broadcasts.RequestSoundNext.end(res);
242+ }
243 } catch (Error e) {
244 warning("Unable to send next: %s", e.message);
245 }
246@@ -268,7 +276,11 @@
247 if (this.greeter != null) {
248 this.greeter.RequestSoundPrev.begin(this.username, (obj, res) => {
249 try {
250- (obj as GreeterBroadcast).RequestSoundPrev.end(res);
251+ var broadcasts = (obj as GreeterBroadcast);
252+
253+ if (broadcasts != null) {
254+ broadcasts.RequestSoundPrev.end(res);
255+ }
256 } catch (Error e) {
257 warning("Unable to send previous: %s", e.message);
258 }
259
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 public abstract string Identity{owned get; set;}
265 public abstract string DesktopEntry{owned get; set;}
266 // methods
267- public abstract async void Quit() throws IOError;
268- public abstract async void Raise() throws IOError;
269+ public abstract async void Quit() throws GLib.Error;
270+ public abstract async void Raise() throws GLib.Error;
271 }
272
273 [DBus (name = "org.mpris.MediaPlayer2.Player")]
274@@ -42,10 +42,10 @@
275 public abstract bool CanGoNext{owned get; set;}
276 public abstract bool CanGoPrevious{owned get; set;}
277 // methods
278- public abstract async void PlayPause() throws IOError;
279- public abstract async void Next() throws IOError;
280- public abstract async void Previous() throws IOError;
281- public abstract async void Seek(int64 offset) throws IOError;
282+ public abstract async void PlayPause() throws GLib.Error;
283+ public abstract async void Next() throws GLib.Error;
284+ public abstract async void Previous() throws GLib.Error;
285+ public abstract async void Seek(int64 offset) throws GLib.Error;
286 // signals
287 public signal void Seeked(int64 new_position);
288 }
289@@ -71,11 +71,11 @@
290 public abstract ActivePlaylistContainer? ActivePlaylist {owned get; set;}
291
292 //methods
293- public abstract async void ActivatePlaylist(ObjectPath playlist_id) throws IOError;
294+ public abstract async void ActivatePlaylist(ObjectPath playlist_id) throws GLib.Error;
295 public abstract async PlaylistDetails[]? GetPlaylists ( uint32 index,
296 uint32 max_count,
297 string order,
298- bool reverse_order ) throws IOError;
299+ bool reverse_order ) throws GLib.Error;
300 //signals
301 public signal void PlaylistChanged (PlaylistDetails details);
302
303
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
309 public abstract class IndicatorSound.Notification: Object
310 {
311- protected Notification () {
312+ internal Notification () {
313 BusWatcher.watch_namespace (
314 GLib.BusType.SESSION,
315 "org.freedesktop.Notifications",
316
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
322 /** MAX VOLUME PROPERTY **/
323
324- private static const string AMP_dB_KEY = "amplified-volume-decibels";
325- private static const string NORMAL_dB_KEY = "normal-volume-decibels";
326- private static const string ALLOW_AMP_KEY = "allow-amplified-volume";
327+ private const string AMP_dB_KEY = "amplified-volume-decibels";
328+ private const string NORMAL_dB_KEY = "normal-volume-decibels";
329+ private const string ALLOW_AMP_KEY = "allow-amplified-volume";
330
331 private void init_max_volume() {
332 _settings.changed[NORMAL_dB_KEY].connect(() => update_max_volume());
333@@ -66,8 +66,8 @@
334
335 /** LOUD VOLUME **/
336
337- private static const string LOUD_ENABLED_KEY = "warning-volume-enabled";
338- private static const string LOUD_DECIBEL_KEY = "warning-volume-decibels";
339+ private const string LOUD_ENABLED_KEY = "warning-volume-enabled";
340+ private const string LOUD_DECIBEL_KEY = "warning-volume-decibels";
341
342 private void init_loud_volume() {
343 _settings.changed[LOUD_ENABLED_KEY].connect(() => update_loud_volume());
344
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 case VolumeControl.ActiveOutput.HDMI_HEADPHONES:
350 label = _("Volume (HDMI headphones)");
351 break;
352+ case VolumeControl.ActiveOutput.CALL_MODE:
353+ break;
354 }
355 this.volume_section.remove (index);
356 this.volume_section.insert_item (index, this.create_slider_menu_item (_(label), "indicator.volume(0)", 0.0, 1.0, 0.01,
357
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 this._source_sink_mic_activated = false;
363 this.active_mic = _external_mic_detected;
364 break;
365+
366+ default:
367+ break;
368 }
369 break;
370+
371+ default:
372+ break;
373 }
374 }
375
376
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
382 protected IndicatorSound.Options _options = null;
383
384- protected VolumeControl (IndicatorSound.Options options) {
385+ internal VolumeControl(IndicatorSound.Options options) {
386 _options = options;
387 }
388
389
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 }
395 }
396
397- protected VolumeWarning (IndicatorSound.Options options) {
398+ internal VolumeWarning (IndicatorSound.Options options) {
399+
400 _options = options;
401
402 init_high_volume ();
403@@ -132,7 +133,7 @@
404 **/
405
406 private Settings _settings = new Settings ("com.canonical.indicator.sound");
407- private static const string TTL_KEY = "warning-volume-confirmation-ttl";
408+ private const string TTL_KEY = "warning-volume-confirmation-ttl";
409 private uint _approved_timer = 0;
410 private int64 _approved_at = 0;
411 private int64 _approved_ttl_usec = 0;
412@@ -213,7 +214,7 @@
413 approve_high_volume ();
414 sound_system_set_multimedia_volume (_ok_volume);
415 } else {
416- this.cancel_pressed (this.volume_to_double(_options.loud_volume));
417+ this.cancel_pressed (VolumeWarning.volume_to_double(_options.loud_volume));
418 }
419
420 _ok_volume = PulseAudio.Volume.INVALID;
421
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 find_package(GMock)
427 include_directories(${GMOCK_INCLUDE_DIRS})
428+include_directories("${CMAKE_INSTALL_PREFIX}/${CMAKE_INSTALL_INCLUDEDIR}/libdbustest-1")
429
430 ###########################
431 # GSettings Schema
432@@ -48,7 +49,6 @@
433 indicator-sound-service
434 OPTIONS
435 --ccode
436- --thread
437 --vapidir=${CMAKE_BINARY_DIR}/src/
438 --vapidir=${CMAKE_SOURCE_DIR}/vapi/
439 --vapidir=.
440
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 };
446
447
448-TEST_F(IndicatorTest, PhoneMenu) {
449+TEST_F(IndicatorTest, DISABLED_PhoneMenu) {
450 setMenu("/com/canonical/indicator/sound/phone");
451
452 EXPECT_EVENTUALLY_MENU_ATTRIB(std::vector<int>({0}), "action", "indicator.root");
453@@ -79,7 +79,7 @@
454 EXPECT_MENU_ATTRIB(std::vector<int>({0, 1}), "label", "Sound Settings…");
455 }
456
457-TEST_F(IndicatorTest, DesktopMenu) {
458+TEST_F(IndicatorTest, DISABLED_DesktopMenu) {
459 setMenu("/com/canonical/indicator/sound/desktop");
460
461 EXPECT_MENU_ATTRIB({0}, "action", "indicator.root");
462@@ -94,7 +94,7 @@
463 EXPECT_MENU_ATTRIB(std::vector<int>({0, 1}), "label", "Sound Settings…");
464 }
465
466-TEST_F(IndicatorTest, BaseActions) {
467+TEST_F(IndicatorTest, DISABLED_BaseActions) {
468 setActions("/com/canonical/indicator/sound");
469
470 ASSERT_ACTION_EXISTS("root");
471
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 void IndicatorSoundTestBase::TearDown()
477 {
478 unsetenv("XDG_DATA_DIRS");
479+ unsetenv("XDG_RUNTIME_DIR");
480+ unsetenv("XDG_CONFIG_HOME");
481+ unsetenv("HOME");
482 unsetenv("PULSE_SERVER");
483 unsetenv("DBUS_SYSTEM_BUS_ADDRESS");
484+ unsetenv("DBUS_SESSION_BUS_ADDRESS");
485 }
486
487 void gvariant_deleter(GVariant* varptr)
488@@ -299,6 +303,7 @@
489 << QString("--load=module-null-sink sink_name=indicator_sound_test_mic")
490 << "--log-target=file:/tmp/indicator-sound-test-pulse-daemon-desktop.log"
491 << "--load=module-dbus-protocol"
492+ << QString("--load=module-stream-restore restore_device=false restore_muted=false fallback_table=\"%1\"").arg(STREAM_RESTORE_TABLE)
493 << "--load=module-native-protocol-tcp auth-ip-acl=127.0.0.1"
494 ));
495 pulseaudio->start(dbusTestRunner.sessionConnection());
496@@ -408,8 +413,8 @@
497 .double_attribute("max-value", 1.0)
498 .double_attribute("step", 0.01)
499 .string_attribute("x-canonical-type", "com.canonical.unity.slider")
500- .themed_icon("max-icon", {"audio-volume-high-panel", "audio-volume-high", "audio-volume", "audio"})
501- .themed_icon("min-icon", {"audio-volume-low-zero-panel", "audio-volume-low-zero", "audio-volume-low", "audio-volume", "audio"})
502+ .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+ .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 .pass_through_double_attribute("action", volume);
505 }
506
507
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 {
513 };
514
515-TEST_F(TestIndicator, PhoneCheckRootIcon)
516+TEST_F(TestIndicator, DISABLED_PhoneCheckRootIcon)
517 {
518 double INITIAL_VOLUME = 0.0;
519
520@@ -68,10 +68,10 @@
521 )
522 ).match());
523
524- QStringList mutedIcon = {"audio-volume-muted-panel", "audio-volume-muted", "audio-volume", "audio"};
525+ 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 EXPECT_EQ(getRootIconValue(), mutedIcon);
527
528- QStringList lowVolumeIcon = {"audio-volume-low-panel", "audio-volume-low", "audio-volume", "audio"};
529+ 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 for( double volume = 0.1; volume <= 0.3; volume+=0.1)
531 {
532 EXPECT_TRUE(setStreamRestoreVolume("alert", volume));
533@@ -79,14 +79,14 @@
534 }
535 EXPECT_TRUE(setStreamRestoreVolume("alert", 0.4));
536
537- QStringList mediumVolumeIcon = {"audio-volume-medium-panel", "audio-volume-medium", "audio-volume", "audio"};
538+ 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 for( double volume = 0.4; volume <= 0.7; volume+=0.1)
540 {
541 EXPECT_TRUE(setStreamRestoreVolume("alert", volume));
542 EXPECT_EQ(getRootIconValue(), mediumVolumeIcon);
543 }
544
545- QStringList highVolumeIcon = {"audio-volume-high-panel", "audio-volume-high", "audio-volume", "audio"};
546+ 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 for( double volume = 0.8; volume <= 1.0; volume+=0.1)
548 {
549 EXPECT_TRUE(setStreamRestoreVolume("alert", volume));
550@@ -94,7 +94,7 @@
551 }
552 }
553
554-TEST_F(TestIndicator, PhoneTestExternalMicInOut)
555+TEST_F(TestIndicator, DISABLED_PhoneTestExternalMicInOut)
556 {
557 double INITIAL_VOLUME = 0.0;
558
559@@ -178,7 +178,7 @@
560 ).match());
561 }
562
563-TEST_F(TestIndicator, DesktopTestExternalMicInOut)
564+TEST_F(TestIndicator, DISABLED_DesktopTestExternalMicInOut)
565 {
566 double INITIAL_VOLUME = 0.0;
567
568@@ -371,7 +371,7 @@
569 ).match());
570 }
571
572-TEST_F(TestIndicator, PhoneBasicInitialVolume)
573+TEST_F(TestIndicator, DISABLED_PhoneBasicInitialVolume)
574 {
575 double INITIAL_VOLUME = 0.0;
576
577@@ -406,7 +406,7 @@
578 ).match());
579 }
580
581-TEST_F(TestIndicator, PhoneAddMprisPlayer)
582+TEST_F(TestIndicator, DISABLED_PhoneAddMprisPlayer)
583 {
584 double INITIAL_VOLUME = 0.0;
585
586@@ -469,7 +469,7 @@
587 .item(mh::MenuItemMatcher()
588 .action("indicator.testplayer1.desktop")
589 .label("TestPlayer1")
590- .themed_icon("icon", {"testplayer"})
591+ .themed_icon("icon", {"testplayer", "testplayer-symbolic"})
592 .string_attribute("x-canonical-type", "com.canonical.unity.media-player")
593 )
594 .item(mh::MenuItemMatcher()
595@@ -486,7 +486,7 @@
596 ).match());
597 }
598
599-TEST_F(TestIndicator, DesktopBasicInitialVolume)
600+TEST_F(TestIndicator, DISABLED_DesktopBasicInitialVolume)
601 {
602 double INITIAL_VOLUME = 0.0;
603
604@@ -523,7 +523,7 @@
605 .item(mh::MenuItemMatcher()
606 .action("indicator.testplayer1.desktop")
607 .label("TestPlayer1")
608- .themed_icon("icon", {"testplayer"})
609+ .themed_icon("icon", {"testplayer", "testplayer-symbolic"})
610 .string_attribute("x-canonical-type", "com.canonical.unity.media-player")
611 )
612 .item(mh::MenuItemMatcher()
613@@ -539,7 +539,7 @@
614 ).match());
615 }
616
617-TEST_F(TestIndicator, DesktopAddMprisPlayer)
618+TEST_F(TestIndicator, DISABLED_DesktopAddMprisPlayer)
619 {
620 double INITIAL_VOLUME = 0.0;
621
622@@ -577,7 +577,7 @@
623 .item(mh::MenuItemMatcher()
624 .action("indicator.testplayer1.desktop")
625 .label("TestPlayer1")
626- .themed_icon("icon", {"testplayer"})
627+ .themed_icon("icon", {"testplayer", "testplayer-symbolic"})
628 .string_attribute("x-canonical-type", "com.canonical.unity.media-player")
629 )
630 .item(mh::MenuItemMatcher()
631@@ -614,7 +614,7 @@
632 .item(mh::MenuItemMatcher()
633 .action("indicator.testplayer1.desktop")
634 .label("TestPlayer1")
635- .themed_icon("icon", {"testplayer"})
636+ .themed_icon("icon", {"testplayer", "testplayer-symbolic"})
637 .string_attribute("x-canonical-type", "com.canonical.unity.media-player")
638 )
639 .item(mh::MenuItemMatcher()
640@@ -628,7 +628,7 @@
641 ).match());
642 }
643
644-TEST_F(TestIndicator, DesktopMprisPlayersPlaybackControls)
645+TEST_F(TestIndicator, DISABLED_DesktopMprisPlayersPlaybackControls)
646 {
647 double INITIAL_VOLUME = 0.0;
648
649@@ -666,7 +666,7 @@
650 .item(mh::MenuItemMatcher()
651 .action("indicator.testplayer1.desktop")
652 .label("TestPlayer1")
653- .themed_icon("icon", {"testplayer"})
654+ .themed_icon("icon", {"testplayer", "testplayer-symbolic"})
655 .string_attribute("x-canonical-type", "com.canonical.unity.media-player")
656 )
657 .item(mh::MenuItemMatcher()
658@@ -704,7 +704,7 @@
659 .item(mh::MenuItemMatcher()
660 .action("indicator.testplayer1.desktop")
661 .label("TestPlayer1")
662- .themed_icon("icon", {"testplayer"})
663+ .themed_icon("icon", {"testplayer", "testplayer-symbolic"})
664 .string_attribute("x-canonical-type", "com.canonical.unity.media-player")
665 )
666 .item(mh::MenuItemMatcher()
667@@ -719,7 +719,7 @@
668 .item(mh::MenuItemMatcher()
669 .action("indicator.testplayer2.desktop")
670 .label("TestPlayer2")
671- .themed_icon("icon", {"testplayer"})
672+ .themed_icon("icon", {"testplayer", "testplayer-symbolic"})
673 .string_attribute("x-canonical-type", "com.canonical.unity.media-player")
674 )
675 .item(mh::MenuItemMatcher()
676@@ -757,7 +757,7 @@
677 .item(mh::MenuItemMatcher()
678 .action("indicator.testplayer1.desktop")
679 .label("TestPlayer1")
680- .themed_icon("icon", {"testplayer"})
681+ .themed_icon("icon", {"testplayer", "testplayer-symbolic"})
682 .string_attribute("x-canonical-type", "com.canonical.unity.media-player")
683 )
684 .item(mh::MenuItemMatcher()
685@@ -772,7 +772,7 @@
686 .item(mh::MenuItemMatcher()
687 .action("indicator.testplayer2.desktop")
688 .label("TestPlayer2")
689- .themed_icon("icon", {"testplayer"})
690+ .themed_icon("icon", {"testplayer", "testplayer-symbolic"})
691 .string_attribute("x-canonical-type", "com.canonical.unity.media-player")
692 )
693 .item(mh::MenuItemMatcher()
694@@ -787,7 +787,7 @@
695 .item(mh::MenuItemMatcher()
696 .action("indicator.testplayer3.desktop")
697 .label("TestPlayer3")
698- .themed_icon("icon", {"testplayer"})
699+ .themed_icon("icon", {"testplayer", "testplayer-symbolic"})
700 .string_attribute("x-canonical-type", "com.canonical.unity.media-player")
701 )
702 .item(mh::MenuItemMatcher()
703@@ -825,7 +825,7 @@
704 .item(mh::MenuItemMatcher()
705 .action("indicator.testplayer1.desktop")
706 .label("TestPlayer1")
707- .themed_icon("icon", {"testplayer"})
708+ .themed_icon("icon", {"testplayer", "testplayer-symbolic"})
709 .string_attribute("x-canonical-type", "com.canonical.unity.media-player")
710 )
711 .item(mh::MenuItemMatcher()
712@@ -840,7 +840,7 @@
713 .item(mh::MenuItemMatcher()
714 .action("indicator.testplayer2.desktop")
715 .label("TestPlayer2")
716- .themed_icon("icon", {"testplayer"})
717+ .themed_icon("icon", {"testplayer", "testplayer-symbolic"})
718 .string_attribute("x-canonical-type", "com.canonical.unity.media-player")
719 )
720 .item(mh::MenuItemMatcher()
721@@ -855,7 +855,7 @@
722 .item(mh::MenuItemMatcher()
723 .action("indicator.testplayer3.desktop")
724 .label("TestPlayer3")
725- .themed_icon("icon", {"testplayer"})
726+ .themed_icon("icon", {"testplayer", "testplayer-symbolic"})
727 .string_attribute("x-canonical-type", "com.canonical.unity.media-player")
728 )
729 )
730@@ -886,7 +886,7 @@
731 .item(mh::MenuItemMatcher()
732 .action("indicator.testplayer1.desktop")
733 .label("TestPlayer1")
734- .themed_icon("icon", {"testplayer"})
735+ .themed_icon("icon", {"testplayer", "testplayer-symbolic"})
736 .string_attribute("x-canonical-type", "com.canonical.unity.media-player")
737 )
738 .item(mh::MenuItemMatcher()
739@@ -901,7 +901,7 @@
740 .item(mh::MenuItemMatcher()
741 .action("indicator.testplayer2.desktop")
742 .label("TestPlayer2")
743- .themed_icon("icon", {"testplayer"})
744+ .themed_icon("icon", {"testplayer", "testplayer-symbolic"})
745 .string_attribute("x-canonical-type", "com.canonical.unity.media-player")
746 )
747 )
748@@ -910,7 +910,7 @@
749 .item(mh::MenuItemMatcher()
750 .action("indicator.testplayer3.desktop")
751 .label("TestPlayer3")
752- .themed_icon("icon", {"testplayer"})
753+ .themed_icon("icon", {"testplayer", "testplayer-symbolic"})
754 .string_attribute("x-canonical-type", "com.canonical.unity.media-player")
755 )
756 )
757@@ -942,7 +942,7 @@
758 .item(mh::MenuItemMatcher()
759 .action("indicator.testplayer1.desktop")
760 .label("TestPlayer1")
761- .themed_icon("icon", {"testplayer"})
762+ .themed_icon("icon", {"testplayer", "testplayer-symbolic"})
763 .string_attribute("x-canonical-type", "com.canonical.unity.media-player")
764 )
765 .item(mh::MenuItemMatcher()
766@@ -957,7 +957,7 @@
767 .item(mh::MenuItemMatcher()
768 .action("indicator.testplayer2.desktop")
769 .label("TestPlayer2")
770- .themed_icon("icon", {"testplayer"})
771+ .themed_icon("icon", {"testplayer", "testplayer-symbolic"})
772 .string_attribute("x-canonical-type", "com.canonical.unity.media-player")
773 )
774 )
775@@ -966,7 +966,7 @@
776 .item(mh::MenuItemMatcher()
777 .action("indicator.testplayer3.desktop")
778 .label("TestPlayer3")
779- .themed_icon("icon", {"testplayer"})
780+ .themed_icon("icon", {"testplayer", "testplayer-symbolic"})
781 .string_attribute("x-canonical-type", "com.canonical.unity.media-player")
782 )
783 )
784@@ -998,7 +998,7 @@
785 .item(mh::MenuItemMatcher()
786 .action("indicator.testplayer1.desktop")
787 .label("TestPlayer1")
788- .themed_icon("icon", {"testplayer"})
789+ .themed_icon("icon", {"testplayer", "testplayer-symbolic"})
790 .string_attribute("x-canonical-type", "com.canonical.unity.media-player")
791 )
792 )
793@@ -1007,7 +1007,7 @@
794 .item(mh::MenuItemMatcher()
795 .action("indicator.testplayer2.desktop")
796 .label("TestPlayer2")
797- .themed_icon("icon", {"testplayer"})
798+ .themed_icon("icon", {"testplayer", "testplayer-symbolic"})
799 .string_attribute("x-canonical-type", "com.canonical.unity.media-player")
800 )
801 )
802@@ -1016,7 +1016,7 @@
803 .item(mh::MenuItemMatcher()
804 .action("indicator.testplayer3.desktop")
805 .label("TestPlayer3")
806- .themed_icon("icon", {"testplayer"})
807+ .themed_icon("icon", {"testplayer", "testplayer-symbolic"})
808 .string_attribute("x-canonical-type", "com.canonical.unity.media-player")
809 )
810 .item(mh::MenuItemMatcher()
811@@ -1054,7 +1054,7 @@
812 .item(mh::MenuItemMatcher()
813 .action("indicator.testplayer1.desktop")
814 .label("TestPlayer1")
815- .themed_icon("icon", {"testplayer"})
816+ .themed_icon("icon", {"testplayer", "testplayer-symbolic"})
817 .string_attribute("x-canonical-type", "com.canonical.unity.media-player")
818 )
819 .item(mh::MenuItemMatcher()
820@@ -1069,7 +1069,7 @@
821 .item(mh::MenuItemMatcher()
822 .action("indicator.testplayer2.desktop")
823 .label("TestPlayer2")
824- .themed_icon("icon", {"testplayer"})
825+ .themed_icon("icon", {"testplayer", "testplayer-symbolic"})
826 .string_attribute("x-canonical-type", "com.canonical.unity.media-player")
827 )
828 .item(mh::MenuItemMatcher()
829@@ -1084,7 +1084,7 @@
830 .item(mh::MenuItemMatcher()
831 .action("indicator.testplayer3.desktop")
832 .label("TestPlayer3")
833- .themed_icon("icon", {"testplayer"})
834+ .themed_icon("icon", {"testplayer", "testplayer-symbolic"})
835 .string_attribute("x-canonical-type", "com.canonical.unity.media-player")
836 )
837 .item(mh::MenuItemMatcher()
838@@ -1125,7 +1125,7 @@
839 .item(mh::MenuItemMatcher()
840 .action("indicator.testplayer1.desktop")
841 .label("TestPlayer1")
842- .themed_icon("icon", {"testplayer"})
843+ .themed_icon("icon", {"testplayer", "testplayer-symbolic"})
844 .string_attribute("x-canonical-type", "com.canonical.unity.media-player")
845 )
846 )
847@@ -1134,7 +1134,7 @@
848 .item(mh::MenuItemMatcher()
849 .action("indicator.testplayer2.desktop")
850 .label("TestPlayer2")
851- .themed_icon("icon", {"testplayer"})
852+ .themed_icon("icon", {"testplayer", "testplayer-symbolic"})
853 .string_attribute("x-canonical-type", "com.canonical.unity.media-player")
854 )
855 )
856@@ -1143,7 +1143,7 @@
857 .item(mh::MenuItemMatcher()
858 .action("indicator.testplayer3.desktop")
859 .label("TestPlayer3")
860- .themed_icon("icon", {"testplayer"})
861+ .themed_icon("icon", {"testplayer", "testplayer-symbolic"})
862 .string_attribute("x-canonical-type", "com.canonical.unity.media-player")
863 )
864 .item(mh::MenuItemMatcher()
865@@ -1185,7 +1185,7 @@
866 .item(mh::MenuItemMatcher()
867 .action("indicator.testplayer3.desktop")
868 .label("TestPlayer3")
869- .themed_icon("icon", {"testplayer"})
870+ .themed_icon("icon", {"testplayer", "testplayer-symbolic"})
871 .string_attribute("x-canonical-type", "com.canonical.unity.media-player")
872 )
873 .item(mh::MenuItemMatcher()
874@@ -1198,7 +1198,7 @@
875 .item(mh::MenuItemMatcher()
876 .action("indicator.testplayer1.desktop")
877 .label("TestPlayer1")
878- .themed_icon("icon", {"testplayer"})
879+ .themed_icon("icon", {"testplayer", "testplayer-symbolic"})
880 .string_attribute("x-canonical-type", "com.canonical.unity.media-player")
881 )
882 )
883@@ -1207,7 +1207,7 @@
884 .item(mh::MenuItemMatcher()
885 .action("indicator.testplayer2.desktop")
886 .label("TestPlayer2")
887- .themed_icon("icon", {"testplayer"})
888+ .themed_icon("icon", {"testplayer", "testplayer-symbolic"})
889 .string_attribute("x-canonical-type", "com.canonical.unity.media-player")
890 )
891 )
892@@ -1218,7 +1218,7 @@
893
894 }
895
896-TEST_F(TestIndicator, DesktopMprisPlayerButtonsState)
897+TEST_F(TestIndicator, DISABLED_DesktopMprisPlayerButtonsState)
898 {
899 double INITIAL_VOLUME = 0.0;
900
901@@ -1256,7 +1256,7 @@
902 .item(mh::MenuItemMatcher()
903 .action("indicator.testplayer1.desktop")
904 .label("TestPlayer1")
905- .themed_icon("icon", {"testplayer"})
906+ .themed_icon("icon", {"testplayer", "testplayer-symbolic"})
907 .string_attribute("x-canonical-type", "com.canonical.unity.media-player")
908 )
909 .item(mh::MenuItemMatcher()
910@@ -1294,7 +1294,7 @@
911 .item(mh::MenuItemMatcher()
912 .action("indicator.testplayer1.desktop")
913 .label("TestPlayer1")
914- .themed_icon("icon", {"testplayer"})
915+ .themed_icon("icon", {"testplayer", "testplayer-symbolic"})
916 .string_attribute("x-canonical-type", "com.canonical.unity.media-player")
917 )
918 .item(mh::MenuItemMatcher()
919@@ -1333,7 +1333,7 @@
920 .item(mh::MenuItemMatcher()
921 .action("indicator.testplayer1.desktop")
922 .label("TestPlayer1")
923- .themed_icon("icon", {"testplayer"})
924+ .themed_icon("icon", {"testplayer", "testplayer-symbolic"})
925 .string_attribute("x-canonical-type", "com.canonical.unity.media-player")
926 )
927 .item(mh::MenuItemMatcher()
928@@ -1371,7 +1371,7 @@
929 .item(mh::MenuItemMatcher()
930 .action("indicator.testplayer1.desktop")
931 .label("TestPlayer1")
932- .themed_icon("icon", {"testplayer"})
933+ .themed_icon("icon", {"testplayer", "testplayer-symbolic"})
934 .string_attribute("x-canonical-type", "com.canonical.unity.media-player")
935 )
936 .item(mh::MenuItemMatcher()
937@@ -1387,7 +1387,7 @@
938 ).match());
939 }
940
941-TEST_F(TestIndicator, DesktopChangeRoleVolume)
942+TEST_F(TestIndicator, DISABLED_DesktopChangeRoleVolume)
943 {
944 double INITIAL_VOLUME = 0.0;
945
946
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
952 };
953
954-TEST_F(NotificationsTest, BasicObject) {
955+TEST_F(NotificationsTest, DISABLED_BasicObject) {
956 auto options = optionsMock();
957 auto volumeControl = volumeControlMock(options);
958 auto volumeWarning = volumeWarningMock(options);
959@@ -240,7 +240,7 @@
960 /* Auto free */
961 }
962
963-TEST_F(NotificationsTest, VolumeChanges) {
964+TEST_F(NotificationsTest, DISABLED_VolumeChanges) {
965 auto options = optionsMock();
966 auto volumeControl = volumeControlMock(options);
967 auto volumeWarning = volumeWarningMock(options);
968@@ -282,7 +282,7 @@
969 ASSERT_EQ(0, notev.size());
970 }
971
972-TEST_F(NotificationsTest, StreamChanges) {
973+TEST_F(NotificationsTest, DISABLED_StreamChanges) {
974 auto options = optionsMock();
975 auto volumeControl = volumeControlMock(options);
976 auto volumeWarning = volumeWarningMock(options);
977@@ -323,7 +323,7 @@
978 EXPECT_GVARIANT_EQ("@i 65", notev[0].hints["value"]);
979 }
980
981-TEST_F(NotificationsTest, IconTesting) {
982+TEST_F(NotificationsTest, DISABLED_IconTesting) {
983 auto options = optionsMock();
984 auto volumeControl = volumeControlMock(options);
985 auto volumeWarning = volumeWarningMock(options);
986@@ -360,7 +360,7 @@
987 EXPECT_EQ("audio-volume-high", notev[10].app_icon);
988 }
989
990-TEST_F(NotificationsTest, ServerRestart) {
991+TEST_F(NotificationsTest, DISABLED_ServerRestart) {
992 auto options = optionsMock();
993 auto volumeControl = volumeControlMock(options);
994 auto volumeWarning = volumeWarningMock(options);
995@@ -410,7 +410,7 @@
996 ASSERT_EQ(1, notev.size());
997 }
998
999-TEST_F(NotificationsTest, HighVolume) {
1000+TEST_F(NotificationsTest, DISABLED_HighVolume) {
1001 auto options = optionsMock();
1002 auto volumeControl = volumeControlMock(options);
1003 auto volumeWarning = volumeWarningMock(options);
1004@@ -455,7 +455,7 @@
1005 EXPECT_GVARIANT_EQ("@s 'true'", notev[0].hints["x-canonical-value-bar-tint"]);
1006 }
1007
1008-TEST_F(NotificationsTest, MenuHide) {
1009+TEST_F(NotificationsTest, DISABLED_MenuHide) {
1010 auto options = optionsMock();
1011 auto volumeControl = volumeControlMock(options);
1012 auto volumeWarning = volumeWarningMock(options);
1013@@ -488,7 +488,7 @@
1014 EXPECT_EQ(1, notev.size());
1015 }
1016
1017-TEST_F(NotificationsTest, ExtendendVolumeNotification) {
1018+TEST_F(NotificationsTest, DISABLED_ExtendendVolumeNotification) {
1019 auto options = optionsMock();
1020 auto volumeControl = volumeControlMock(options);
1021 auto volumeWarning = volumeWarningMock(options);
1022@@ -533,7 +533,7 @@
1023 EXPECT_GVARIANT_EQ("@i 100", notev[0].hints["value"]);
1024 }
1025
1026-TEST_F(NotificationsTest, TriggerWarning) {
1027+TEST_F(NotificationsTest, DISABLED_TriggerWarning) {
1028
1029 // Tests all the conditions needed to trigger a volume warning.
1030 // There are many possible combinations, so this test is slow. :P
1031
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 }
1037 };
1038
1039-TEST_F(VolumeControlTest, BasicObject) {
1040+TEST_F(VolumeControlTest, DISABLED_BasicObject) {
1041 auto options = options_mock_new();
1042 auto pgloop = pa_glib_mainloop_new(NULL);
1043 auto accounts_service_access = accounts_service_access_new();

Subscribers

People subscribed via source and target branches