Re-subimission of https://codereview.chromium.org/1041213003/
[chromium-blink-merge.git] / content / renderer / media / mock_media_stream_registry.h
blobccae8809ec7f46370d4000d6aa6aa5a204ffd397
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_REGISTRY_H_
6 #define CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_REGISTRY_H_
8 #include <string>
10 #include "base/compiler_specific.h"
11 #include "content/renderer/media/media_stream_registry_interface.h"
13 namespace content {
15 class MockMediaStreamRegistry : public MediaStreamRegistryInterface {
16 public:
17 MockMediaStreamRegistry();
19 void Init(const std::string& stream_label);
20 void AddVideoTrack(const std::string& track_id);
21 blink::WebMediaStream GetMediaStream(const std::string& url) override;
23 const blink::WebMediaStream test_stream() const;
25 private:
26 blink::WebMediaStream test_stream_;
27 std::string stream_url_;
30 } // namespace content
32 #endif // CONTENT_RENDERER_MEDIA_MOCK_MEDIA_STREAM_REGISTRY_H_