Remove support for specifying version on command line.
[chromium-blink-merge.git] / content / test / test_media_stream_client.h
blobe6b8f9390c9d24f5a945c90e5056027464c6442f
1 // Copyright 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_TEST_TEST_MEDIA_STREAM_CLIENT_H_
6 #define CONTENT_TEST_TEST_MEDIA_STREAM_CLIENT_H_
8 #include "base/callback_forward.h"
9 #include "content/public/renderer/render_view_observer.h"
10 #include "content/renderer/media/media_stream_client.h"
11 #include "third_party/WebKit/public/platform/WebURL.h"
13 namespace content {
15 // TestMediaStreamClient is a mock implementation of MediaStreamClient used when
16 // running layout tests.
17 class TestMediaStreamClient : public RenderViewObserver,
18 public MediaStreamClient {
19 public:
20 explicit TestMediaStreamClient(RenderView* render_view);
21 virtual ~TestMediaStreamClient();
23 // MediaStreamClient implementation.
24 virtual bool IsMediaStream(const GURL& url) OVERRIDE;
25 virtual scoped_refptr<VideoFrameProvider> GetVideoFrameProvider(
26 const GURL& url,
27 const base::Closure& error_cb,
28 const VideoFrameProvider::RepaintCB& repaint_cb) OVERRIDE;
29 virtual scoped_refptr<MediaStreamAudioRenderer> GetAudioRenderer(
30 const GURL& url) OVERRIDE;
33 } // namespace content
35 #endif // CONTENT_TEST_TEST_MEDIA_STREAM_CLIENT_H_