Don't preload rarely seen large images
[chromium-blink-merge.git] / components / test_runner / mock_web_media_stream_center.h
blob3d508ec0f67ec79239640b7f69172c980602e6fb
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
3 // found in the LICENSE file.
5 #ifndef COMPONENTS_TEST_RUNNER_MOCK_WEB_MEDIA_STREAM_CENTER_H_
6 #define COMPONENTS_TEST_RUNNER_MOCK_WEB_MEDIA_STREAM_CENTER_H_
8 #include "base/basictypes.h"
9 #include "components/test_runner/web_task.h"
10 #include "third_party/WebKit/public/platform/WebMediaStreamCenter.h"
12 namespace blink {
13 class WebAudioSourceProvider;
14 class WebMediaStreamCenterClient;
17 namespace test_runner {
19 class TestInterfaces;
21 class MockWebMediaStreamCenter : public blink::WebMediaStreamCenter {
22 public:
23 MockWebMediaStreamCenter(blink::WebMediaStreamCenterClient* client,
24 TestInterfaces* interfaces);
25 virtual ~MockWebMediaStreamCenter();
27 virtual void didEnableMediaStreamTrack(
28 const blink::WebMediaStreamTrack& track);
29 virtual void didDisableMediaStreamTrack(
30 const blink::WebMediaStreamTrack& track);
31 virtual bool didAddMediaStreamTrack(const blink::WebMediaStream& stream,
32 const blink::WebMediaStreamTrack& track);
33 virtual bool didRemoveMediaStreamTrack(
34 const blink::WebMediaStream& stream,
35 const blink::WebMediaStreamTrack& track);
36 virtual void didStopLocalMediaStream(const blink::WebMediaStream& stream);
37 virtual bool didStopMediaStreamTrack(const blink::WebMediaStreamTrack& track);
38 virtual void didCreateMediaStream(blink::WebMediaStream& stream);
39 virtual blink::WebAudioSourceProvider*
40 createWebAudioSourceFromMediaStreamTrack(
41 const blink::WebMediaStreamTrack& track);
43 // Task related methods
44 WebTaskList* mutable_task_list() { return &task_list_; }
46 private:
47 WebTaskList task_list_;
48 TestInterfaces* interfaces_;
50 DISALLOW_COPY_AND_ASSIGN(MockWebMediaStreamCenter);
53 } // namespace test_runner
55 #endif // COMPONENTS_TEST_RUNNER_MOCK_WEB_MEDIA_STREAM_CENTER_H_