Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(16)

Side by Side Diff: content/shell/renderer/test_runner/mock_web_user_media_client.h

Issue 308073011: test_runner: Migrate WebUserMediaClientMock to our Chromium C++ style. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBUSERMEDIACLIENTMOCK_H_ 5 #ifndef CONTENT_SHELL_RENDERER_TEST_RUNNER_MOCK_WEB_USER_MEDIA_CLIENT_H_
6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBUSERMEDIACLIENTMOCK_H_ 6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_MOCK_WEB_USER_MEDIA_CLIENT_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/macros.h"
9 #include "content/shell/renderer/test_runner/TestCommon.h"
10 #include "content/shell/renderer/test_runner/WebTask.h" 9 #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" 10 #include "third_party/WebKit/public/web/WebUserMediaClient.h"
14 11
15 namespace content { 12 namespace content {
16 13
17 class WebTestDelegate; 14 class WebTestDelegate;
18 15
19 class WebUserMediaClientMock : public blink::WebUserMediaClient { 16 class MockWebUserMediaClient : public blink::WebUserMediaClient {
20 public: 17 public:
21 explicit WebUserMediaClientMock(WebTestDelegate*); 18 explicit MockWebUserMediaClient(WebTestDelegate* delegate);
22 virtual ~WebUserMediaClientMock() { } 19 virtual ~MockWebUserMediaClient() {}
23 20
24 virtual void requestUserMedia(const blink::WebUserMediaRequest&) OVERRIDE; 21 virtual void requestUserMedia(const blink::WebUserMediaRequest&) OVERRIDE;
25 virtual void cancelUserMediaRequest(const blink::WebUserMediaRequest&) OVERR IDE; 22 virtual void cancelUserMediaRequest(
26 virtual void requestMediaDevices(const blink::WebMediaDevicesRequest&) OVERR IDE; 23 const blink::WebUserMediaRequest&) OVERRIDE;
27 virtual void cancelMediaDevicesRequest(const blink::WebMediaDevicesRequest&) OVERRIDE; 24 virtual void requestMediaDevices(
25 const blink::WebMediaDevicesRequest&) OVERRIDE;
26 virtual void cancelMediaDevicesRequest(
27 const blink::WebMediaDevicesRequest&) OVERRIDE;
28 28
29 // Task related methods 29 // Task related methods
30 WebTaskList* mutable_task_list() { return &m_taskList; } 30 WebTaskList* mutable_task_list() { return &task_list_; }
31 31
32 private: 32 private:
33 WebTaskList m_taskList; 33 WebTaskList task_list_;
34 WebTestDelegate* m_delegate; 34 WebTestDelegate* delegate_;
35 35
36 DISALLOW_COPY_AND_ASSIGN(WebUserMediaClientMock); 36 DISALLOW_COPY_AND_ASSIGN(MockWebUserMediaClient);
37 }; 37 };
38 38
39 } // namespace content 39 } // namespace content
40 40
41 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_WEBUSERMEDIACLIENTMOCK_H_ 41 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_MOCK_WEB_USER_MEDIA_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698