mirror of
https://github.com/klzgrad/naiveproxy.git
synced 2024-12-01 09:46:09 +03:00
24 lines
511 B
C++
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
|