| 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 "components/test_runner/mock_web_media_stream_center.h" | 5 #include "components/test_runner/mock_web_media_stream_center.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "components/test_runner/test_interfaces.h" | 8 #include "components/test_runner/test_interfaces.h" |
| 9 #include "components/test_runner/web_test_delegate.h" | 9 #include "components/test_runner/web_test_delegate.h" |
| 10 #include "third_party/WebKit/public/platform/WebAudioDestinationConsumer.h" | 10 #include "third_party/WebKit/public/platform/WebAudioDestinationConsumer.h" |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 private: | 44 private: |
| 45 blink::WebMediaStream stream_; | 45 blink::WebMediaStream stream_; |
| 46 | 46 |
| 47 DISALLOW_COPY_AND_ASSIGN(NewTrackTask); | 47 DISALLOW_COPY_AND_ASSIGN(NewTrackTask); |
| 48 }; | 48 }; |
| 49 | 49 |
| 50 class MockWebAudioDestinationConsumer | 50 class MockWebAudioDestinationConsumer |
| 51 : public blink::WebAudioDestinationConsumer { | 51 : public blink::WebAudioDestinationConsumer { |
| 52 public: | 52 public: |
| 53 MockWebAudioDestinationConsumer() {} | 53 MockWebAudioDestinationConsumer() {} |
| 54 virtual ~MockWebAudioDestinationConsumer() {} | 54 ~MockWebAudioDestinationConsumer() override {} |
| 55 virtual void setFormat(size_t number_of_channels, float sample_rate) {} | 55 void setFormat(size_t number_of_channels, float sample_rate) override {} |
| 56 virtual void consumeAudio(const blink::WebVector<const float*>&, | 56 void consumeAudio(const blink::WebVector<const float*>&, |
| 57 size_t number_of_frames) {} | 57 size_t number_of_frames) override {} |
| 58 | 58 |
| 59 DISALLOW_COPY_AND_ASSIGN(MockWebAudioDestinationConsumer); | 59 DISALLOW_COPY_AND_ASSIGN(MockWebAudioDestinationConsumer); |
| 60 }; | 60 }; |
| 61 | 61 |
| 62 } // namespace | 62 } // namespace |
| 63 | 63 |
| 64 MockWebMediaStreamCenter::MockWebMediaStreamCenter( | 64 MockWebMediaStreamCenter::MockWebMediaStreamCenter( |
| 65 blink::WebMediaStreamCenterClient* client, | 65 blink::WebMediaStreamCenterClient* client, |
| 66 TestInterfaces* interfaces) | 66 TestInterfaces* interfaces) |
| 67 : interfaces_(interfaces) { | 67 : interfaces_(interfaces) { |
| (...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 128 interfaces_->GetDelegate()->PostTask(new NewTrackTask(this, stream)); | 128 interfaces_->GetDelegate()->PostTask(new NewTrackTask(this, stream)); |
| 129 } | 129 } |
| 130 | 130 |
| 131 blink::WebAudioSourceProvider* | 131 blink::WebAudioSourceProvider* |
| 132 MockWebMediaStreamCenter::createWebAudioSourceFromMediaStreamTrack( | 132 MockWebMediaStreamCenter::createWebAudioSourceFromMediaStreamTrack( |
| 133 const blink::WebMediaStreamTrack& track) { | 133 const blink::WebMediaStreamTrack& track) { |
| 134 return NULL; | 134 return NULL; |
| 135 } | 135 } |
| 136 | 136 |
| 137 } // namespace test_runner | 137 } // namespace test_runner |
| OLD | NEW |