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

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

Issue 1473413002: EDK: Add a TestIOThread::IsCurrentAndRunning(). (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Created 5 years, 1 month 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/channel_test_base.cc ('k') | mojo/edk/system/message_pipe_test_utils.cc » ('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 46e6a187f94886e134a411a2f946793ae578fa3b..0350cc7ed018d72850320b416df193a8213bf64d 100644
--- a/mojo/edk/system/data_pipe_impl_unittest.cc
+++ b/mojo/edk/system/data_pipe_impl_unittest.cc
@@ -14,7 +14,6 @@
#include "base/bind.h"
#include "base/logging.h"
-#include "base/message_loop/message_loop.h"
#include "mojo/edk/embedder/platform_channel_pair.h"
#include "mojo/edk/embedder/simple_platform_support.h"
#include "mojo/edk/system/channel.h"
@@ -323,7 +322,7 @@ class RemoteDataPipeImplTestHelper : public DataPipeImplTestHelper {
// currently work correctly with base::Bind.
void SetUpOnIOThread(RefPtr<ChannelEndpoint> ep0,
RefPtr<ChannelEndpoint> ep1) {
- CHECK_EQ(base::MessageLoop::current(), io_thread_.message_loop());
+ CHECK(io_thread_.IsCurrentAndRunning());
embedder::PlatformChannelPair channel_pair;
channels_[0] = MakeRefCounted<Channel>(&platform_support_);
@@ -335,7 +334,7 @@ class RemoteDataPipeImplTestHelper : public DataPipeImplTestHelper {
}
void TearDownOnIOThread() {
- CHECK_EQ(base::MessageLoop::current(), io_thread_.message_loop());
+ CHECK(io_thread_.IsCurrentAndRunning());
if (channels_[0]) {
channels_[0]->Shutdown();
« no previous file with comments | « mojo/edk/system/channel_test_base.cc ('k') | mojo/edk/system/message_pipe_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698