diff options
author | Ted Gould <ted@gould.cx> | 2014-02-12 11:22:32 -0600 |
---|---|---|
committer | Ted Gould <ted@gould.cx> | 2014-02-12 11:22:32 -0600 |
commit | 7035341609179f1d646b3c48df79c15d4fa5a72f (patch) | |
tree | d34b4e0902de50a76d6836b637d9b03ea95e2fad /tests/media-player-mock.vala | |
parent | 23482084db3c4b94ad019639507a5891d2199560 (diff) | |
download | ayatana-indicator-sound-7035341609179f1d646b3c48df79c15d4fa5a72f.tar.gz ayatana-indicator-sound-7035341609179f1d646b3c48df79c15d4fa5a72f.tar.bz2 ayatana-indicator-sound-7035341609179f1d646b3c48df79c15d4fa5a72f.zip |
Setting up the build so we can have Vala mocks
Diffstat (limited to 'tests/media-player-mock.vala')
-rw-r--r-- | tests/media-player-mock.vala | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/tests/media-player-mock.vala b/tests/media-player-mock.vala new file mode 100644 index 0000000..8a4a6cf --- /dev/null +++ b/tests/media-player-mock.vala @@ -0,0 +1,51 @@ +/* + * Copyright © 2014 Canonical Ltd. + * + * This program is free software; you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation; version 3. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <http://www.gnu.org/licenses/>. + * + * Authors: + * Ted Gould <ted@canonical.com> + */ + +public class MediaPlayerMock: MediaPlayer { + + public override void activate () { + debug("Mock activate"); + } + public override void play_pause () { + debug("Mock play_pause"); + } + public override void next () { + debug("Mock next"); + } + public override void previous () { + debug("Mock previous"); + } + + public override uint get_n_playlists() { + debug("Mock get_n_playlists"); + return 0; + } + public override string get_playlist_id (int index) { + debug("Mock get_playlist_id"); + return ""; + } + public override string get_playlist_name (int index) { + debug("Mock get_playlist_name"); + return ""; + } + public override void activate_playlist_by_name (string playlist) { + debug("Mock activate_playlist_by_name"); + } + +} |