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

Unified Diff: device/serial/serial_service_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
Index: device/serial/serial_service_unittest.cc
diff --git a/device/serial/serial_service_unittest.cc b/device/serial/serial_service_unittest.cc
index 7e4405a2be4409e5379803a1f3743679ffe6b6bb..8c72f6f721a7b481ceff818cc54147aa1108c548 100644
--- a/device/serial/serial_service_unittest.cc
+++ b/device/serial/serial_service_unittest.cc
@@ -86,15 +86,15 @@ class SerialServiceTest : public testing::Test {
base::Unretained(this)),
base::ThreadTaskRunnerHandle::Get()),
base::MakeUnique<FakeSerialDeviceEnumerator>()),
- mojo::GetProxy(&service));
+ mojo::MakeRequest(&service));
mojo::InterfacePtr<serial::Connection> connection;
mojo::InterfacePtr<serial::DataSink> sink;
mojo::InterfacePtr<serial::DataSource> source;
mojo::InterfacePtr<serial::DataSourceClient> source_client;
- mojo::GetProxy(&source_client);
+ mojo::MakeRequest(&source_client);
service->Connect(path, serial::ConnectionOptions::New(),
- mojo::GetProxy(&connection), mojo::GetProxy(&sink),
- mojo::GetProxy(&source), std::move(source_client));
+ mojo::MakeRequest(&connection), mojo::MakeRequest(&sink),
+ mojo::MakeRequest(&source), std::move(source_client));
connection.set_connection_error_handler(base::Bind(
&SerialServiceTest::OnConnectionError, base::Unretained(this)));
expecting_error_ = !expecting_success;
@@ -120,7 +120,7 @@ class SerialServiceTest : public testing::Test {
TEST_F(SerialServiceTest, GetDevices) {
mojo::InterfacePtr<serial::SerialService> service;
- SerialServiceImpl::Create(NULL, NULL, mojo::GetProxy(&service));
+ SerialServiceImpl::Create(NULL, NULL, mojo::MakeRequest(&service));
service.set_connection_error_handler(base::Bind(
&SerialServiceTest::OnConnectionError, base::Unretained(this)));
mojo::Array<serial::DeviceInfoPtr> result;
« no previous file with comments | « device/power_monitor/public/cpp/power_monitor_broadcast_source.cc ('k') | device/usb/mojo/device_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698