OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/test/test_media_stream_client.h" | 5 #include "content/test/test_media_stream_client.h" |
6 | 6 |
7 #include "content/renderer/media/media_stream_audio_renderer.h" | 7 #include "content/renderer/media/media_stream_audio_renderer.h" |
8 #include "content/test/test_video_frame_provider.h" | 8 #include "content/test/test_video_frame_provider.h" |
9 #include "third_party/WebKit/public/platform/WebMediaStream.h" | 9 #include "third_party/WebKit/public/platform/WebMediaStream.h" |
10 #include "third_party/WebKit/public/platform/WebMediaStreamTrack.h" | 10 #include "third_party/WebKit/public/platform/WebMediaStreamTrack.h" |
11 #include "third_party/WebKit/public/web/WebMediaStreamRegistry.h" | 11 #include "third_party/WebKit/public/web/WebMediaStreamRegistry.h" |
12 #include "url/gurl.h" | 12 #include "url/gurl.h" |
13 | 13 |
14 using namespace WebKit; | 14 using namespace blink; |
15 | 15 |
16 namespace { | 16 namespace { |
17 | 17 |
18 static const int kVideoCaptureWidth = 352; | 18 static const int kVideoCaptureWidth = 352; |
19 static const int kVideoCaptureHeight = 288; | 19 static const int kVideoCaptureHeight = 288; |
20 static const int kVideoCaptureFrameDurationMs = 33; | 20 static const int kVideoCaptureFrameDurationMs = 33; |
21 | 21 |
22 bool IsMockMediaStreamWithVideo(const WebURL& url) { | 22 bool IsMockMediaStreamWithVideo(const WebURL& url) { |
23 #if ENABLE_WEBRTC | 23 #if ENABLE_WEBRTC |
24 WebMediaStream descriptor( | 24 WebMediaStream descriptor( |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
59 error_cb, | 59 error_cb, |
60 repaint_cb); | 60 repaint_cb); |
61 } | 61 } |
62 | 62 |
63 scoped_refptr<MediaStreamAudioRenderer> TestMediaStreamClient::GetAudioRenderer( | 63 scoped_refptr<MediaStreamAudioRenderer> TestMediaStreamClient::GetAudioRenderer( |
64 const GURL& url) { | 64 const GURL& url) { |
65 return NULL; | 65 return NULL; |
66 } | 66 } |
67 | 67 |
68 } // namespace content | 68 } // namespace content |
OLD | NEW |