Commit 557646fa authored by cfredric's avatar cfredric Committed by Commit Bot

Use matchers in SystemNetworkContextManagerBrowsertest.

Using matchers (instead of multiple, simpler expectations) is more
declarative, less repetitive, and allows the test to give better error
messages in case of failure. In this test in particular, the matchers
allow us to avoid crashing the test if `secure_dns_config.servers()`
contains the wrong number of elements; and allows us to delete the
`ContainsSubstring` helper.

Change-Id: Ia0f274bbe19a009e7cefbea43ff7fb33c31463be
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2488220
Commit-Queue: Chris Fredrickson <cfredric@google.com>
Reviewed-by: default avatarMatt Menke <mmenke@chromium.org>
Auto-Submit: Chris Fredrickson <cfredric@google.com>
Cr-Commit-Position: refs/heads/master@{#820260}
parent ad5e9b4d
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment