-
Notifications
You must be signed in to change notification settings - Fork 6.7k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Revert to Mock time, fix clock advance
Copy from missive to Chromium. Since it appears that test clock forwarding can trigger more timer actions than it is implied, attempt to set up exact number of expected uploads and impose it (ignore uploads that have not been expected). Harden the tests by verifying that all expected uploads indeed happened (counter dropped to 0 when the Storage/StorageQueue is shut down). Also removed precautionary EXPECT_CALLs for extraneous uploads set before in sensitive cases - with the new change such uploads should be prevented by the counter. The Test*Event should not advance the mock time in any case, so we should control the run loop manually. Bug: b:254418902 Bug: b:258063046 Change-Id: Idc2ef106e2d7b4774682dc0b1a881148a659a379 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/4024244 Auto-Submit: Leonid Baraz <lbaraz@chromium.org> Reviewed-by: Hong Xu <xuhong@google.com> Commit-Queue: Hong Xu <xuhong@google.com> Cr-Commit-Position: refs/heads/main@{#1070580}
- Loading branch information
Leonid Baraz
authored and
Chromium LUCI CQ
committed
Nov 12, 2022
1 parent
25d9052
commit 8cbe917
Showing
15 changed files
with
336 additions
and
314 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
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
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
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.