diff options
author | charles kerr <charlesk@canonical.com> | 2015-12-20 15:42:57 -0600 |
---|---|---|
committer | charles kerr <charlesk@canonical.com> | 2015-12-20 15:42:57 -0600 |
commit | 60cd7ac64849bfc21be1a85063f5730ad22f9d72 (patch) | |
tree | 33adcf048e6be17c500c2fef2ca8ac4aa37245e8 /tests/volume-control-mock.vala | |
parent | 2fedb182f5321d381821178ce10dd395113ab11b (diff) | |
download | ayatana-indicator-sound-60cd7ac64849bfc21be1a85063f5730ad22f9d72.tar.gz ayatana-indicator-sound-60cd7ac64849bfc21be1a85063f5730ad22f9d72.tar.bz2 ayatana-indicator-sound-60cd7ac64849bfc21be1a85063f5730ad22f9d72.zip |
always keep volume-control's 'stream' property updated
Diffstat (limited to 'tests/volume-control-mock.vala')
-rw-r--r-- | tests/volume-control-mock.vala | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/volume-control-mock.vala b/tests/volume-control-mock.vala index 95d6a6a..3fbfefe 100644 --- a/tests/volume-control-mock.vala +++ b/tests/volume-control-mock.vala @@ -20,13 +20,12 @@ public class VolumeControlMock : VolumeControl { - public string mock_stream { get; set; default = "multimedia"; } - public override string stream { get { return mock_stream; } } public void mock_set_is_ready(bool b) { ready = b; } + public void mock_set_active_stream(VolumeControl.Stream s) { active_stream = s; } + public void mock_set_is_playing(bool b) { is_playing = b; } public override bool active_mic { get; set; } public bool mock_mute { get; set; } public override bool mute { get { return mock_mute; } } - public void mock_set_is_playing(bool b) { is_playing = b; } private VolumeControl.Volume _vol = new VolumeControl.Volume(); public override VolumeControl.Volume volume { get { return _vol; } set { _vol = value; }} public override double mic_volume { get; set; } |