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

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

Issue 1748503002: [mojo-edk] Add MojoWatch and MojoCancelWatch APIs (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 10 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
Index: mojo/edk/system/core_test_base.cc
diff --git a/mojo/edk/system/core_test_base.cc b/mojo/edk/system/core_test_base.cc
index 96c3f4da7bc6b1e55e8c3cb1f28e8250039b554b..fda5d4840b938aa93a6d4f083334b8b405b4b6da 100644
--- a/mojo/edk/system/core_test_base.cc
+++ b/mojo/edk/system/core_test_base.cc
@@ -35,7 +35,7 @@ class MockDispatcher : public Dispatcher {
// Dispatcher:
Type GetType() const override { return Type::UNKNOWN; }
- MojoResult Close() override {
+ MojoResult Close(RequestContext* request_context) override {
info_->IncrementCloseCallCount();
return MOJO_RESULT_OK;
}
@@ -45,7 +45,8 @@ class MockDispatcher : public Dispatcher {
uint32_t num_bytes,
const DispatcherInTransit* dispatchers,
uint32_t num_dispatchers,
- MojoWriteMessageFlags /*flags*/) override {
+ MojoWriteMessageFlags /*flags*/,
+ RequestContext* request_context) override {
info_->IncrementWriteMessageCallCount();
if (num_bytes > GetConfiguration().max_message_num_bytes)
@@ -61,7 +62,8 @@ class MockDispatcher : public Dispatcher {
uint32_t* num_bytes,
MojoHandle* handle,
uint32_t* num_handles,
- MojoReadMessageFlags /*flags*/) override {
+ MojoReadMessageFlags /*flags*/,
+ RequestContext* request_context) override {
info_->IncrementReadMessageCallCount();
if (num_handles)

Powered by Google App Engine
This is Rietveld 408576698