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

Unified Diff: mojo/public/cpp/bindings/lib/validation_util.cc

Issue 2280483002: Add FlushForTesting to InterfacePtr and Binding. (Closed)
Patch Set: Created 4 years, 3 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/public/cpp/bindings/lib/validation_util.h ('k') | mojo/public/cpp/bindings/strong_binding.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/public/cpp/bindings/lib/validation_util.cc
diff --git a/mojo/public/cpp/bindings/lib/validation_util.cc b/mojo/public/cpp/bindings/lib/validation_util.cc
index 944c6541323bdb5aa36edc5268bd9d6bc19e10c0..9675afe8e0a851ec1403ffa13b2c01d0a1eb2106 100644
--- a/mojo/public/cpp/bindings/lib/validation_util.cc
+++ b/mojo/public/cpp/bindings/lib/validation_util.cc
@@ -100,38 +100,6 @@ bool ValidateMessageIsResponse(const Message* message,
return true;
}
-bool ValidateControlRequest(const Message* message,
- ValidationContext* validation_context) {
- switch (message->header()->name) {
- case interface_control::kRunMessageId:
- return ValidateMessageIsRequestExpectingResponse(message,
- validation_context) &&
- ValidateMessagePayload<
- interface_control::internal::RunMessageParams_Data>(
- message, validation_context);
- case interface_control::kRunOrClosePipeMessageId:
- return ValidateMessageIsRequestWithoutResponse(message,
- validation_context) &&
- ValidateMessagePayload<
- interface_control::internal::RunOrClosePipeMessageParams_Data>(
- message, validation_context);
- }
- return false;
-}
-
-bool ValidateControlResponse(const Message* message,
- ValidationContext* validation_context) {
- if (!ValidateMessageIsResponse(message, validation_context))
- return false;
- switch (message->header()->name) {
- case interface_control::kRunMessageId:
- return ValidateMessagePayload<
- interface_control::internal::RunResponseMessageParams_Data>(
- message, validation_context);
- }
- return false;
-}
-
bool IsHandleOrInterfaceValid(const AssociatedInterface_Data& input) {
return IsValidInterfaceId(input.interface_id);
}
« no previous file with comments | « mojo/public/cpp/bindings/lib/validation_util.h ('k') | mojo/public/cpp/bindings/strong_binding.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698