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

Unified Diff: device/serial/data_sink_unittest.cc

Issue 889283002: Remove Client= from device/serial/data_stream.mojom. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: This time without racing message pipes 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 248436235f54fe5ed6c4d00913e47bc14bdfd400..539cb6d427648c6648c20c991d5bc45e34d8bd9e 100644
--- a/device/serial/data_sink_unittest.cc
+++ b/device/serial/data_sink_unittest.cc
@@ -38,12 +38,11 @@ class DataSinkTest : public testing::Test {
void SetUp() override {
message_loop_.reset(new base::MessageLoop);
mojo::InterfacePtr<serial::DataSink> sink_handle;
- 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);
+ sink_receiver_ = new DataSinkReceiver(
+ mojo::GetProxy(&sink_handle),
+ 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(), kBufferSize, kFatalError));
}
« 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