From 6cba78cd762fde9978d6eac65ae83fcde13eed83 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Tue, 11 Aug 2015 17:19:05 -0500 Subject: in tests/volume-control-mock, add a public method for setting max-volume so that we can re-enable those tests in notifications-test --- tests/volume-control-mock.vala | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'tests') diff --git a/tests/volume-control-mock.vala b/tests/volume-control-mock.vala index 5902037..dc11fba 100644 --- a/tests/volume-control-mock.vala +++ b/tests/volume-control-mock.vala @@ -20,12 +20,14 @@ public class VolumeControlMock : VolumeControl { + private bool _high_volume = false; + public override bool high_volume { get { return _high_volume; } protected set { _high_volume = value; } } + public void set_high_volume(bool b) { high_volume = b; } + public string mock_stream { get; set; default = "multimedia"; } public override string stream { get { return mock_stream; } } public override bool ready { get; set; } public override bool active_mic { get; set; } - public bool mock_high_volume { get { return high_volume; } set { high_volume = value; } } - public override bool high_volume { get; private set; } public bool mock_mute { get; set; } public override bool mute { get { return mock_mute; } } public bool mock_is_playing { get; set; } -- cgit v1.2.3