[CrOS MultiDevice] Re-land HostVerifierOperation.
Original CL (uploaded as patchset 1): https://chromium-review.googlesource.com/c/chromium/src/+/1119466 Reverted CL: https://chromium-review.googlesource.com/c/chromium/src/+/1125479 The CL failed on some bots due to trying to set an invalid response code for a proto (the test was trying to test an invalid response code). I've removed that test in patchset 2. Original CL description below: This class represents an operation for completing the verification step for the current host device. A HostVerifierOperation instance is meant to be used for a single verification attempt; if verification needs to be retried, a new instance should be created for the next attempt. This class completes the following steps to verify a device: (1) Call FindEligibleDevices(). This step sends a message to the host device, which in turn enables background advertising. (2) Creates a connection to the device using the BLE listener role. (3) Sends an EnableBetterTogetherRequest message to the host device. (4) Waits for an EnableBetterTogetherResponse messages to be returned by the host device. Bug: 824568 Change-Id: Iee9084763e0f3163baed06f36cc2e357e6313f64 Reviewed-on: https://chromium-review.googlesource.com/1125500Reviewed-by:Jeremy Klein <jlklein@chromium.org> Commit-Queue: Kyle Horimoto <khorimoto@chromium.org> Cr-Commit-Position: refs/heads/master@{#572427}
Showing
Please register or sign in to comment