~ricmm/media-hub/initial-bg-playback

« back to all changes in this revision

Viewing changes to tests/unit-tests/test-gstreamer-engine.cpp

  • Committer: thomas-voss
  • Date: 2013-11-11 13:06:09 UTC
  • Revision ID: thomas.voss@canonical.com-20131111130609-pfjz96x07ql9xr4y
Ensure that the audio sink is set to a fake sink for unit testing purposes.

Show diffs side-by-side

added added

removed removed

Lines of Context:
36
36
 
37
37
namespace music = com::ubuntu::music;
38
38
 
 
39
struct EnsureFakeAudioSinkEnvVarIsSet
 
40
{
 
41
    EnsureFakeAudioSinkEnvVarIsSet()
 
42
    {
 
43
        ::setenv("COM_UBUNTU_MUSIC_SERVICE_AUDIO_SINK_NAME", "fakesink", 1);
 
44
    }
 
45
} ensure_fake_audio_sink_env_var_is_set;
 
46
 
39
47
TEST(GStreamerEngine, construction_and_deconstruction_works)
40
48
{
41
49
    gstreamer::Engine engine;