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