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

Unified Diff: mojo/system/raw_channel_posix_unittest.cc

Issue 134373005: Mojo: Refactor PlatformChannel stuff. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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/system/platform_channel_posix.cc ('k') | mojo/system/remote_message_pipe_posix_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/system/raw_channel_posix_unittest.cc
diff --git a/mojo/system/raw_channel_posix_unittest.cc b/mojo/system/raw_channel_posix_unittest.cc
index a580d24f2af5c701e540463f03d46ba448dea71f..b93ba9ad94858b121f5acf94c0d9b9d800e79224 100644
--- a/mojo/system/raw_channel_posix_unittest.cc
+++ b/mojo/system/raw_channel_posix_unittest.cc
@@ -77,12 +77,13 @@ class RawChannelPosixTest : public testing::Test {
io_thread_.StartWithOptions(
base::Thread::Options(base::MessageLoop::TYPE_IO, 0));
- scoped_ptr<PlatformServerChannel> server_channel(
- PlatformServerChannel::Create("channel"));
+ PlatformChannelPair channel_pair;
+ scoped_ptr<PlatformChannel> server_channel(
+ channel_pair.CreateServerChannel());
CHECK(server_channel.get());
CHECK(server_channel->is_valid());
- scoped_ptr<PlatformClientChannel> client_channel(
- server_channel->CreateClientChannel());
+ scoped_ptr<PlatformChannel> client_channel(
+ channel_pair.CreateClientChannel());
CHECK(client_channel.get());
CHECK(client_channel->is_valid());
« no previous file with comments | « mojo/system/platform_channel_posix.cc ('k') | mojo/system/remote_message_pipe_posix_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698