summaryrefslogtreecommitdiffstats
path: root/vespalib
diff options
context:
space:
mode:
authorTor Egge <Tor.Egge@broadpark.no>2020-03-28 23:33:03 +0100
committerTor Egge <Tor.Egge@broadpark.no>2020-03-29 17:56:55 +0200
commit463b515efa427bb031e6b83047050084f94008a4 (patch)
treeeace270f599ab41f93ff5db6ae60a138ef68da75 /vespalib
parent49bbb07870e221e6c38b2b7955985c5f3f5518ed (diff)
Handle newer gtest versions where the legacy API is deprecated.
Diffstat (limited to 'vespalib')
-rw-r--r--vespalib/src/tests/datastore/unique_store/unique_store_test.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/vespalib/src/tests/datastore/unique_store/unique_store_test.cpp b/vespalib/src/tests/datastore/unique_store/unique_store_test.cpp
index 88a5a05738b..f828b4a52e9 100644
--- a/vespalib/src/tests/datastore/unique_store/unique_store_test.cpp
+++ b/vespalib/src/tests/datastore/unique_store/unique_store_test.cpp
@@ -159,7 +159,11 @@ template <>
std::vector<double> TestBase<DoubleUniqueStore>::values{ 10.0, 20.0, 30.0, 10.0 };
using UniqueStoreTestTypes = ::testing::Types<NumberUniqueStore, StringUniqueStore, CStringUniqueStore, DoubleUniqueStore>;
+#ifdef TYPED_TEST_SUITE
+TYPED_TEST_SUITE(TestBase, UniqueStoreTestTypes);
+#else
TYPED_TEST_CASE(TestBase, UniqueStoreTestTypes);
+#endif
// Disable warnings emitted by gtest generated files when using typed tests
#pragma GCC diagnostic push