| 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 #ifndef COMPONENTS_TEST_RUNNER_MOCK_WEB_MEDIA_STREAM_CENTER_H_ | 5 #ifndef COMPONENTS_TEST_RUNNER_MOCK_WEB_MEDIA_STREAM_CENTER_H_ |
| 6 #define COMPONENTS_TEST_RUNNER_MOCK_WEB_MEDIA_STREAM_CENTER_H_ | 6 #define COMPONENTS_TEST_RUNNER_MOCK_WEB_MEDIA_STREAM_CENTER_H_ |
| 7 | 7 |
| 8 #include "base/macros.h" | 8 #include "base/macros.h" |
| 9 #include "components/test_runner/web_task.h" | |
| 10 #include "third_party/WebKit/public/platform/WebMediaStreamCenter.h" | 9 #include "third_party/WebKit/public/platform/WebMediaStreamCenter.h" |
| 11 | 10 |
| 12 namespace blink { | 11 namespace blink { |
| 13 class WebAudioSourceProvider; | 12 class WebAudioSourceProvider; |
| 14 class WebMediaStreamCenterClient; | 13 class WebMediaStreamCenterClient; |
| 15 }; | 14 }; |
| 16 | 15 |
| 17 namespace test_runner { | 16 namespace test_runner { |
| 18 | 17 |
| 19 class TestInterfaces; | 18 class TestInterfaces; |
| (...skipping 13 matching lines...) Expand all Loading... |
| 33 bool didRemoveMediaStreamTrack( | 32 bool didRemoveMediaStreamTrack( |
| 34 const blink::WebMediaStream& stream, | 33 const blink::WebMediaStream& stream, |
| 35 const blink::WebMediaStreamTrack& track) override; | 34 const blink::WebMediaStreamTrack& track) override; |
| 36 void didStopLocalMediaStream(const blink::WebMediaStream& stream) override; | 35 void didStopLocalMediaStream(const blink::WebMediaStream& stream) override; |
| 37 bool didStopMediaStreamTrack( | 36 bool didStopMediaStreamTrack( |
| 38 const blink::WebMediaStreamTrack& track) override; | 37 const blink::WebMediaStreamTrack& track) override; |
| 39 void didCreateMediaStream(blink::WebMediaStream& stream) override; | 38 void didCreateMediaStream(blink::WebMediaStream& stream) override; |
| 40 blink::WebAudioSourceProvider* createWebAudioSourceFromMediaStreamTrack( | 39 blink::WebAudioSourceProvider* createWebAudioSourceFromMediaStreamTrack( |
| 41 const blink::WebMediaStreamTrack& track) override; | 40 const blink::WebMediaStreamTrack& track) override; |
| 42 | 41 |
| 43 // Task related methods | |
| 44 WebTaskList* mutable_task_list() { return &task_list_; } | |
| 45 | |
| 46 private: | 42 private: |
| 47 WebTaskList task_list_; | |
| 48 TestInterfaces* interfaces_; | 43 TestInterfaces* interfaces_; |
| 49 | 44 |
| 50 DISALLOW_COPY_AND_ASSIGN(MockWebMediaStreamCenter); | 45 DISALLOW_COPY_AND_ASSIGN(MockWebMediaStreamCenter); |
| 51 }; | 46 }; |
| 52 | 47 |
| 53 } // namespace test_runner | 48 } // namespace test_runner |
| 54 | 49 |
| 55 #endif // COMPONENTS_TEST_RUNNER_MOCK_WEB_MEDIA_STREAM_CENTER_H_ | 50 #endif // COMPONENTS_TEST_RUNNER_MOCK_WEB_MEDIA_STREAM_CENTER_H_ |
| OLD | NEW |