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

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

Issue 2068483002: Add an unconditional version of DispatcherAddAwakable(): AddAwakableUnconditional(). (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: oops Created 4 years, 6 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/message_pipe_unittest.cc ('k') | mojo/edk/system/remote_message_pipe_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/system/remote_data_pipe_impl_unittest.cc
diff --git a/mojo/edk/system/remote_data_pipe_impl_unittest.cc b/mojo/edk/system/remote_data_pipe_impl_unittest.cc
index 99d150646be972ad5a47f335c0d4e63dd532598d..6e247cfd32d42278f99c4f4eb6c50d8c809cdad9 100644
--- a/mojo/edk/system/remote_data_pipe_impl_unittest.cc
+++ b/mojo/edk/system/remote_data_pipe_impl_unittest.cc
@@ -142,7 +142,7 @@ TEST_F(RemoteDataPipeImplTest, Sanity) {
waiter.Init();
ASSERT_EQ(MOJO_RESULT_OK,
message_pipe(1)->AddAwakable(
- 0, &waiter, MOJO_HANDLE_SIGNAL_READABLE, 123, nullptr));
+ 0, &waiter, MOJO_HANDLE_SIGNAL_READABLE, false, 123, nullptr));
EXPECT_EQ(MOJO_RESULT_OK,
message_pipe(0)->WriteMessage(0, UserPointer<const void>(kHello),
sizeof(kHello), nullptr,
@@ -195,7 +195,7 @@ TEST_F(RemoteDataPipeImplTest, SendConsumerWithClosedProducer) {
waiter.Init();
ASSERT_EQ(MOJO_RESULT_OK,
message_pipe(1)->AddAwakable(
- 0, &waiter, MOJO_HANDLE_SIGNAL_READABLE, 123, nullptr));
+ 0, &waiter, MOJO_HANDLE_SIGNAL_READABLE, false, 123, nullptr));
{
HandleTransport transport(test::HandleTryStartTransport(consumer_handle));
EXPECT_TRUE(transport.is_valid());
@@ -318,7 +318,7 @@ TEST_F(RemoteDataPipeImplTest, SendConsumerDuringTwoPhaseWrite) {
waiter.Init();
ASSERT_EQ(MOJO_RESULT_OK,
message_pipe(1)->AddAwakable(
- 0, &waiter, MOJO_HANDLE_SIGNAL_READABLE, 123, nullptr));
+ 0, &waiter, MOJO_HANDLE_SIGNAL_READABLE, false, 123, nullptr));
{
HandleTransport transport(test::HandleTryStartTransport(consumer_handle));
EXPECT_TRUE(transport.is_valid());
@@ -445,7 +445,7 @@ TEST_F(RemoteDataPipeImplTest, SendConsumerDuringSecondTwoPhaseWrite) {
waiter.Init();
ASSERT_EQ(MOJO_RESULT_OK,
message_pipe(1)->AddAwakable(
- 0, &waiter, MOJO_HANDLE_SIGNAL_READABLE, 123, nullptr));
+ 0, &waiter, MOJO_HANDLE_SIGNAL_READABLE, false, 123, nullptr));
{
HandleTransport transport(test::HandleTryStartTransport(consumer_handle));
EXPECT_TRUE(transport.is_valid());
« no previous file with comments | « mojo/edk/system/message_pipe_unittest.cc ('k') | mojo/edk/system/remote_message_pipe_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698