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

Unified Diff: device/serial/data_sink_unittest.cc

Issue 873293006: Revert of Remove Client= from device/serial/data_stream.mojom. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 10 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/data_sink_receiver.cc ('k') | device/serial/data_source_sender.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: device/serial/data_sink_unittest.cc
diff --git a/device/serial/data_sink_unittest.cc b/device/serial/data_sink_unittest.cc
index 4108692b210e824161901dd2bc84130d9d4e6e29..248436235f54fe5ed6c4d00913e47bc14bdfd400 100644
--- a/device/serial/data_sink_unittest.cc
+++ b/device/serial/data_sink_unittest.cc
@@ -38,16 +38,13 @@
void SetUp() override {
message_loop_.reset(new base::MessageLoop);
mojo::InterfacePtr<serial::DataSink> sink_handle;
- mojo::InterfacePtr<serial::DataSinkClient> sink_client_handle;
- mojo::InterfaceRequest<serial::DataSinkClient> sink_client_request =
- mojo::GetProxy(&sink_client_handle);
- sink_receiver_ = new DataSinkReceiver(
- mojo::GetProxy(&sink_handle), sink_client_handle.Pass(),
- base::Bind(&DataSinkTest::OnDataToRead, base::Unretained(this)),
- base::Bind(&DataSinkTest::OnCancel, base::Unretained(this)),
- base::Bind(&DataSinkTest::OnError, base::Unretained(this)));
- sender_.reset(new DataSender(sink_handle.Pass(), sink_client_request.Pass(),
- kBufferSize, kFatalError));
+ sink_receiver_ = mojo::WeakBindToProxy(
+ new DataSinkReceiver(
+ base::Bind(&DataSinkTest::OnDataToRead, base::Unretained(this)),
+ base::Bind(&DataSinkTest::OnCancel, base::Unretained(this)),
+ base::Bind(&DataSinkTest::OnError, base::Unretained(this))),
+ &sink_handle);
+ sender_.reset(new DataSender(sink_handle.Pass(), kBufferSize, kFatalError));
}
void TearDown() override {
« no previous file with comments | « device/serial/data_sink_receiver.cc ('k') | device/serial/data_source_sender.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698