Flush log files in test before checking contents.

1) Flush the log files to storage by calling sync_all() on them, after
   the packets have been logged and before the log files are verified.
2) The tests wait on the flush() operation to complete (using a Channel
   for synchronization), as the flush happens in a different thread
   (LogWriterActor).

Bug: 287161361
Test: atest libuwb_core_tests --iterations=500
Change-Id: Ife5967167e72bbc79529148d953080c00376713e
2 files changed
tree: 33cc664ac9cd6d06be59ebbc724843709e77afd9
  1. src/
  2. .gitignore
  3. Android.bp
  4. DIR_METADATA
  5. METADATA
  6. MODULE_LICENSE_APACHE2
  7. NOTICE
  8. OWNERS
  9. OWNERS_chromeos
  10. PREUPLOAD.cfg