0
Files
src/base/check_is_test_unittest.cc
Roland Bock 3c0853f309 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 <dcheng@chromium.org>
Commit-Queue: Daniel Cheng <dcheng@chromium.org>
Owners-Override: Daniel Cheng <dcheng@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1062542}
2022-10-23 01:23:01 +00:00

16 lines
451 B
C++

// Copyright 2022 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "base/check_is_test.h"
#include "testing/gtest/include/gtest/gtest.h"
// 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.
TEST(CheckIsTest, Usage) {
CHECK_IS_TEST();
}