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

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

Issue 2072353002: Give AwakableList's wake-up method the old state in addition to the new state. (Closed) Base URL: https://github.com/domokit/mojo.git@master
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/local_message_pipe_endpoint.cc ('k') | mojo/edk/system/simple_dispatcher.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/edk/system/mock_simple_dispatcher.cc
diff --git a/mojo/edk/system/mock_simple_dispatcher.cc b/mojo/edk/system/mock_simple_dispatcher.cc
index 2e429e46d32718eb7d07f50a2b9a0f3903cc8976..eb44ec071de28b5a732f8441108600185ab6c927 100644
--- a/mojo/edk/system/mock_simple_dispatcher.cc
+++ b/mojo/edk/system/mock_simple_dispatcher.cc
@@ -27,8 +27,9 @@ void MockSimpleDispatcher::SetSatisfiedSignals(
if (new_satisfied_signals == state_.satisfied_signals)
return;
+ HandleSignalsState old_state = state_;
state_.satisfied_signals = new_satisfied_signals;
- HandleSignalsStateChangedNoLock();
+ OnHandleSignalsStateChangeNoLock(old_state, state_);
}
void MockSimpleDispatcher::SetSatisfiableSignals(
@@ -42,8 +43,9 @@ void MockSimpleDispatcher::SetSatisfiableSignals(
if (new_satisfiable_signals == state_.satisfiable_signals)
return;
+ HandleSignalsState old_state = state_;
state_.satisfiable_signals = new_satisfiable_signals;
- HandleSignalsStateChangedNoLock();
+ OnHandleSignalsStateChangeNoLock(old_state, state_);
}
Dispatcher::Type MockSimpleDispatcher::GetType() const {
« no previous file with comments | « mojo/edk/system/local_message_pipe_endpoint.cc ('k') | mojo/edk/system/simple_dispatcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698