OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 #include "content/renderer/media/media_devices_event_dispatcher.h" | 5 #include "content/renderer/media/media_devices_event_dispatcher.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <memory> | 9 #include <memory> |
10 #include <string> | 10 #include <string> |
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
49 EnumerateDevicesCallback) override { | 49 EnumerateDevicesCallback) override { |
50 NOTREACHED(); | 50 NOTREACHED(); |
51 } | 51 } |
52 | 52 |
53 void GetVideoInputCapabilities( | 53 void GetVideoInputCapabilities( |
54 const url::Origin& security_origin, | 54 const url::Origin& security_origin, |
55 GetVideoInputCapabilitiesCallback client_callback) override { | 55 GetVideoInputCapabilitiesCallback client_callback) override { |
56 NOTREACHED(); | 56 NOTREACHED(); |
57 } | 57 } |
58 | 58 |
| 59 void GetAudioInputCapabilities( |
| 60 const url::Origin& security_origin, |
| 61 GetAudioInputCapabilitiesCallback client_callback) override { |
| 62 NOTREACHED(); |
| 63 } |
| 64 |
59 ::mojom::MediaDevicesDispatcherHostPtr CreateInterfacePtrAndBind() { | 65 ::mojom::MediaDevicesDispatcherHostPtr CreateInterfacePtrAndBind() { |
60 return binding_.CreateInterfacePtrAndBind(); | 66 return binding_.CreateInterfacePtrAndBind(); |
61 } | 67 } |
62 | 68 |
63 private: | 69 private: |
64 mojo::Binding<::mojom::MediaDevicesDispatcherHost> binding_; | 70 mojo::Binding<::mojom::MediaDevicesDispatcherHost> binding_; |
65 }; | 71 }; |
66 | 72 |
67 class MediaDevicesEventDispatcherTest : public ::testing::Test { | 73 class MediaDevicesEventDispatcherTest : public ::testing::Test { |
68 public: | 74 public: |
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
192 MediaDeviceType type = static_cast<MediaDeviceType>(i); | 198 MediaDeviceType type = static_cast<MediaDeviceType>(i); |
193 EXPECT_CALL( | 199 EXPECT_CALL( |
194 media_devices_dispatcher_, | 200 media_devices_dispatcher_, |
195 UnsubscribeDeviceChangeNotifications(type, subscription_list_2[type])); | 201 UnsubscribeDeviceChangeNotifications(type, subscription_list_2[type])); |
196 } | 202 } |
197 event_dispatcher_->UnsubscribeDeviceChangeNotifications(subscription_list_2); | 203 event_dispatcher_->UnsubscribeDeviceChangeNotifications(subscription_list_2); |
198 base::RunLoop().RunUntilIdle(); | 204 base::RunLoop().RunUntilIdle(); |
199 } | 205 } |
200 | 206 |
201 } // namespace content | 207 } // namespace content |
OLD | NEW |