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

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

Issue 1408133004: EDK: Remove tracked_objects::Location argument in TestIOThread methods (etc.). (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/remote_data_pipe_impl_unittest.cc ('k') | mojo/edk/test/test_io_thread.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/system/remote_message_pipe_unittest.cc
diff --git a/mojo/edk/system/remote_message_pipe_unittest.cc b/mojo/edk/system/remote_message_pipe_unittest.cc
index a33a0f97f0c03fccc9b53e1eacb5399857d56429..c5ab5f857f4f339a66b96b2fc35a2db4da836ad2 100644
--- a/mojo/edk/system/remote_message_pipe_unittest.cc
+++ b/mojo/edk/system/remote_message_pipe_unittest.cc
@@ -11,7 +11,6 @@
#include <vector>
#include "base/bind.h"
-#include "base/location.h"
#include "base/logging.h"
#include "base/message_loop/message_loop.h"
#include "mojo/edk/embedder/platform_channel_pair.h"
@@ -52,15 +51,13 @@ class RemoteMessagePipeTest : public testing::Test {
~RemoteMessagePipeTest() override {}
void SetUp() override {
- io_thread_.PostTaskAndWait(
- FROM_HERE, base::Bind(&RemoteMessagePipeTest::SetUpOnIOThread,
- base::Unretained(this)));
+ io_thread_.PostTaskAndWait(base::Bind(
+ &RemoteMessagePipeTest::SetUpOnIOThread, base::Unretained(this)));
}
void TearDown() override {
- io_thread_.PostTaskAndWait(
- FROM_HERE, base::Bind(&RemoteMessagePipeTest::TearDownOnIOThread,
- base::Unretained(this)));
+ io_thread_.PostTaskAndWait(base::Bind(
+ &RemoteMessagePipeTest::TearDownOnIOThread, base::Unretained(this)));
}
protected:
@@ -70,7 +67,6 @@ class RemoteMessagePipeTest : public testing::Test {
void BootstrapChannelEndpoints(RefPtr<ChannelEndpoint>&& ep0,
RefPtr<ChannelEndpoint>&& ep1) {
io_thread_.PostTaskAndWait(
- FROM_HERE,
base::Bind(&RemoteMessagePipeTest::BootstrapChannelEndpointsOnIOThread,
base::Unretained(this), base::Passed(ep0),
base::Passed(ep1)));
@@ -82,14 +78,12 @@ class RemoteMessagePipeTest : public testing::Test {
void BootstrapChannelEndpointNoWait(unsigned channel_index,
RefPtr<ChannelEndpoint>&& ep) {
io_thread_.PostTask(
- FROM_HERE,
base::Bind(&RemoteMessagePipeTest::BootstrapChannelEndpointOnIOThread,
base::Unretained(this), channel_index, base::Passed(&ep)));
}
void RestoreInitialState() {
io_thread_.PostTaskAndWait(
- FROM_HERE,
base::Bind(&RemoteMessagePipeTest::RestoreInitialStateOnIOThread,
base::Unretained(this)));
}
@@ -1134,8 +1128,7 @@ TEST_F(RemoteMessagePipeTest, RacingClosesStress) {
BootstrapChannelEndpointNoWait(1, std::move(ep1));
if (i & 1u) {
- io_thread()->task_runner()->PostTask(FROM_HERE,
- base::Bind(&test::Sleep, delay));
+ io_thread()->PostTask(base::Bind(&test::Sleep, delay));
}
if (i & 2u)
test::Sleep(delay);
@@ -1143,8 +1136,7 @@ TEST_F(RemoteMessagePipeTest, RacingClosesStress) {
mp0->Close(0);
if (i & 4u) {
- io_thread()->task_runner()->PostTask(FROM_HERE,
- base::Bind(&test::Sleep, delay));
+ io_thread()->PostTask(base::Bind(&test::Sleep, delay));
}
if (i & 8u)
test::Sleep(delay);
« no previous file with comments | « mojo/edk/system/remote_data_pipe_impl_unittest.cc ('k') | mojo/edk/test/test_io_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698