| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBUSERMEDIACLIENTMOCK_H_ | |
| 6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBUSERMEDIACLIENTMOCK_H_ | |
| 7 | |
| 8 #include "base/basictypes.h" | |
| 9 #include "content/shell/renderer/test_runner/TestCommon.h" | |
| 10 #include "content/shell/renderer/test_runner/WebTask.h" | |
| 11 #include "third_party/WebKit/public/platform/WebString.h" | |
| 12 #include "third_party/WebKit/public/platform/WebURL.h" | |
| 13 #include "third_party/WebKit/public/web/WebUserMediaClient.h" | |
| 14 | |
| 15 namespace content { | |
| 16 | |
| 17 class WebTestDelegate; | |
| 18 | |
| 19 class WebUserMediaClientMock : public blink::WebUserMediaClient { | |
| 20 public: | |
| 21 explicit WebUserMediaClientMock(WebTestDelegate*); | |
| 22 virtual ~WebUserMediaClientMock() { } | |
| 23 | |
| 24 virtual void requestUserMedia(const blink::WebUserMediaRequest&) OVERRIDE; | |
| 25 virtual void cancelUserMediaRequest(const blink::WebUserMediaRequest&) OVERR
IDE; | |
| 26 virtual void requestMediaDevices(const blink::WebMediaDevicesRequest&) OVERR
IDE; | |
| 27 virtual void cancelMediaDevicesRequest(const blink::WebMediaDevicesRequest&)
OVERRIDE; | |
| 28 | |
| 29 // Task related methods | |
| 30 WebTaskList* mutable_task_list() { return &m_taskList; } | |
| 31 | |
| 32 private: | |
| 33 WebTaskList m_taskList; | |
| 34 WebTestDelegate* m_delegate; | |
| 35 | |
| 36 DISALLOW_COPY_AND_ASSIGN(WebUserMediaClientMock); | |
| 37 }; | |
| 38 | |
| 39 } // namespace content | |
| 40 | |
| 41 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBUSERMEDIACLIENTMOCK_H_ | |
| OLD | NEW |