Skip to content

Commit

Permalink
#376: fix gtest deprecation warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
cz4rs committed Nov 20, 2024
1 parent ba16d6e commit 25f693a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion tests/unit/test_kokkos_3d_commons.h
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ using Test3DConstTypesStride =

template <typename ParamT> struct KokkosViewTest3D : KokkosViewTest<ParamT> { };

TYPED_TEST_CASE_P(KokkosViewTest3D);
TYPED_TEST_SUITE_P(KokkosViewTest3D);

TYPED_TEST_P(KokkosViewTest3D, test_3d_any) {
using namespace checkpoint;
Expand Down
6 changes: 3 additions & 3 deletions tests/unit/test_kokkos_serialize_0d.cc
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@

template <typename ParamT> struct KokkosViewTest0D : KokkosViewTest<ParamT> { };

TYPED_TEST_CASE_P(KokkosViewTest0D);
TYPED_TEST_SUITE_P(KokkosViewTest0D);

TYPED_TEST_P(KokkosViewTest0D, test_0d_any) {
using namespace checkpoint;
Expand All @@ -72,11 +72,11 @@ TYPED_TEST_P(KokkosViewTest0D, test_0d_any) {
}
}

REGISTER_TYPED_TEST_CASE_P(KokkosViewTest0D, test_0d_any);
REGISTER_TYPED_TEST_SUITE_P(KokkosViewTest0D, test_0d_any);

#if DO_UNIT_TESTS_FOR_VIEW

INSTANTIATE_TYPED_TEST_CASE_P(test_0d, KokkosViewTest0D, Test0DTypes, );
INSTANTIATE_TYPED_TEST_SUITE_P(test_0d, KokkosViewTest0D, Test0DTypes, );

#endif

Expand Down
6 changes: 3 additions & 3 deletions tests/unit/test_kokkos_serialize_3d_left.cc
Original file line number Diff line number Diff line change
Expand Up @@ -47,9 +47,9 @@
#include "test_kokkos_3d_commons.h"

#if DO_UNIT_TESTS_FOR_VIEW
REGISTER_TYPED_TEST_CASE_P(KokkosViewTest3D, test_3d_any);
INSTANTIATE_TYPED_TEST_CASE_P(test_3d_L, KokkosViewTest3D, Test3DTypesLeft, );
INSTANTIATE_TYPED_TEST_CASE_P(test_3d_L_C, KokkosViewTest3D, Test3DConstTypesLeft, );
REGISTER_TYPED_TEST_SUITE_P(KokkosViewTest3D, test_3d_any);
INSTANTIATE_TYPED_TEST_SUITE_P(test_3d_L, KokkosViewTest3D, Test3DTypesLeft, );
INSTANTIATE_TYPED_TEST_SUITE_P(test_3d_L_C, KokkosViewTest3D, Test3DConstTypesLeft, );
#endif

#endif

0 comments on commit 25f693a

Please sign in to comment.