Updated latency fixture to match internal classes and refactored
connection helper.
1. Moved the Open new document logic to the SetUp function to enforce
a fresh document for tests.
2. Refactored connection helper to make it as minimum as possible, and
moved the ping response verify logic to the connected client fixture.
BUG=
Committed:
https://crrev.com/4d6371eaba0106a6051282b86ef59ccd121e6bc5
Cr-Commit-Position: refs/heads/master@{#340588}