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

Unified Diff: services/video_capture/fake_device_descriptor_unittest.cc

Issue 2378943002: Let clients interact with VideoCaptureDeviceClient instead of VideoCaptureDevice (Closed)
Patch Set: Remove method AsClientBuffer() 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 5b3a31115ffc6b08770adc36e3febc2c0814f884..7f8427c3fa1670aff681c433d048e4ce0b21c167 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 = media::PIXEL_STORAGE_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(arbitrary_requested_format,
media::RESOLUTION_POLICY_FIXED_RESOLUTION,
media::PowerLineFrequency::FREQUENCY_DEFAULT,
- std::move(client_proxy));
+ std::move(receiver_proxy));
wait_loop_2.Run();
}
« no previous file with comments | « services/video_capture/device_client_mojo_to_media_adapter.cc ('k') | services/video_capture/fake_device_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698