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

Side by Side Diff: components/test_runner/mock_web_user_media_client.h

Issue 2707183003: Move //components/test_runner back into //content/shell (Closed)
Patch Set: Trim DEPS Created 3 years, 10 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 COMPONENTS_TEST_RUNNER_MOCK_WEB_USER_MEDIA_CLIENT_H_
6 #define COMPONENTS_TEST_RUNNER_MOCK_WEB_USER_MEDIA_CLIENT_H_
7
8 #include "base/macros.h"
9 #include "base/memory/weak_ptr.h"
10 #include "third_party/WebKit/public/web/WebMediaDeviceChangeObserver.h"
11 #include "third_party/WebKit/public/web/WebUserMediaClient.h"
12
13 namespace test_runner {
14
15 class WebTestDelegate;
16
17 class MockWebUserMediaClient : public blink::WebUserMediaClient {
18 public:
19 explicit MockWebUserMediaClient(WebTestDelegate* delegate);
20 ~MockWebUserMediaClient() override;
21
22 void requestUserMedia(const blink::WebUserMediaRequest&) override;
23 void cancelUserMediaRequest(const blink::WebUserMediaRequest&) override;
24 void requestMediaDevices(const blink::WebMediaDevicesRequest&) override;
25 void setMediaDeviceChangeObserver(
26 const blink::WebMediaDeviceChangeObserver&) override;
27
28 private:
29 WebTestDelegate* delegate_;
30 blink::WebMediaDeviceChangeObserver media_device_change_observer_;
31 bool should_enumerate_extra_device_;
32
33 base::WeakPtrFactory<MockWebUserMediaClient> weak_factory_;
34
35 DISALLOW_COPY_AND_ASSIGN(MockWebUserMediaClient);
36 };
37
38 } // namespace test_runner
39
40 #endif // COMPONENTS_TEST_RUNNER_MOCK_WEB_USER_MEDIA_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698