[GWP-ASan] Fix test to work with Fuchsia's zxtest
authorAlex Brachet <abrachet@google.com>
Wed, 11 Jan 2023 23:16:19 +0000 (23:16 +0000)
committerAlex Brachet <abrachet@google.com>
Wed, 11 Jan 2023 23:16:19 +0000 (23:16 +0000)
compiler-rt/lib/gwp_asan/tests/harness.h

index 2c8187c..e6be68c 100644 (file)
 #if defined(__Fuchsia__)
 #include <zxtest/zxtest.h>
 using Test = ::zxtest::Test;
+template <typename T> using TestWithParam = ::zxtest::TestWithParam<T>;
 #else
 #include "gtest/gtest.h"
 using Test = ::testing::Test;
+template <typename T> using TestWithParam = ::zxtest::TestWithParam<T>;
 #endif
 
 #include "gwp_asan/guarded_pool_allocator.h"
@@ -82,7 +84,7 @@ protected:
 };
 
 class BacktraceGuardedPoolAllocator
-    : public testing::TestWithParam</* Recoverable */ bool> {
+    : public TestWithParam</* Recoverable */ bool> {
 public:
   void SetUp() override {
     gwp_asan::options::Options Opts;