commit | 5279ee07b60252080aebe49fbbbc55db65f38d25 | [log] [tgz] |
---|---|---|
author | Xiaohan Wang <[email protected]> | Wed Oct 19 22:21:06 2022 |
committer | Chromium LUCI CQ <[email protected]> | Wed Oct 19 22:21:06 2022 |
tree | a0c3dc044d9d52b35648d4d429afb09ddae98091 | |
parent | 5a1dda5d1bf6b67b478b2d35dc478508318213cf [diff] |
Fix test example in threading_and_tasks.md It should be TEST_F since it uses a test fixture. Change-Id: Ib81a04c656d57b3ff1cf3594cc8c8d62e4adfcab Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3965462 Auto-Submit: Xiaohan Wang <[email protected]> Commit-Queue: Xiaohan Wang <[email protected]> Reviewed-by: Gabriel Charette <[email protected]> Cr-Commit-Position: refs/heads/main@{#1061272}
diff --git a/docs/threading_and_tasks.md b/docs/threading_and_tasks.md index 71f75eb..b6852f4 100644 --- a/docs/threading_and_tasks.md +++ b/docs/threading_and_tasks.md
@@ -728,7 +728,7 @@ base::test::TaskEnvironment task_environment_; }; -TEST(MyTest, MyTest) { +TEST_F(MyTest, FirstTest) { base::SingleThreadTaskRunner::GetCurrentDefault()->PostTask(FROM_HERE, base::BindOnce(&A)); base::SequencedTaskRunner::GetCurrentDefault()->PostTask(FROM_HERE, base::BindOnce(&B));