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

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

Issue 2056763003: EDK: Change Awakable::Awake()'s context, etc., to be a uint64_t. (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: doh 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/waiter_test_utils.h ('k') | mojo/edk/system/waiter_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/system/waiter_test_utils.cc
diff --git a/mojo/edk/system/waiter_test_utils.cc b/mojo/edk/system/waiter_test_utils.cc
index be2e9a3c7b0367598d6a7a59b727c3dc4aa4a053..5e3acf9df4db52f28ed760cb13bdd54b2057ffbb 100644
--- a/mojo/edk/system/waiter_test_utils.cc
+++ b/mojo/edk/system/waiter_test_utils.cc
@@ -12,11 +12,11 @@ namespace mojo {
namespace system {
namespace test {
-SimpleWaiterThread::SimpleWaiterThread(MojoResult* result, uint32_t* context)
+SimpleWaiterThread::SimpleWaiterThread(MojoResult* result, uint64_t* context)
: result_(result), context_(context) {
waiter_.Init();
- *result_ = 5420734; // Totally invalid result.
- *context_ = 23489023; // "Random".
+ *result_ = 5420734; // Totally invalid result.
+ *context_ = 2341532489023ULL; // "Random".
}
SimpleWaiterThread::~SimpleWaiterThread() {
@@ -30,10 +30,10 @@ void SimpleWaiterThread::Run() {
WaiterThread::WaiterThread(RefPtr<Dispatcher>&& dispatcher,
MojoHandleSignals handle_signals,
MojoDeadline deadline,
- uint32_t context,
+ uint64_t context,
bool* did_wait_out,
MojoResult* result_out,
- uint32_t* context_out,
+ uint64_t* context_out,
HandleSignalsState* signals_state_out)
: dispatcher_(std::move(dispatcher)),
handle_signals_(handle_signals),
« no previous file with comments | « mojo/edk/system/waiter_test_utils.h ('k') | mojo/edk/system/waiter_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698