naiveproxy/src/base/gtest_prod_util.cc
2024-02-17 02:00:50 +08:00

24 lines
511 B
C++

// Copyright 2024 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/gtest_prod_util.h"
namespace base::internal {
namespace {
InDeathTestChildFn g_in_death_test_fn = nullptr;
}
bool InDeathTestChild() {
return g_in_death_test_fn && (*g_in_death_test_fn)();
}
void SetInDeathTestChildFn(InDeathTestChildFn in_death_test_child_fn) {
g_in_death_test_fn = in_death_test_child_fn;
}
} // namespace base::internal