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

Unified Diff: mojo/system/channel_unittest.cc

Issue 484893004: Mojo: Make Core own a PlatformSupport, and plumb it through to Channel. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review comments Created 6 years, 4 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/channel.cc ('k') | mojo/system/core.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/system/channel_unittest.cc
diff --git a/mojo/system/channel_unittest.cc b/mojo/system/channel_unittest.cc
index 33fa6ec6d45d4532395d9c7ff5b572caad851cf2..0f6c7745ca521c3ded1da820e542c90387999a9b 100644
--- a/mojo/system/channel_unittest.cc
+++ b/mojo/system/channel_unittest.cc
@@ -8,6 +8,7 @@
#include "base/location.h"
#include "base/message_loop/message_loop.h"
#include "mojo/embedder/platform_channel_pair.h"
+#include "mojo/embedder/simple_platform_support.h"
#include "mojo/system/local_message_pipe_endpoint.h"
#include "mojo/system/message_in_transit.h"
#include "mojo/system/message_pipe.h"
@@ -42,7 +43,7 @@ class ChannelTest : public testing::Test {
void CreateChannelOnIOThread() {
CHECK_EQ(base::MessageLoop::current(), io_thread()->message_loop());
- channel_ = new Channel();
+ channel_ = new Channel(&platform_support_);
}
void InitChannelOnIOThread() {
@@ -78,6 +79,7 @@ class ChannelTest : public testing::Test {
other_platform_handle_ = channel_pair.PassClientHandle();
}
+ embedder::SimplePlatformSupport platform_support_;
test::TestIOThread io_thread_;
scoped_ptr<RawChannel> raw_channel_;
embedder::ScopedPlatformHandle other_platform_handle_;
« no previous file with comments | « mojo/system/channel.cc ('k') | mojo/system/core.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698