| 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/WebTestDelegate.h" | 8 #include "content/shell/renderer/test_runner/WebTestDelegate.h" |
| 9 #include "content/shell/renderer/test_runner/test_interfaces.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" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 class NewTrackTask : public WebMethodTask<MockWebMediaStreamCenter> { | 23 class NewTrackTask : public WebMethodTask<MockWebMediaStreamCenter> { |
| 24 public: | 24 public: |
| 25 NewTrackTask(MockWebMediaStreamCenter* object, | 25 NewTrackTask(MockWebMediaStreamCenter* object, |
| 26 const blink::WebMediaStream& stream) | 26 const blink::WebMediaStream& stream) |
| 27 : WebMethodTask<MockWebMediaStreamCenter>(object), stream_(stream) { | 27 : WebMethodTask<MockWebMediaStreamCenter>(object), stream_(stream) { |
| 28 DCHECK(!stream_.isNull()); | 28 DCHECK(!stream_.isNull()); |
| 29 } | 29 } |
| 30 | 30 |
| 31 virtual ~NewTrackTask() {} | 31 virtual ~NewTrackTask() {} |
| 32 | 32 |
| 33 virtual void runIfValid() OVERRIDE { | 33 virtual void RunIfValid() OVERRIDE { |
| 34 blink::WebMediaStreamSource source; | 34 blink::WebMediaStreamSource source; |
| 35 blink::WebMediaStreamTrack track; | 35 blink::WebMediaStreamTrack track; |
| 36 source.initialize("MagicVideoDevice#1", | 36 source.initialize("MagicVideoDevice#1", |
| 37 blink::WebMediaStreamSource::TypeVideo, | 37 blink::WebMediaStreamSource::TypeVideo, |
| 38 "Magic video track"); | 38 "Magic video track"); |
| 39 track.initialize(source); | 39 track.initialize(source); |
| 40 stream_.addTrack(track); | 40 stream_.addTrack(track); |
| 41 } | 41 } |
| 42 | 42 |
| 43 private: | 43 private: |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 143 interfaces_->GetDelegate()->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 |