~jhodapp/media-hub/add-integrations-tests

« back to all changes in this revision

Viewing changes to src/core/media/audio/pulse_audio_output_observer.h

  • Committer: thomas-voss
  • Date: 2014-11-24 10:12:12 UTC
  • Revision ID: thomas.voss@canonical.com-20141124101212-vkalsmkcoligvyki
Add semi-manual test cases for wired and bluetooth outputs being reported correctly by PulseAudioOutputObserver.

Show diffs side-by-side

added added

removed removed

Lines of Context:
48
48
        // Name of the sink that we should consider.
49
49
        std::string sink
50
50
        {
 
51
            // A special value that requests the implementation to
 
52
            // query pulseaudio for the default configured sink.
51
53
            "query.from.server"
52
54
        };
53
55
        // Output port name patterns that should be observed on the configured sink.
54
56
        // All patterns have to be valid regular expressions.
55
57
        std::vector<std::regex> output_port_patterns
56
58
        {
57
 
            std::regex{"output-a2dp.*"}, std::regex{"output-wired.*"}
 
59
            // Any port is considered with this special value.
 
60
            std::regex{".+"}
58
61
        };
59
62
    };
60
63
 
68
71
    const core::Property<std::string>& sink() const;
69
72
    // The set of ports that have been identified on the configured sink.
70
73
    // Specifically meant for consumption by test code.
71
 
    const core::Property<std::set<std::string>>& available_ports() const;
 
74
    const core::Property<std::set<std::string>>& known_ports() const;
72
75
    // Getable/observable property holding the state of external outputs.
73
76
    const core::Property<OutputState>& external_output_state() const override;
74
77