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

Unified Diff: services/video_capture/mock_device_descriptor_receiver.h

Issue 2386183002: Replace manual conversions with Mojo type mappings
Patch Set: Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
Index: services/video_capture/mock_device_descriptor_receiver.h
diff --git a/services/video_capture/mock_device_descriptor_receiver.h b/services/video_capture/mock_device_descriptor_receiver.h
index 8f44dd7b5168894b3873695fe7b9d88a73e090b6..5781183445b3baef100073339c47e0a072a7f529 100644
--- a/services/video_capture/mock_device_descriptor_receiver.h
+++ b/services/video_capture/mock_device_descriptor_receiver.h
@@ -5,7 +5,7 @@
#ifndef SERVICES_VIDEO_CAPTURE_MOCK_DEVICE_DESCRIPTOR_RECEIVER_H_
#define SERVICES_VIDEO_CAPTURE_MOCK_DEVICE_DESCRIPTOR_RECEIVER_H_
-#include "services/video_capture/public/interfaces/video_capture_device_factory.mojom.h"
+#include "media/capture/video/video_capture_device_descriptor.h"
#include "testing/gmock/include/gmock/gmock.h"
namespace video_capture {
@@ -17,13 +17,9 @@ class MockDeviceDescriptorReceiver {
MockDeviceDescriptorReceiver();
~MockDeviceDescriptorReceiver();
- // Use forwarding method to work around gmock not supporting move-only types.
- void HandleEnumerateDeviceDescriptorsCallback(
- std::vector<mojom::VideoCaptureDeviceDescriptorPtr> descriptors);
-
MOCK_METHOD1(
OnEnumerateDeviceDescriptorsCallback,
- void(const std::vector<mojom::VideoCaptureDeviceDescriptorPtr>&));
+ void(const std::vector<media::VideoCaptureDeviceDescriptor>&));
};
} // namespace video_capture
« no previous file with comments | « services/video_capture/fake_device_unittest.cc ('k') | services/video_capture/mock_device_descriptor_receiver.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698