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

Side by Side Diff: content/renderer/media/media_devices_event_dispatcher_unittest.cc

Issue 2868853002: Add ability to retrieve capabilities for audio input devices to MediaDevicesDispatcherHost. (Closed)
Patch Set: fix Created 3 years, 7 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
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698