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

Unified Diff: services/video_capture/test/fake_device_unittest.cc

Issue 2589663003: mojo:: Rename mojo::GetProxy() to mojo::MakeRequest() (Closed)
Patch Set: Rebase Created 4 years 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/fake_device_test.cc ('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/fake_device_unittest.cc
diff --git a/services/video_capture/test/fake_device_unittest.cc b/services/video_capture/test/fake_device_unittest.cc
index b0ce65b280ed252a0158c7c259e2f80640f87f45..7af7a1af651df18ce51980fb0cc709b7b283a257 100644
--- a/services/video_capture/test/fake_device_unittest.cc
+++ b/services/video_capture/test/fake_device_unittest.cc
@@ -35,7 +35,7 @@ TEST_F(FakeDeviceTest, FrameCallbacksArrive) {
const int kNumFramesToWaitFor = 3;
int num_frames_arrived = 0;
mojom::ReceiverPtr receiver_proxy;
- MockReceiver receiver(mojo::GetProxy(&receiver_proxy));
+ MockReceiver receiver(mojo::MakeRequest(&receiver_proxy));
EXPECT_CALL(receiver, OnIncomingCapturedVideoFramePtr(_))
.WillRepeatedly(InvokeWithoutArgs(
[&wait_loop, &kNumFramesToWaitFor, &num_frames_arrived]() {
@@ -57,7 +57,7 @@ TEST_F(FakeDeviceTest, ReceiveFramesFromFakeCaptureDevice) {
constexpr int num_frames_to_receive = 2;
FrameInfo received_frame_infos[num_frames_to_receive];
int received_frame_count = 0;
- MockReceiver receiver(mojo::GetProxy(&receiver_proxy));
+ MockReceiver receiver(mojo::MakeRequest(&receiver_proxy));
EXPECT_CALL(receiver, OnIncomingCapturedVideoFramePtr(_))
.WillRepeatedly(Invoke(
[&received_frame_infos, &received_frame_count, &num_frames_to_receive,
« no previous file with comments | « services/video_capture/test/fake_device_test.cc ('k') | services/video_capture/test/mock_device_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698