| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 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 | 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 WebUserMediaClientMock_h | 5 #ifndef WebUserMediaClientMock_h |
| 6 #define WebUserMediaClientMock_h | 6 #define WebUserMediaClientMock_h |
| 7 | 7 |
| 8 #include "base/basictypes.h" |
| 8 #include "content/shell/renderer/test_runner/TestCommon.h" | 9 #include "content/shell/renderer/test_runner/TestCommon.h" |
| 9 #include "content/shell/renderer/test_runner/WebTask.h" | 10 #include "content/shell/renderer/test_runner/WebTask.h" |
| 10 #include "third_party/WebKit/public/platform/WebCommon.h" | 11 #include "third_party/WebKit/public/platform/WebCommon.h" |
| 11 #include "third_party/WebKit/public/platform/WebNonCopyable.h" | |
| 12 #include "third_party/WebKit/public/platform/WebString.h" | 12 #include "third_party/WebKit/public/platform/WebString.h" |
| 13 #include "third_party/WebKit/public/platform/WebURL.h" | 13 #include "third_party/WebKit/public/platform/WebURL.h" |
| 14 #include "third_party/WebKit/public/web/WebUserMediaClient.h" | 14 #include "third_party/WebKit/public/web/WebUserMediaClient.h" |
| 15 | 15 |
| 16 namespace WebTestRunner { | 16 namespace WebTestRunner { |
| 17 | 17 |
| 18 class WebTestDelegate; | 18 class WebTestDelegate; |
| 19 | 19 |
| 20 class WebUserMediaClientMock : public blink::WebUserMediaClient, public blink::W
ebNonCopyable { | 20 class WebUserMediaClientMock : public blink::WebUserMediaClient { |
| 21 public: | 21 public: |
| 22 explicit WebUserMediaClientMock(WebTestDelegate*); | 22 explicit WebUserMediaClientMock(WebTestDelegate*); |
| 23 ~WebUserMediaClientMock() { } | 23 ~WebUserMediaClientMock() { } |
| 24 | 24 |
| 25 virtual void requestUserMedia(const blink::WebUserMediaRequest&) OVERRIDE; | 25 virtual void requestUserMedia(const blink::WebUserMediaRequest&) OVERRIDE; |
| 26 virtual void cancelUserMediaRequest(const blink::WebUserMediaRequest&) OVERR
IDE; | 26 virtual void cancelUserMediaRequest(const blink::WebUserMediaRequest&) OVERR
IDE; |
| 27 | 27 |
| 28 // Task related methods | 28 // Task related methods |
| 29 WebTaskList* taskList() { return &m_taskList; } | 29 WebTaskList* taskList() { return &m_taskList; } |
| 30 | 30 |
| 31 private: | 31 private: |
| 32 WebTaskList m_taskList; | 32 WebTaskList m_taskList; |
| 33 WebTestDelegate* m_delegate; | 33 WebTestDelegate* m_delegate; |
| 34 |
| 35 DISALLOW_COPY_AND_ASSIGN(WebUserMediaClientMock); |
| 34 }; | 36 }; |
| 35 | 37 |
| 36 } | 38 } |
| 37 | 39 |
| 38 #endif // WebUserMediaClientMock_h | 40 #endif // WebUserMediaClientMock_h |
| OLD | NEW |