diff options
author | charles kerr <charlesk@canonical.com> | 2015-12-30 17:23:27 -0600 |
---|---|---|
committer | charles kerr <charlesk@canonical.com> | 2015-12-30 17:23:27 -0600 |
commit | ca33288a417e1e12ea53b91af158357397b89819 (patch) | |
tree | 6ea98a3f092c3c8c07928f55fd5fed44898b29d3 /tests/volume-warning-mock.vala | |
parent | 462abafeb9286aa91fdc11bd789914add4db6ca9 (diff) | |
download | ayatana-indicator-sound-ca33288a417e1e12ea53b91af158357397b89819.tar.gz ayatana-indicator-sound-ca33288a417e1e12ea53b91af158357397b89819.tar.bz2 ayatana-indicator-sound-ca33288a417e1e12ea53b91af158357397b89819.zip |
fill out volume-warning-mock's mocking capabilities
Diffstat (limited to 'tests/volume-warning-mock.vala')
-rw-r--r-- | tests/volume-warning-mock.vala | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/tests/volume-warning-mock.vala b/tests/volume-warning-mock.vala index c14784d..0dcae50 100644 --- a/tests/volume-warning-mock.vala +++ b/tests/volume-warning-mock.vala @@ -20,7 +20,7 @@ public class VolumeWarningMock : VolumeWarning { - public void set_high_volume(bool b) { high_volume = b; } + public void set_high_volume(bool val) { high_volume = val; } public VolumeWarningMock(IndicatorSound.Options options) { base(options); @@ -29,4 +29,12 @@ public class VolumeWarningMock : VolumeWarning protected override void sound_system_set_multimedia_volume(PulseAudio.Volume volume) { GLib.message("volume-warning-mock setting multimedia volume to %d", (int)volume); } + + public void set_multimedia_active(bool val) { multimedia_active = val; } + + public void set_multimedia_volume(PulseAudio.Volume val) { multimedia_volume = val; } + + public void set_high_volume_approved(bool val) { high_volume_approved = val; } + + public bool is_high_volume_approved() { return high_volume_approved; } } |