-
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.
[base][test] Support no-args callbacks in TestFuture
A glaring omission of TestFuture was that you could not use it for no-args callbacks, mainly due to the `using FirstType = ...` statement. This forced people to use `TestFuture<bool>` to wait for things like when a no-args observer method is invoked. With this change `TestFuture<void>` can be used instead. Bug: 1379290 Test: unit_tests --gtest_filter="*TestFuture*" Change-Id: If742247df2b72d4e5d5577415ae443e7362db16d Cq-Include-Trybots: luci.chrome.try:linux-chromeos-chrome Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3974451 Reviewed-by: Wez <wez@chromium.org> Commit-Queue: Jeroen Dhollander <jeroendh@google.com> Reviewed-by: Roland Bock <rbock@google.com> Reviewed-by: Ben Franz <bfranz@chromium.org> Cr-Commit-Position: refs/heads/main@{#1067457}
- Loading branch information
Jeroen Dhollander
authored and
Chromium LUCI CQ
committed
Nov 4, 2022
1 parent
af46b49
commit 550394d
Showing
5 changed files
with
126 additions
and
37 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