OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/shell/renderer/test_runner/mock_web_media_stream_center.h" | 5 #include "content/shell/renderer/test_runner/mock_web_media_stream_center.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "content/shell/renderer/test_runner/TestInterfaces.h" | |
9 #include "content/shell/renderer/test_runner/WebTestDelegate.h" | 8 #include "content/shell/renderer/test_runner/WebTestDelegate.h" |
| 9 #include "content/shell/renderer/test_runner/test_interfaces.h" |
10 #include "third_party/WebKit/public/platform/WebAudioDestinationConsumer.h" | 10 #include "third_party/WebKit/public/platform/WebAudioDestinationConsumer.h" |
11 #include "third_party/WebKit/public/platform/WebAudioSourceProvider.h" | 11 #include "third_party/WebKit/public/platform/WebAudioSourceProvider.h" |
12 #include "third_party/WebKit/public/platform/WebMediaStream.h" | 12 #include "third_party/WebKit/public/platform/WebMediaStream.h" |
13 #include "third_party/WebKit/public/platform/WebMediaStreamCenterClient.h" | 13 #include "third_party/WebKit/public/platform/WebMediaStreamCenterClient.h" |
14 #include "third_party/WebKit/public/platform/WebMediaStreamSource.h" | 14 #include "third_party/WebKit/public/platform/WebMediaStreamSource.h" |
15 #include "third_party/WebKit/public/platform/WebMediaStreamTrack.h" | 15 #include "third_party/WebKit/public/platform/WebMediaStreamTrack.h" |
16 #include "third_party/WebKit/public/platform/WebMediaStreamTrackSourcesRequest.h
" | 16 #include "third_party/WebKit/public/platform/WebMediaStreamTrackSourcesRequest.h
" |
17 #include "third_party/WebKit/public/platform/WebSourceInfo.h" | 17 #include "third_party/WebKit/public/platform/WebSourceInfo.h" |
18 #include "third_party/WebKit/public/platform/WebVector.h" | 18 #include "third_party/WebKit/public/platform/WebVector.h" |
19 | 19 |
(...skipping 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
133 for (size_t i = 0; i < audio_tracks.size(); ++i) { | 133 for (size_t i = 0; i < audio_tracks.size(); ++i) { |
134 blink::WebMediaStreamSource source = audio_tracks[i].source(); | 134 blink::WebMediaStreamSource source = audio_tracks[i].source(); |
135 if (source.requiresAudioConsumer()) { | 135 if (source.requiresAudioConsumer()) { |
136 MockWebAudioDestinationConsumer* consumer = | 136 MockWebAudioDestinationConsumer* consumer = |
137 new MockWebAudioDestinationConsumer(); | 137 new MockWebAudioDestinationConsumer(); |
138 source.addAudioConsumer(consumer); | 138 source.addAudioConsumer(consumer); |
139 source.removeAudioConsumer(consumer); | 139 source.removeAudioConsumer(consumer); |
140 delete consumer; | 140 delete consumer; |
141 } | 141 } |
142 } | 142 } |
143 interfaces_->delegate()->postTask(new NewTrackTask(this, stream)); | 143 interfaces_->GetDelegate()->postTask(new NewTrackTask(this, stream)); |
144 } | 144 } |
145 | 145 |
146 blink::WebAudioSourceProvider* | 146 blink::WebAudioSourceProvider* |
147 MockWebMediaStreamCenter::createWebAudioSourceFromMediaStreamTrack( | 147 MockWebMediaStreamCenter::createWebAudioSourceFromMediaStreamTrack( |
148 const blink::WebMediaStreamTrack& track) { | 148 const blink::WebMediaStreamTrack& track) { |
149 return NULL; | 149 return NULL; |
150 } | 150 } |
151 | 151 |
152 } // namespace content | 152 } // namespace content |
OLD | NEW |