diff options
author | Ted Gould <ted@gould.cx> | 2014-02-12 13:54:59 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2014-02-12 13:54:59 -0600 |
commit | f71a5f1208e38b670c2895cdd38b082a26210f75 (patch) | |
tree | e013844cd65fda8089f9efce1ecd26096a1dec43 | |
parent | 691f7056cc888444b55ad1a6a6949926162cffe4 (diff) | |
download | ayatana-indicator-sound-f71a5f1208e38b670c2895cdd38b082a26210f75.tar.gz ayatana-indicator-sound-f71a5f1208e38b670c2895cdd38b082a26210f75.tar.bz2 ayatana-indicator-sound-f71a5f1208e38b670c2895cdd38b082a26210f75.zip |
Adding mock values to fill out mock media player
-rw-r--r-- | tests/media-player-mock.vala | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/tests/media-player-mock.vala b/tests/media-player-mock.vala index 8a4a6cf..14028f5 100644 --- a/tests/media-player-mock.vala +++ b/tests/media-player-mock.vala @@ -19,6 +19,31 @@ public class MediaPlayerMock: MediaPlayer { + /* Superclass variables */ + public override string id { get { return mock_id; } } + public override string name { get { return mock_name; } } + public override string state { get { return mock_state; } set { this.mock_state = value; }} + public override Icon? icon { get { return mock_icon; } } + public override string dbus_name { get { return mock_dbus_name; } } + + public override bool is_running { get { return mock_is_running; } } + public override bool can_raise { get { return mock_can_raise; } } + + public override MediaPlayer.Track? current_track { get { return mock_current_track; } set { this.mock_current_track = value; } } + + /* Mock values */ + public string mock_id { get; set; } + public string mock_name { get; set; } + public string mock_state { get; set; } + public Icon? mock_icon { get; set; } + public string mock_dbus_name { get; set; } + + public bool mock_is_running { get; set; } + public bool mock_can_raise { get; set; } + + public MediaPlayer.Track? mock_current_track { get; set; } + + /* Virtual functions */ public override void activate () { debug("Mock activate"); } |