check_is_test_unittest.cc 473 B

123456789101112131415
  1. // Copyright 2022 The Chromium Authors. All rights reserved.
  2. // Use of this source code is governed by a BSD-style license that can be
  3. // found in the LICENSE file.
  4. #include "base/check_is_test.h"
  5. #include "testing/gtest/include/gtest/gtest.h"
  6. // Note: `base::AllowCheckIsTestToBeCalled` is being called in
  7. // `base/test/launcher/unit_test_launcher.cc` before this test is run.
  8. //
  9. // Thus, `CHECK_IS_TEST()` will succeed.
  10. TEST(CheckIsTest, Usage) {
  11. CHECK_IS_TEST();
  12. }