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

Unified Diff: mojo/public/cpp/bindings/tests/router_test_util.h

Issue 2064903002: Mojo: Report bindings validation errors via MojoNotifyBadMessage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.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
Index: mojo/public/cpp/bindings/tests/router_test_util.h
diff --git a/mojo/public/cpp/bindings/tests/router_test_util.h b/mojo/public/cpp/bindings/tests/router_test_util.h
index c6fb372d3f426283dd19e58496bd2cee0a105b2b..d8bd9e6f5d00d464056b7cde94bddedf1e36bf45 100644
--- a/mojo/public/cpp/bindings/tests/router_test_util.h
+++ b/mojo/public/cpp/bindings/tests/router_test_util.h
@@ -29,7 +29,7 @@ class MessageAccumulator : public MessageReceiver {
const base::Closure& closure = base::Closure());
~MessageAccumulator() override;
- bool Accept(Message* message) override;
+ bool Accept(Message* message, Error* error) override;
private:
MessageQueue* queue_;
@@ -40,10 +40,11 @@ class ResponseGenerator : public MessageReceiverWithResponderStatus {
public:
ResponseGenerator();
- bool Accept(Message* message) override;
+ bool Accept(Message* message, Error* error) override;
bool AcceptWithResponder(Message* message,
- MessageReceiverWithStatus* responder) override;
+ MessageReceiverWithStatus* responder,
+ Error* error) override;
bool SendResponse(uint32_t name,
uint64_t request_id,
@@ -59,7 +60,8 @@ class LazyResponseGenerator : public ResponseGenerator {
~LazyResponseGenerator() override;
bool AcceptWithResponder(Message* message,
- MessageReceiverWithStatus* responder) override;
+ MessageReceiverWithStatus* responder,
+ Error* error) override;
bool has_responder() const { return !!responder_; }

Powered by Google App Engine
This is Rietveld 408576698