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

Unified Diff: mojo/edk/system/test_channel_endpoint_client.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/test_channel_endpoint_client.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/system/test_channel_endpoint_client.cc
diff --git a/mojo/edk/system/test_channel_endpoint_client.cc b/mojo/edk/system/test_channel_endpoint_client.cc
index 9f48a809a305e4b6efbb65f8f0b12eb7bdb5a0fb..957fa964c6ea45970aa200aabcb6e313dd198bd7 100644
--- a/mojo/edk/system/test_channel_endpoint_client.cc
+++ b/mojo/edk/system/test_channel_endpoint_client.cc
@@ -14,10 +14,6 @@ namespace mojo {
namespace system {
namespace test {
-TestChannelEndpointClient::TestChannelEndpointClient()
- : port_(0), read_event_(nullptr) {
-}
-
void TestChannelEndpointClient::Init(unsigned port,
RefPtr<ChannelEndpoint>&& endpoint) {
MutexLocker locker(&mutex_);
@@ -72,6 +68,9 @@ void TestChannelEndpointClient::OnDetachFromChannel(unsigned port) {
endpoint_ = nullptr;
}
+TestChannelEndpointClient::TestChannelEndpointClient()
+ : port_(0), read_event_(nullptr) {}
+
TestChannelEndpointClient::~TestChannelEndpointClient() {
EXPECT_FALSE(endpoint_);
}
« no previous file with comments | « mojo/edk/system/test_channel_endpoint_client.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698