[Fuchsia] Refactor TestNavigationListener to match more NavigationStates

Update RunUntilNavigationEquals, so it can now take a NavigationState
and run until that state is reached. This adds more flexibility in
testing as the fields of NavigationState change.

Bug: 948873
Change-Id: I91da19a42a5be230b2ff8e88dbc3097667cb3b1d
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1582699
Commit-Queue: Kevin Marshall <kmarshall@chromium.org>
Reviewed-by: Kevin Marshall <kmarshall@chromium.org>
Reviewed-by: Fabrice de Gans-Riberi <fdegans@chromium.org>
Cr-Commit-Position: refs/heads/master@{#653828}
6 files changed