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

Unified Diff: services/video_capture/fake_device_descriptor_unittest.cc

Issue 2378943002: Let clients interact with VideoCaptureDeviceClient instead of VideoCaptureDevice (Closed)
Patch Set: mcasas comments 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_descriptor_unittest.cc
diff --git a/services/video_capture/fake_device_descriptor_unittest.cc b/services/video_capture/fake_device_descriptor_unittest.cc
index c0764270b85bbaac80af5b03565c7cb939b01419..d3e46e87347b7595aa9bf289fdfc41453fb2bff4 100644
--- a/services/video_capture/fake_device_descriptor_unittest.cc
+++ b/services/video_capture/fake_device_descriptor_unittest.cc
@@ -4,7 +4,7 @@
#include "base/run_loop.h"
#include "services/video_capture/fake_device_descriptor_test.h"
-#include "services/video_capture/mock_video_capture_device_client.h"
+#include "services/video_capture/mock_video_frame_receiver.h"
using testing::_;
using testing::InvokeWithoutArgs;
@@ -78,16 +78,16 @@ TEST_F(FakeDeviceDescriptorTest, CanUseSecondRequestedProxy) {
arbitrary_requested_format->pixel_storage = mojom::VideoPixelStorage::CPU;
base::RunLoop wait_loop_2;
- mojom::VideoCaptureDeviceClientPtr client_proxy;
- MockVideoCaptureDeviceClient client(mojo::GetProxy(&client_proxy));
- EXPECT_CALL(client, OnFrameAvailablePtr(_))
+ mojom::VideoFrameReceiverPtr receiver_proxy;
+ MockVideoFrameReceiver receiver(mojo::GetProxy(&receiver_proxy));
+ EXPECT_CALL(receiver, OnIncomingCapturedVideoFramePtr(_))
.WillRepeatedly(
InvokeWithoutArgs([&wait_loop_2]() { wait_loop_2.Quit(); }));
device_proxy_2->Start(std::move(arbitrary_requested_format),
mojom::ResolutionChangePolicy::FIXED_RESOLUTION,
mojom::PowerLineFrequency::DEFAULT,
- std::move(client_proxy));
+ std::move(receiver_proxy));
wait_loop_2.Run();
}

Powered by Google App Engine
This is Rietveld 408576698