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

Unified Diff: mojo/edk/embedder/embedder_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 | « no previous file | mojo/edk/system/channel_endpoint_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/embedder/embedder_unittest.cc
diff --git a/mojo/edk/embedder/embedder_unittest.cc b/mojo/edk/embedder/embedder_unittest.cc
index 20e4664b133f58a59f3c50382003531becf9ba49..0844fc512ac53b71943925df322d8f910a6dbfee 100644
--- a/mojo/edk/embedder/embedder_unittest.cc
+++ b/mojo/edk/embedder/embedder_unittest.cc
@@ -10,7 +10,6 @@
#include "base/bind.h"
#include "base/command_line.h"
-#include "base/location.h"
#include "base/logging.h"
#include "base/message_loop/message_loop.h"
#include "base/synchronization/waitable_event.h"
@@ -243,8 +242,7 @@ TEST_F(EmbedderTest, AsyncWait) {
base::Bind(&TestAsyncWaiter::Awake,
base::Unretained(&waiter))));
- test_io_task_runner()->PostTask(FROM_HERE,
- base::Bind(&WriteHello, server_mp.get()));
+ test_io_thread().PostTask(base::Bind(&WriteHello, server_mp.get()));
EXPECT_TRUE(waiter.TryWait());
EXPECT_EQ(MOJO_RESULT_OK, waiter.wait_result());
@@ -267,8 +265,7 @@ TEST_F(EmbedderTest, AsyncWait) {
base::Bind(&TestAsyncWaiter::Awake,
base::Unretained(&unsatisfiable_waiter))));
- test_io_task_runner()->PostTask(
- FROM_HERE,
+ test_io_thread().PostTask(
base::Bind(&CloseScopedHandle, base::Passed(server_mp.Pass())));
EXPECT_TRUE(unsatisfiable_waiter.TryWait());
@@ -446,7 +443,6 @@ TEST_F(EmbedderTest, MAYBE_MultiprocessMasterSlave) {
EXPECT_TRUE(event.TimedWait(TestTimeouts::action_timeout()));
test_io_thread().PostTaskAndWait(
- FROM_HERE,
base::Bind(&DestroyChannelOnIOThread, base::Unretained(channel_info)));
}
@@ -521,7 +517,6 @@ MOJO_MULTIPROCESS_TEST_CHILD_TEST(MultiprocessMasterSlave) {
EXPECT_TRUE(event.TimedWait(TestTimeouts::action_timeout()));
test_io_thread.PostTaskAndWait(
- FROM_HERE,
base::Bind(&DestroyChannelOnIOThread, base::Unretained(channel_info)));
}
« no previous file with comments | « no previous file | mojo/edk/system/channel_endpoint_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698