[audio_core][test] Refactor audio_core integration tests, step 2

The existing TestFixture methods ExpectCallback and ExpectError are
useful shorthands but can produce difficult-to-diagnose error messages
because they don't contain any context about the error. To address this
difficulty, I've replaced the ErrorHandler() and CompletionCallback()
methods with:

* AddErrorHandler, which ties each error handler to a specific FIDL
  protocol object to help diagnose which protocol object failed

* AddCallback, which is like the old CompletionCallback except that
  each callback is named. Additionally, multiple callbacks can be queued
  to test an expected sequence of calls (this simplifies a few tests).

Most of the changes in this CL follow mechanically from the above
changes. The exception is api/gain_control_test.cc, which was also
dramatically simplified using a TYPED_TEST_SUITE.

Bug: 50645
Multiply: audio-core-api-tests
Change-Id: I8bd8d89000f6667ee8e9c5a77e7ab2911a9fabc5
Reviewed-on: https://fuchsia-review.googlesource.com/c/fuchsia/+/401610
Commit-Queue: Tom Bergan <tombergan@google.com>
Reviewed-by: Tim Detwiler <tjdetwiler@google.com>
Testability-Review: Tim Detwiler <tjdetwiler@google.com>
23 files changed
tree: 262e050aaaddd331cf339531c80be04d18e72959
  1. boards/
  2. build/
  3. bundles/
  4. cts/
  5. docs/
  6. examples/
  7. garnet/
  8. products/
  9. scripts/
  10. sdk/
  11. src/
  12. third_party/
  13. tools/
  14. zircon/
  15. .clang-format
  16. .clang-tidy
  17. .gitattributes
  18. .gitignore
  19. .gn
  20. .style.yapf
  21. AUTHORS
  22. BUILD.gn
  23. CODE_OF_CONDUCT.md
  24. CONTRIBUTING.md
  25. LICENSE
  26. OWNERS
  27. PATENTS
  28. README.md
  29. rustfmt.toml
README.md

Fuchsia

Pink + Purple == Fuchsia (a new operating system)

What is Fuchsia?

Fuchsia is a modular, capability-based operating system. Fuchsia runs on modern 64-bit Intel and ARM processors.

Fuchsia is an open source project with a code of conduct that we expect everyone who interacts with the project to respect.

How can I build and run Fuchsia?

See Getting Started.

Where can I learn more about Fuchsia?

See fuchsia.dev.