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

Unified Diff: device/serial/serial_connection_unittest.cc

Issue 1143013002: Remove mojo::InterfaceImpl from device/serial. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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
« no previous file with comments | « device/serial/serial_connection_factory.cc ('k') | device/serial/serial_service_impl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/serial/serial_connection_unittest.cc
diff --git a/device/serial/serial_connection_unittest.cc b/device/serial/serial_connection_unittest.cc
index 7992b49f34df34b3a9a181c5ce7be181ec6e0adb..eb0ca272619fc2eb1e147514ab14ca6d6c44dd78 100644
--- a/device/serial/serial_connection_unittest.cc
+++ b/device/serial/serial_connection_unittest.cc
@@ -65,14 +65,13 @@ class SerialConnectionTest : public testing::Test, public mojo::ErrorHandler {
void SetUp() override {
message_loop_.reset(new base::MessageLoop);
mojo::InterfacePtr<serial::SerialService> service;
- mojo::BindToProxy(
- new SerialServiceImpl(
- new SerialConnectionFactory(
- base::Bind(&SerialConnectionTest::CreateIoHandler,
- base::Unretained(this)),
- base::ThreadTaskRunnerHandle::Get()),
- scoped_ptr<SerialDeviceEnumerator>(new FakeSerialDeviceEnumerator)),
- &service);
+ new SerialServiceImpl(
+ new SerialConnectionFactory(
+ base::Bind(&SerialConnectionTest::CreateIoHandler,
+ base::Unretained(this)),
+ base::ThreadTaskRunnerHandle::Get()),
+ scoped_ptr<SerialDeviceEnumerator>(new FakeSerialDeviceEnumerator),
+ mojo::GetProxy(&service));
service.set_error_handler(this);
mojo::InterfacePtr<serial::DataSink> sink;
mojo::InterfacePtr<serial::DataSource> source;
« no previous file with comments | « device/serial/serial_connection_factory.cc ('k') | device/serial/serial_service_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698