diff options
Diffstat (limited to 'mojo/edk/system/watch_unittest.cc')
-rw-r--r-- | mojo/edk/system/watch_unittest.cc | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/mojo/edk/system/watch_unittest.cc b/mojo/edk/system/watch_unittest.cc index f60c8a8..f6a748b 100644 --- a/mojo/edk/system/watch_unittest.cc +++ b/mojo/edk/system/watch_unittest.cc @@ -17,7 +17,8 @@ namespace { void IgnoreResult(uintptr_t context, MojoResult result, - MojoHandleSignalsState signals) { + MojoHandleSignalsState signals, + MojoWatchNotificationFlags flags) { } // A test helper class for watching a handle. The WatchHelper instance is used @@ -56,11 +57,13 @@ class WatchHelper { private: static void OnNotify(uintptr_t context, MojoResult result, - MojoHandleSignalsState state) { + MojoHandleSignalsState state, + MojoWatchNotificationFlags flags) { WatchHelper* watcher = reinterpret_cast<WatchHelper*>(context); CHECK(watcher->watching_); if (result == MOJO_RESULT_CANCELLED) watcher->watching_ = false; + CHECK_EQ(flags, MOJO_WATCH_NOTIFICATION_FLAG_NONE); watcher->callback_(result, state); } |