diff options
author | Ted Gould <ted@gould.cx> | 2015-02-19 16:27:42 +0000 |
---|---|---|
committer | CI Train Bot <ci-train-bot@canonical.com> | 2015-02-19 16:27:42 +0000 |
commit | aa274595282049653b3104c8cece554f6914bad4 (patch) | |
tree | 8b84c167378fb60fa01ef234fc545e289e730fbb /tests/volume-control-mock.vala | |
parent | 14be74296b0bd81a797373c4c972916277d0428e (diff) | |
parent | 29c24529be0f644ae5ef4f51cfa0963a2eb708ac (diff) | |
download | ayatana-indicator-sound-aa274595282049653b3104c8cece554f6914bad4.tar.gz ayatana-indicator-sound-aa274595282049653b3104c8cece554f6914bad4.tar.bz2 ayatana-indicator-sound-aa274595282049653b3104c8cece554f6914bad4.zip |
Track the reason a volume was set to filter volume changes more accurately Fixes: #1416520
Approved by: Jussi Pakkanen, PS Jenkins bot
Diffstat (limited to 'tests/volume-control-mock.vala')
-rw-r--r-- | tests/volume-control-mock.vala | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/volume-control-mock.vala b/tests/volume-control-mock.vala index 4b846bf..4c96518 100644 --- a/tests/volume-control-mock.vala +++ b/tests/volume-control-mock.vala @@ -30,7 +30,8 @@ public class VolumeControlMock : VolumeControl 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; } + private VolumeControl.Volume _vol = new VolumeControl.Volume(); + public override VolumeControl.Volume volume { get { return _vol; } set { _vol = value; }} public override double mic_volume { get; set; } public override void set_mute (bool mute) { |