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

Unified Diff: mojo/public/cpp/bindings/lib/validation_errors.h

Issue 921223002: Cpp bindings: Return false from Validator::Accept() on unrecognized message or invalid flags (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: Fix test Created 5 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/public/cpp/bindings/lib/validation_errors.h
diff --git a/mojo/public/cpp/bindings/lib/validation_errors.h b/mojo/public/cpp/bindings/lib/validation_errors.h
index fbba6b30488913dcd9d5f09e16066835970748fd..a0eee3ac30a8a63aefcc2411e62e41670c33878e 100644
--- a/mojo/public/cpp/bindings/lib/validation_errors.h
+++ b/mojo/public/cpp/bindings/lib/validation_errors.h
@@ -48,7 +48,8 @@ enum ValidationError {
// lengths.
VALIDATION_ERROR_DIFFERENT_SIZED_ARRAYS_IN_MAP,
// Attempted to deserialize a tagged union with an unknown tag.
- VALIDATION_ERROR_UNKOWN_UNION_TAG
+ VALIDATION_ERROR_UNKOWN_UNION_TAG,
+ VALIDATION_ERROR_UNKOWN_METHOD
yzshen1 2015/02/23 19:08:02 Please add comments.
rudominer 2015/03/03 01:54:35 Done.
};
const char* ValidationErrorToString(ValidationError error);

Powered by Google App Engine
This is Rietveld 408576698