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

Unified Diff: device/usb/mojo/device_manager_impl_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 | « device/usb/mojo/device_impl_unittest.cc ('k') | device/vr/vr_device_manager_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/usb/mojo/device_manager_impl_unittest.cc
diff --git a/device/usb/mojo/device_manager_impl_unittest.cc b/device/usb/mojo/device_manager_impl_unittest.cc
index c0bd627e3e340f5dc9646f71d7826c7bd4d9844c..13c712628feebe9b070990ca68ad664b2b1c5835 100644
--- a/device/usb/mojo/device_manager_impl_unittest.cc
+++ b/device/usb/mojo/device_manager_impl_unittest.cc
@@ -50,7 +50,7 @@ class USBDeviceManagerImplTest : public testing::Test {
DeviceManagerPtr ConnectToDeviceManager() {
DeviceManagerPtr device_manager;
DeviceManagerImpl::Create(permission_provider_.GetWeakPtr(),
- mojo::GetProxy(&device_manager));
+ mojo::MakeRequest(&device_manager));
return device_manager;
}
@@ -152,14 +152,14 @@ TEST_F(USBDeviceManagerImplTest, GetDevice) {
{
base::RunLoop loop;
DevicePtr device;
- device_manager->GetDevice(mock_device->guid(), mojo::GetProxy(&device));
+ device_manager->GetDevice(mock_device->guid(), mojo::MakeRequest(&device));
device->GetDeviceInfo(base::Bind(&ExpectDeviceInfoAndThen,
mock_device->guid(), loop.QuitClosure()));
loop.Run();
}
DevicePtr bad_device;
- device_manager->GetDevice("not a real guid", mojo::GetProxy(&bad_device));
+ device_manager->GetDevice("not a real guid", mojo::MakeRequest(&bad_device));
{
base::RunLoop loop;
« no previous file with comments | « device/usb/mojo/device_impl_unittest.cc ('k') | device/vr/vr_device_manager_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698