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

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

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.cc ('k') | mojo/edk/system/waiter_test_utils.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.h
diff --git a/mojo/edk/system/waiter_test_utils.h b/mojo/edk/system/waiter_test_utils.h
index 13bc760d01f37fcd1bc47c6e9786389a63f54f96..8f909cb62f496d4464a2f1babddf32ef98b799d9 100644
--- a/mojo/edk/system/waiter_test_utils.h
+++ b/mojo/edk/system/waiter_test_utils.h
@@ -49,7 +49,7 @@ class SimpleWaiterThread : public test::SimpleTestThread {
public:
// For the duration of the lifetime of this object, |*result| belongs to it
// (in the sense that it will write to it whenever it wants).
- SimpleWaiterThread(MojoResult* result, uint32_t* context);
+ SimpleWaiterThread(MojoResult* result, uint64_t* context);
~SimpleWaiterThread() override; // Joins the thread.
Waiter* waiter() { return &waiter_; }
@@ -58,7 +58,7 @@ class SimpleWaiterThread : public test::SimpleTestThread {
void Run() override;
MojoResult* const result_;
- uint32_t* const context_;
+ uint64_t* const context_;
Waiter waiter_;
MOJO_DISALLOW_COPY_AND_ASSIGN(SimpleWaiterThread);
@@ -75,10 +75,10 @@ class WaiterThread : public test::SimpleTestThread {
WaiterThread(util::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);
~WaiterThread() override;
@@ -88,10 +88,10 @@ class WaiterThread : public test::SimpleTestThread {
const util::RefPtr<Dispatcher> dispatcher_;
const MojoHandleSignals handle_signals_;
const MojoDeadline deadline_;
- const uint32_t context_;
+ const uint64_t context_;
bool* const did_wait_out_;
MojoResult* const result_out_;
- uint32_t* const context_out_;
+ uint64_t* const context_out_;
HandleSignalsState* const signals_state_out_;
Waiter waiter_;
« no previous file with comments | « mojo/edk/system/waiter.cc ('k') | mojo/edk/system/waiter_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698