diff --git a/libc/test/UnitTest/Test.h b/libc/test/UnitTest/PigweedTest.h copy from libc/test/UnitTest/Test.h copy to libc/test/UnitTest/PigweedTest.h --- a/libc/test/UnitTest/Test.h +++ b/libc/test/UnitTest/PigweedTest.h @@ -1,4 +1,4 @@ -//===-- Header selector for libc unittests ----------------------*- C++ -*-===// +//===-- Header for setting up the Pigweed tests -----------------*- C++ -*-===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. @@ -6,13 +6,13 @@ // //===----------------------------------------------------------------------===// -#ifndef LLVM_LIBC_UTILS_UNITTEST_TEST_H -#define LLVM_LIBC_UTILS_UNITTEST_TEST_H +#ifndef LLVM_LIBC_UTILS_UNITTEST_PIGWEEDTEST_H +#define LLVM_LIBC_UTILS_UNITTEST_PIGWEEDTEST_H -#ifdef LIBC_COPT_TEST_USE_FUCHSIA -#include "FuchsiaTest.h" -#else -#include "LibcTest.h" -#endif +#include -#endif // LLVM_LIBC_UTILS_UNITTEST_TEST_H +namespace __llvm_libc::testing { +using Test = ::testing::Test; +} + +#endif // LLVM_LIBC_UTILS_UNITTEST_PIGWEEDTEST_H diff --git a/libc/test/UnitTest/Test.h b/libc/test/UnitTest/Test.h --- a/libc/test/UnitTest/Test.h +++ b/libc/test/UnitTest/Test.h @@ -11,6 +11,8 @@ #ifdef LIBC_COPT_TEST_USE_FUCHSIA #include "FuchsiaTest.h" +#elif defined(LIBC_COPT_TEST_USE_PIGWEED) +#include "PigweedTest.h" #else #include "LibcTest.h" #endif