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

Unified Diff: services/video_capture/test/mock_device_test.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_unittest.cc ('k') | services/video_capture/test/service_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.cc
diff --git a/services/video_capture/test/mock_device_test.cc b/services/video_capture/test/mock_device_test.cc
index a8e3274f5c38a45b4f6a7b4f331109a560840371..7fbdf8142b316e39395f5e471f6c9026a7d0ab27 100644
--- a/services/video_capture/test/mock_device_test.cc
+++ b/services/video_capture/test/mock_device_test.cc
@@ -55,7 +55,7 @@ void MockDeviceTest::SetUp() {
std::move(mock_device_factory), base::Bind(CreateJpegDecoder));
mock_factory_binding_ = base::MakeUnique<mojo::Binding<mojom::DeviceFactory>>(
- mock_device_factory_adapter_.get(), mojo::GetProxy(&factory_));
+ mock_device_factory_adapter_.get(), mojo::MakeRequest(&factory_));
media::VideoCaptureDeviceDescriptor mock_descriptor;
mock_descriptor.device_id = "MockDeviceId";
@@ -63,7 +63,7 @@ void MockDeviceTest::SetUp() {
// Obtain the mock device from the factory
factory_->CreateDevice(
- mock_descriptor.device_id, mojo::GetProxy(&device_proxy_),
+ mock_descriptor.device_id, mojo::MakeRequest(&device_proxy_),
base::Bind([](mojom::DeviceAccessResultCode result_code) {}));
requested_settings_.format.frame_size = gfx::Size(800, 600);
@@ -74,7 +74,7 @@ void MockDeviceTest::SetUp() {
media::PowerLineFrequency::FREQUENCY_DEFAULT;
mock_receiver_ =
- base::MakeUnique<MockReceiver>(mojo::GetProxy(&mock_receiver_proxy_));
+ base::MakeUnique<MockReceiver>(mojo::MakeRequest(&mock_receiver_proxy_));
}
} // namespace video_capture
« no previous file with comments | « services/video_capture/test/fake_device_unittest.cc ('k') | services/video_capture/test/service_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698