| 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 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 45 bool request_audio_output, | 45 bool request_audio_output, |
| 46 EnumerateDevicesCallback) override { | 46 EnumerateDevicesCallback) override { |
| 47 NOTREACHED(); | 47 NOTREACHED(); |
| 48 } | 48 } |
| 49 | 49 |
| 50 void GetVideoInputCapabilities( | 50 void GetVideoInputCapabilities( |
| 51 GetVideoInputCapabilitiesCallback client_callback) override { | 51 GetVideoInputCapabilitiesCallback client_callback) override { |
| 52 NOTREACHED(); | 52 NOTREACHED(); |
| 53 } | 53 } |
| 54 | 54 |
| 55 void GetAudioInputCapabilities( |
| 56 GetAudioInputCapabilitiesCallback client_callback) override { |
| 57 NOTREACHED(); |
| 58 } |
| 59 |
| 55 ::mojom::MediaDevicesDispatcherHostPtr CreateInterfacePtrAndBind() { | 60 ::mojom::MediaDevicesDispatcherHostPtr CreateInterfacePtrAndBind() { |
| 56 return binding_.CreateInterfacePtrAndBind(); | 61 return binding_.CreateInterfacePtrAndBind(); |
| 57 } | 62 } |
| 58 | 63 |
| 59 private: | 64 private: |
| 60 mojo::Binding<::mojom::MediaDevicesDispatcherHost> binding_; | 65 mojo::Binding<::mojom::MediaDevicesDispatcherHost> binding_; |
| 61 }; | 66 }; |
| 62 | 67 |
| 63 class MediaDevicesEventDispatcherTest : public ::testing::Test { | 68 class MediaDevicesEventDispatcherTest : public ::testing::Test { |
| 64 public: | 69 public: |
| (...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 179 MediaDeviceType type = static_cast<MediaDeviceType>(i); | 184 MediaDeviceType type = static_cast<MediaDeviceType>(i); |
| 180 EXPECT_CALL( | 185 EXPECT_CALL( |
| 181 media_devices_dispatcher_, | 186 media_devices_dispatcher_, |
| 182 UnsubscribeDeviceChangeNotifications(type, subscription_list_2[type])); | 187 UnsubscribeDeviceChangeNotifications(type, subscription_list_2[type])); |
| 183 } | 188 } |
| 184 event_dispatcher_->UnsubscribeDeviceChangeNotifications(subscription_list_2); | 189 event_dispatcher_->UnsubscribeDeviceChangeNotifications(subscription_list_2); |
| 185 base::RunLoop().RunUntilIdle(); | 190 base::RunLoop().RunUntilIdle(); |
| 186 } | 191 } |
| 187 | 192 |
| 188 } // namespace content | 193 } // namespace content |
| OLD | NEW |