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

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

Issue 2471803002: Remove MediaStreamTrack.getSources(). (Closed)
Patch Set: Fix platform-specific expectations file Created 4 years, 1 month 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
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 COMPONENTS_TEST_RUNNER_MOCK_WEB_USER_MEDIA_CLIENT_H_ 5 #ifndef COMPONENTS_TEST_RUNNER_MOCK_WEB_USER_MEDIA_CLIENT_H_
6 #define COMPONENTS_TEST_RUNNER_MOCK_WEB_USER_MEDIA_CLIENT_H_ 6 #define COMPONENTS_TEST_RUNNER_MOCK_WEB_USER_MEDIA_CLIENT_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/weak_ptr.h" 9 #include "base/memory/weak_ptr.h"
10 #include "third_party/WebKit/public/web/WebMediaDeviceChangeObserver.h" 10 #include "third_party/WebKit/public/web/WebMediaDeviceChangeObserver.h"
11 #include "third_party/WebKit/public/web/WebUserMediaClient.h" 11 #include "third_party/WebKit/public/web/WebUserMediaClient.h"
12 12
13 namespace test_runner { 13 namespace test_runner {
14 14
15 class WebTestDelegate; 15 class WebTestDelegate;
16 16
17 class MockWebUserMediaClient : public blink::WebUserMediaClient { 17 class MockWebUserMediaClient : public blink::WebUserMediaClient {
18 public: 18 public:
19 explicit MockWebUserMediaClient(WebTestDelegate* delegate); 19 explicit MockWebUserMediaClient(WebTestDelegate* delegate);
20 ~MockWebUserMediaClient() override; 20 ~MockWebUserMediaClient() override;
21 21
22 void requestUserMedia(const blink::WebUserMediaRequest&) override; 22 void requestUserMedia(const blink::WebUserMediaRequest&) override;
23 void cancelUserMediaRequest(const blink::WebUserMediaRequest&) override; 23 void cancelUserMediaRequest(const blink::WebUserMediaRequest&) override;
24 void requestMediaDevices(const blink::WebMediaDevicesRequest&) override; 24 void requestMediaDevices(const blink::WebMediaDevicesRequest&) override;
25 void requestSources(const blink::WebMediaStreamTrackSourcesRequest&) override;
26 void setMediaDeviceChangeObserver( 25 void setMediaDeviceChangeObserver(
27 const blink::WebMediaDeviceChangeObserver&) override; 26 const blink::WebMediaDeviceChangeObserver&) override;
28 27
29 private: 28 private:
30 WebTestDelegate* delegate_; 29 WebTestDelegate* delegate_;
31 blink::WebMediaDeviceChangeObserver media_device_change_observer_; 30 blink::WebMediaDeviceChangeObserver media_device_change_observer_;
32 bool should_enumerate_extra_device_; 31 bool should_enumerate_extra_device_;
33 32
34 base::WeakPtrFactory<MockWebUserMediaClient> weak_factory_; 33 base::WeakPtrFactory<MockWebUserMediaClient> weak_factory_;
35 34
36 DISALLOW_COPY_AND_ASSIGN(MockWebUserMediaClient); 35 DISALLOW_COPY_AND_ASSIGN(MockWebUserMediaClient);
37 }; 36 };
38 37
39 } // namespace test_runner 38 } // namespace test_runner
40 39
41 #endif // COMPONENTS_TEST_RUNNER_MOCK_WEB_USER_MEDIA_CLIENT_H_ 40 #endif // COMPONENTS_TEST_RUNNER_MOCK_WEB_USER_MEDIA_CLIENT_H_
OLDNEW
« no previous file with comments | « components/test_runner/mock_web_media_stream_center.cc ('k') | components/test_runner/mock_web_user_media_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698