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

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

Issue 2076263003: Plumb the handle signals state to Awakable::Awake(). (Closed) Base URL: https://github.com/domokit/mojo.git@work794_wait_set_4.2
Patch Set: 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/awakable_list_unittest.cc ('k') | mojo/edk/system/wait_set_dispatcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/system/core_unittest.cc
diff --git a/mojo/edk/system/core_unittest.cc b/mojo/edk/system/core_unittest.cc
index 3c00802bba101da8b12b537478bff95727a68875..e77cc98883bc068dae2ae7b7321030713bb71f44 100644
--- a/mojo/edk/system/core_unittest.cc
+++ b/mojo/edk/system/core_unittest.cc
@@ -1953,8 +1953,9 @@ TEST_F(CoreTest, AsyncWait) {
}));
EXPECT_EQ(1u, info.GetAddedAwakableSize());
- EXPECT_FALSE(info.GetAddedAwakableAt(0)->Awake(MOJO_RESULT_BUSY, 0));
- EXPECT_EQ(MOJO_RESULT_BUSY, waiter.result);
+ EXPECT_FALSE(info.GetAddedAwakableAt(0)->Awake(
+ 0, Awakable::AwakeReason::UNSATISFIABLE, HandleSignalsState()));
+ EXPECT_EQ(MOJO_RESULT_FAILED_PRECONDITION, waiter.result);
EXPECT_EQ(MOJO_RESULT_OK, core()->Close(h));
}
« no previous file with comments | « mojo/edk/system/awakable_list_unittest.cc ('k') | mojo/edk/system/wait_set_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698