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

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

Issue 564423002: Update MockWebUserMediaClient for requestSources. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Compile fix Android. Created 6 years, 3 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
« no previous file with comments | « no previous file | content/shell/renderer/test_runner/mock_web_user_media_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 CONTENT_SHELL_RENDERER_TEST_RUNNER_MOCK_WEB_USER_MEDIA_CLIENT_H_ 5 #ifndef CONTENT_SHELL_RENDERER_TEST_RUNNER_MOCK_WEB_USER_MEDIA_CLIENT_H_
6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_MOCK_WEB_USER_MEDIA_CLIENT_H_ 6 #define CONTENT_SHELL_RENDERER_TEST_RUNNER_MOCK_WEB_USER_MEDIA_CLIENT_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "content/shell/renderer/test_runner/web_task.h" 9 #include "content/shell/renderer/test_runner/web_task.h"
10 #include "third_party/WebKit/public/web/WebUserMediaClient.h" 10 #include "third_party/WebKit/public/web/WebUserMediaClient.h"
11 11
12 namespace content { 12 namespace content {
13 13
14 class WebTestDelegate; 14 class WebTestDelegate;
15 15
16 class MockWebUserMediaClient : public blink::WebUserMediaClient { 16 class MockWebUserMediaClient : public blink::WebUserMediaClient {
17 public: 17 public:
18 explicit MockWebUserMediaClient(WebTestDelegate* delegate); 18 explicit MockWebUserMediaClient(WebTestDelegate* delegate);
19 virtual ~MockWebUserMediaClient() {} 19 virtual ~MockWebUserMediaClient() {}
20 20
21 virtual void requestUserMedia(const blink::WebUserMediaRequest&) OVERRIDE; 21 virtual void requestUserMedia(const blink::WebUserMediaRequest&);
22 virtual void cancelUserMediaRequest( 22 virtual void cancelUserMediaRequest(const blink::WebUserMediaRequest&);
23 const blink::WebUserMediaRequest&) OVERRIDE; 23 virtual void requestMediaDevices(const blink::WebMediaDevicesRequest&);
24 virtual void requestMediaDevices( 24 virtual void cancelMediaDevicesRequest(const blink::WebMediaDevicesRequest&);
25 const blink::WebMediaDevicesRequest&) OVERRIDE; 25 virtual void requestSources(const blink::WebMediaStreamTrackSourcesRequest&);
26 virtual void cancelMediaDevicesRequest(
27 const blink::WebMediaDevicesRequest&) OVERRIDE;
28 26
29 // Task related methods 27 // Task related methods
30 WebTaskList* mutable_task_list() { return &task_list_; } 28 WebTaskList* mutable_task_list() { return &task_list_; }
31 29
32 private: 30 private:
33 WebTaskList task_list_; 31 WebTaskList task_list_;
34 WebTestDelegate* delegate_; 32 WebTestDelegate* delegate_;
35 33
36 DISALLOW_COPY_AND_ASSIGN(MockWebUserMediaClient); 34 DISALLOW_COPY_AND_ASSIGN(MockWebUserMediaClient);
37 }; 35 };
38 36
39 } // namespace content 37 } // namespace content
40 38
41 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_MOCK_WEB_USER_MEDIA_CLIENT_H_ 39 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_MOCK_WEB_USER_MEDIA_CLIENT_H_
OLDNEW
« no previous file with comments | « no previous file | content/shell/renderer/test_runner/mock_web_user_media_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698