diff options
author | Ted Gould <ted@gould.cx> | 2015-02-10 10:55:39 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2015-02-10 10:55:39 -0600 |
commit | d86b21181d8812cbb32f4a4f6375d9595d4d7aa9 (patch) | |
tree | 04467ad0a8641568783b40ff4351871ca8bad3d5 /tests | |
parent | 627d27b6bed6f3238f3c87fc8f3c9dcb808d3c27 (diff) | |
download | ayatana-indicator-sound-d86b21181d8812cbb32f4a4f6375d9595d4d7aa9.tar.gz ayatana-indicator-sound-d86b21181d8812cbb32f4a4f6375d9595d4d7aa9.tar.bz2 ayatana-indicator-sound-d86b21181d8812cbb32f4a4f6375d9595d4d7aa9.zip |
Store values in the volume control mock
Diffstat (limited to 'tests')
-rw-r--r-- | tests/volume-control-mock.vala | 20 |
1 files changed, 12 insertions, 8 deletions
diff --git a/tests/volume-control-mock.vala b/tests/volume-control-mock.vala index ba5475c..e1b6fc1 100644 --- a/tests/volume-control-mock.vala +++ b/tests/volume-control-mock.vala @@ -20,14 +20,18 @@ public class VolumeControlMock : VolumeControl { - public override string stream { get { return ""; } } - public override bool ready { get { return false; } set { } } - public override bool active_mic { get { return false; } set { } } - public override bool high_volume { get { return false; } } - public override bool mute { get { return false; } } - public override bool is_playing { get { return false; } } - public override double volume { get { return 0.0; } set { } } - public override double mic_volume { get { return 0.0; } set { } } + public string mock_stream { get; set; } + 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; set; } + public override bool high_volume { get { return mock_high_volume; } } + public bool mock_mute { get; set; } + public override bool mute { get { return mock_mute; } } + public bool mock_is_playing { get; set; } + public override bool is_playing { get { return mock_is_playing; } } + public override double volume { get; set; } + public override double mic_volume { get; set; } public override void set_mute (bool mute) { |