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

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

Issue 1167703002: Move test runner to a component (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updates Created 5 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
OLDNEW
(Empty)
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.
4
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_
7
8 #include "base/macros.h"
9 #include "content/shell/renderer/test_runner/web_task.h"
10 #include "third_party/WebKit/public/web/WebUserMediaClient.h"
11
12 namespace content {
13
14 class WebTestDelegate;
15
16 class MockWebUserMediaClient : public blink::WebUserMediaClient {
17 public:
18 explicit MockWebUserMediaClient(WebTestDelegate* delegate);
19 virtual ~MockWebUserMediaClient() {}
20
21 virtual void requestUserMedia(const blink::WebUserMediaRequest&);
22 virtual void cancelUserMediaRequest(const blink::WebUserMediaRequest&);
23 virtual void requestMediaDevices(const blink::WebMediaDevicesRequest&);
24 virtual void cancelMediaDevicesRequest(const blink::WebMediaDevicesRequest&);
25 virtual void requestSources(const blink::WebMediaStreamTrackSourcesRequest&);
26
27 // Task related methods
28 WebTaskList* mutable_task_list() { return &task_list_; }
29
30 private:
31 WebTaskList task_list_;
32 WebTestDelegate* delegate_;
33
34 DISALLOW_COPY_AND_ASSIGN(MockWebUserMediaClient);
35 };
36
37 } // namespace content
38
39 #endif // CONTENT_SHELL_RENDERER_TEST_RUNNER_MOCK_WEB_USER_MEDIA_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698