diff options
Diffstat (limited to 'tests')
-rw-r--r-- | tests/volume-control-mock.vala | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/tests/volume-control-mock.vala b/tests/volume-control-mock.vala index 3fbfefe..159df3b 100644 --- a/tests/volume-control-mock.vala +++ b/tests/volume-control-mock.vala @@ -31,7 +31,17 @@ public class VolumeControlMock : VolumeControl public override double mic_volume { get; set; } public override void set_mute (bool mute) { - + } + + private VolumeControl.ActiveOutput _active_output = VolumeControl.ActiveOutput.SPEAKERS; + + public override VolumeControl.ActiveOutput active_output() { + return _active_output; + } + + public void mock_set_active_output (VolumeControl.ActiveOutput val) { + _active_output = val; + this.active_output_changed(val); } public VolumeControlMock(IndicatorSound.Options options) { |