-
Notifications
You must be signed in to change notification settings - Fork 6.6k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Move StartRecordingUpstartOperations to FakeUpstartClient
This CL moves StartRecordingUpstartOperations and related helper functions to FakeUpstartClient, as it was duplicated in multiple tests. This CL also results in fixing the following bugs in ArcAdbdMonitorBridgeTest: - FakeUpstartClient wasn't shut down and re-initialized in each test cases, resulting in upstart_operations_ being accumulated across test cases. - In TestStartArcVmAdbdFailure, injecting the failure of stopping arcvm-adbd Upstart job wasn't working as intended because the callback (stop_job_cb_ of FakeUpstartClient) was overwritten by StartRecordingUpstartOperations. BUG=b:305608912 TEST=unit_tests --gtest_filter="ArcAdbdMonitorBridgeTest.*" TEST=ash_components_unittests --gtest_filter="ArcUtilTest.*" TEST=ash_components_unittests --gtest_filter="ArcVmClientAdapterTest.*" Change-Id: I81be64999a98c522fa5f802c690caa68ac3d00d2 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4938258 Reviewed-by: Ryo Hashimoto <hashimoto@chromium.org> Reviewed-by: Yury Khmel <khmel@chromium.org> Commit-Queue: Momoko Hattori <momohatt@chromium.org> Cr-Commit-Position: refs/heads/main@{#1212571}
- Loading branch information
Showing
5 changed files
with
134 additions
and
157 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.