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

Unified Diff: services/video_capture/test/mock_device_test.h

Issue 2813343002: [Mojo Video Capture] Switch to using Mojo structs in media/capture/mojo (Closed)
Patch Set: Removed extraneous AtLeast Created 3 years, 8 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
« no previous file with comments | « services/video_capture/test/mock_device_factory.h ('k') | services/video_capture/test/mock_device_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: services/video_capture/test/mock_device_test.h
diff --git a/services/video_capture/test/mock_device_test.h b/services/video_capture/test/mock_device_test.h
index 4713861c88ae265a55f6caae4a9a90c4bd87c003..1133118ccd53e9c1d2608f4cae3057be74c01256 100644
--- a/services/video_capture/test/mock_device_test.h
+++ b/services/video_capture/test/mock_device_test.h
@@ -8,7 +8,6 @@
#include "base/test/mock_callback.h"
#include "media/capture/video/video_capture_device.h"
#include "services/video_capture/device_factory_media_to_mojo_adapter.h"
-#include "services/video_capture/public/cpp/capture_settings.h"
#include "services/video_capture/public/interfaces/service.mojom.h"
#include "services/video_capture/test/mock_device_factory.h"
#include "services/video_capture/test/mock_receiver.h"
@@ -37,6 +36,8 @@ class MockDevice : public media::VideoCaptureDevice {
void(media::mojom::PhotoSettingsPtr* settings,
SetPhotoOptionsCallback* callback));
MOCK_METHOD1(DoTakePhoto, void(TakePhotoCallback* callback));
+ MOCK_METHOD2(OnUtilizationReport,
+ void(int frame_feedback_id, double utilization));
void AllocateAndStart(const media::VideoCaptureParams& params,
std::unique_ptr<Client> client) override;
@@ -60,14 +61,14 @@ class MockDeviceTest : public ::testing::Test {
mojom::DeviceFactoryPtr factory_;
std::unique_ptr<mojo::Binding<mojom::DeviceFactory>> mock_factory_binding_;
- base::MockCallback<mojom::DeviceFactory::EnumerateDeviceDescriptorsCallback>
- descriptor_receiver_;
+ base::MockCallback<mojom::DeviceFactory::GetDeviceInfosCallback>
+ device_infos_receiver_;
MockDevice mock_device_;
std::unique_ptr<MockReceiver> mock_receiver_;
mojom::DevicePtr device_proxy_;
mojom::ReceiverPtr mock_receiver_proxy_;
- CaptureSettings requested_settings_;
+ media::VideoCaptureParams requested_settings_;
private:
std::unique_ptr<base::MessageLoop> message_loop_;
« no previous file with comments | « services/video_capture/test/mock_device_factory.h ('k') | services/video_capture/test/mock_device_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698