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

Unified Diff: services/video_capture/fake_device_unittest.cc

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/fake_device_unittest.cc
diff --git a/services/video_capture/fake_device_unittest.cc b/services/video_capture/fake_device_unittest.cc
index 36c04932439d7ca38b87965d93053c7d6964bb32..53d93d82e80bb2c6b017ade05cc8f48895814164 100644
--- a/services/video_capture/fake_device_unittest.cc
+++ b/services/video_capture/fake_device_unittest.cc
@@ -77,7 +77,7 @@ TEST_F(FakeDeviceTest, ReceiveFramesFromFakeCaptureDevice) {
}));
fake_device_proxy_->Start(
- requestable_settings_.Clone(), std::move(receiver_proxy));
+ requestable_settings_, std::move(receiver_proxy));
wait_loop.Run();
@@ -90,7 +90,7 @@ TEST_F(FakeDeviceTest, ReceiveFramesFromFakeCaptureDevice) {
ASSERT_EQ(media::VideoFrame::STORAGE_MOJO_SHARED_BUFFER,
frame_info.storage_type);
ASSERT_TRUE(frame_info.is_mappable);
- ASSERT_EQ(requestable_settings_->format->frame_size,
+ ASSERT_EQ(requestable_settings_.requested_format.frame_size,
frame_info.size);
// Timestamps are expected to increase
if (i > 0) {
« no previous file with comments | « services/video_capture/fake_device_test.cc ('k') | services/video_capture/mock_device_descriptor_receiver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698