| 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/shell/renderer/test_runner/MockWebMediaStreamCenter.h" | 5 #include "content/shell/renderer/test_runner/MockWebMediaStreamCenter.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "content/shell/renderer/test_runner/TestInterfaces.h" | 8 #include "content/shell/renderer/test_runner/TestInterfaces.h" |
| 9 #include "content/shell/renderer/test_runner/WebTestDelegate.h" | 9 #include "content/shell/renderer/test_runner/WebTestDelegate.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 |
| 20 using namespace blink; | 20 using namespace blink; |
| 21 | 21 |
| 22 namespace WebTestRunner { | 22 namespace content { |
| 23 | 23 |
| 24 class NewTrackTask : public WebMethodTask<MockWebMediaStreamCenter> { | 24 class NewTrackTask : public WebMethodTask<MockWebMediaStreamCenter> { |
| 25 public: | 25 public: |
| 26 NewTrackTask(MockWebMediaStreamCenter* object, const WebMediaStream& stream) | 26 NewTrackTask(MockWebMediaStreamCenter* object, const WebMediaStream& stream) |
| 27 : WebMethodTask<MockWebMediaStreamCenter>(object) | 27 : WebMethodTask<MockWebMediaStreamCenter>(object) |
| 28 , m_stream(stream) | 28 , m_stream(stream) |
| 29 { | 29 { |
| 30 DCHECK(!m_stream.isNull()); | 30 DCHECK(!m_stream.isNull()); |
| 31 } | 31 } |
| 32 | 32 |
| (...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 116 } | 116 } |
| 117 } | 117 } |
| 118 m_interfaces->delegate()->postTask(new NewTrackTask(this, stream)); | 118 m_interfaces->delegate()->postTask(new NewTrackTask(this, stream)); |
| 119 } | 119 } |
| 120 | 120 |
| 121 blink::WebAudioSourceProvider* MockWebMediaStreamCenter::createWebAudioSourceFro
mMediaStreamTrack(const blink::WebMediaStreamTrack& track) | 121 blink::WebAudioSourceProvider* MockWebMediaStreamCenter::createWebAudioSourceFro
mMediaStreamTrack(const blink::WebMediaStreamTrack& track) |
| 122 { | 122 { |
| 123 return NULL; | 123 return NULL; |
| 124 } | 124 } |
| 125 | 125 |
| 126 } | 126 } // namespace content |
| OLD | NEW |