aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCharles Kerr <charles.kerr@canonical.com>2015-08-11 17:19:05 -0500
committerCharles Kerr <charles.kerr@canonical.com>2015-08-11 17:19:05 -0500
commit6cba78cd762fde9978d6eac65ae83fcde13eed83 (patch)
tree23bda8aff8065539a007a07336241541057030b7
parent8301d866b4a4aa7ef9f9235ebcb56c121b71b495 (diff)
downloadayatana-indicator-sound-6cba78cd762fde9978d6eac65ae83fcde13eed83.tar.gz
ayatana-indicator-sound-6cba78cd762fde9978d6eac65ae83fcde13eed83.tar.bz2
ayatana-indicator-sound-6cba78cd762fde9978d6eac65ae83fcde13eed83.zip
in tests/volume-control-mock, add a public method for setting max-volume so that we can re-enable those tests in notifications-test
-rw-r--r--tests/volume-control-mock.vala6
1 files changed, 4 insertions, 2 deletions
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; }