commit | 3c0853f309187169b28fa7e353637827df79fb0f | [log] [tgz] |
---|---|---|
author | Roland Bock <[email protected]> | Sun Oct 23 01:23:01 2022 |
committer | Chromium LUCI CQ <[email protected]> | Sun Oct 23 01:23:01 2022 |
tree | 52511a8b4fd5788847948441a6e0b4a182b1a3e3 | |
parent | 8c093320451cfbd3ce9d1629b6806deec0d082df [diff] [blame] |
Rename AllowCheckIsTestToBeCalled to [...]ForTesting This is yet another hint to prevent the function from being used in production code. This allows us to drop the warning message. Bug: 1326801 Change-Id: I76d786dd0225493ffa04f65ec1f36ff89192a65c Tests: Non-functional change (rename). Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3970673 Reviewed-by: Daniel Cheng <[email protected]> Commit-Queue: Daniel Cheng <[email protected]> Owners-Override: Daniel Cheng <[email protected]> Cr-Commit-Position: refs/heads/main@{#1062542}
diff --git a/base/check_is_test_unittest.cc b/base/check_is_test_unittest.cc index 1c47e62..3f7fa36c 100644 --- a/base/check_is_test_unittest.cc +++ b/base/check_is_test_unittest.cc
@@ -6,7 +6,7 @@ #include "testing/gtest/include/gtest/gtest.h" -// Note: `base::AllowCheckIsTestToBeCalled` is being called in +// Note: `base::AllowCheckIsTestForTesting` is being called in // `base/test/launcher/unit_test_launcher.cc` before this test is run. // // Thus, `CHECK_IS_TEST()` will succeed.