[GWP-ASan] Fix test to work with Fuchsia's zxtest
GitOrigin-RevId: 64138725e4cf0ab5e3f9c0dba38e11ce3d3b4017
diff --git a/tests/harness.h b/tests/harness.h
index 2c8187c..e6be68c 100644
--- a/tests/harness.h
+++ b/tests/harness.h
@@ -14,9 +14,11 @@
#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 @@
};
class BacktraceGuardedPoolAllocator
- : public testing::TestWithParam</* Recoverable */ bool> {
+ : public TestWithParam</* Recoverable */ bool> {
public:
void SetUp() override {
gwp_asan::options::Options Opts;