Mojo: Add warning of invalid serialization results (in debug build).

A fatal-level message is logged if:
- a fixed-size array has wrong number of elements;
- a non-nullable field is set to null (or invalid handle).

BUG=324170
TEST=SerializationWarningTest.*

Review URL: https://codereview.chromium.org/469393004

Cr-Commit-Position: refs/heads/master@{#290487}
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@290487 0039d316-1c4b-4281-b951-d872f2087c98


CrOS-Libchrome-Original-Commit: e91bcab904f1bd770b2b634e613eea887b606f04
14 files changed
tree: 27f896ca2f6bb69b27dcab4069816e928b7330b7
  1. base/
  2. build/
  3. components/
  4. dbus/
  5. device/
  6. ipc/
  7. mojo/
  8. testing/
  9. third_party/
  10. ui/