Specifically:
- Fixes some issues with how the PendingRemote is constructed in the
examples
- Uses TestFuture instead of Run loops in the example code
- Removes the AsyncWaiter doc section, since this is deprecated
- Adds a section about InterceptorForTesting
- Adds a section about FlushForTesting
- Some other minor refactoring
Bug: 1456835
Change-Id: Iae86b7d128e96eb916c4d4d45cf33baa08af8c72
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4730893
Reviewed-by: Oksana Zhuravlova <oksamyt@chromium.org>
Commit-Queue: Andrew Williams <awillia@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1177921}