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

Unified Diff: mojo/edk/system/data_pipe_impl_unittest.cc

Issue 1396783004: Convert mojo::system::ChannelEndpointClient to use our new refcounting stuff (instead of base's). (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 2 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 | « mojo/edk/system/data_pipe_consumer_dispatcher.cc ('k') | mojo/edk/system/data_pipe_producer_dispatcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/system/data_pipe_impl_unittest.cc
diff --git a/mojo/edk/system/data_pipe_impl_unittest.cc b/mojo/edk/system/data_pipe_impl_unittest.cc
index d68231ae3aac1f80f60863037603fac7c45c39d7..c3c30dcc124bdad4ac4fdcd582a8f480e3596ade 100644
--- a/mojo/edk/system/data_pipe_impl_unittest.cc
+++ b/mojo/edk/system/data_pipe_impl_unittest.cc
@@ -213,7 +213,7 @@ class LocalDataPipeImplTestHelper : public DataPipeImplTestHelper {
void ConsumerClose() override { dp_->ConsumerClose(); }
private:
- scoped_refptr<DataPipe> dp_;
+ RefPtr<DataPipe> dp_;
MOJO_DISALLOW_COPY_AND_ASSIGN(LocalDataPipeImplTestHelper);
};
@@ -306,10 +306,8 @@ class RemoteDataPipeImplTestHelper : public DataPipeImplTestHelper {
*to_receive = read_dispatchers[0];
}
- scoped_refptr<MessagePipe> message_pipe(size_t i) {
- return message_pipes_[i];
- }
- scoped_refptr<DataPipe> dp() { return dp_; }
+ RefPtr<MessagePipe> message_pipe(size_t i) { return message_pipes_[i]; }
+ RefPtr<DataPipe> dp() { return dp_; }
private:
void EnsureMessagePipeClosed(size_t i) {
@@ -350,9 +348,9 @@ class RemoteDataPipeImplTestHelper : public DataPipeImplTestHelper {
embedder::SimplePlatformSupport platform_support_;
mojo::test::TestIOThread io_thread_;
RefPtr<Channel> channels_[2];
- scoped_refptr<MessagePipe> message_pipes_[2];
+ RefPtr<MessagePipe> message_pipes_[2];
- scoped_refptr<DataPipe> dp_;
+ RefPtr<DataPipe> dp_;
MOJO_DISALLOW_COPY_AND_ASSIGN(RemoteDataPipeImplTestHelper);
};
« no previous file with comments | « mojo/edk/system/data_pipe_consumer_dispatcher.cc ('k') | mojo/edk/system/data_pipe_producer_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698