diff options
author | charles kerr <charlesk@canonical.com> | 2015-12-30 16:03:02 -0600 |
---|---|---|
committer | charles kerr <charlesk@canonical.com> | 2015-12-30 16:03:02 -0600 |
commit | 521915475eb73ae22e2c270c687f1f4d5c7c0465 (patch) | |
tree | 7cdb4c2a75f06ef6b1558c12557800684b55d0fe /tests | |
parent | 812e71f004272f635ba9217ef2f16aa9567196b3 (diff) | |
download | ayatana-indicator-sound-521915475eb73ae22e2c270c687f1f4d5c7c0465.tar.gz ayatana-indicator-sound-521915475eb73ae22e2c270c687f1f4d5c7c0465.tar.bz2 ayatana-indicator-sound-521915475eb73ae22e2c270c687f1f4d5c7c0465.zip |
simplify the Options class' properties
Diffstat (limited to 'tests')
-rw-r--r-- | tests/options-mock.vala | 25 |
1 files changed, 3 insertions, 22 deletions
diff --git a/tests/options-mock.vala b/tests/options-mock.vala index 4136a0c..cda9e24 100644 --- a/tests/options-mock.vala +++ b/tests/options-mock.vala @@ -20,28 +20,9 @@ public class OptionsMock : IndicatorSound.Options { - // MAX VOLUME + public void mock_set_max_volume (double val) { max_volume = val; } - public void mock_set_max_volume(double val) { max_volume = val; } + public void mock_set_loud_volume (PulseAudio.Volume val) { loud_volume = val; } - // LOUD - - private bool _loud_enabled = true; - private PulseAudio.Volume _loud_volume; - - public override PulseAudio.Volume loud_volume() { - return _loud_volume; - } - public override bool loud_volume_warning_enabled() { - return _loud_enabled; - } - - public void set_loud_enabled(bool v) { - _loud_enabled = v; - loud_changed(); - } - public void set_loud_volume(PulseAudio.Volume v) { - _loud_volume = v; - loud_changed(); - } + public void mock_set_loud_warning_enabled (bool val) { loud_warning_enabled = val; } } |