Add log in MessageQueueBase for mismatch in payload size from MQDescriptor

Check the quantum size from the MQDescriptor and make sure it is the
same size as the type(T) used to instantiate the queue.
Log when there is an issue.
Added an explicit test for this.

Test: atest fmq_unit_tests fmq_test
Bug: 142326204
Change-Id: I09f86d2108d3a1f6ffca372f9f2991eed34e874a
2 files changed
tree: 35e7e62ec7659b06ef1c698ddaa0813deb56aa79
  1. base/
  2. benchmarks/
  3. include/
  4. tests/
  5. Android.bp
  6. EventFlag.cpp
  7. FmqInternal.cpp
  8. OWNERS
  9. PREUPLOAD.cfg
  10. TEST_MAPPING