Skip to content

Commit

Permalink
Fix build with gtest 1.11
Browse files Browse the repository at this point in the history
INSTANTIATE_TYPED_TEST_CASE_P requires a non-empty prefix now
  • Loading branch information
antonio-rojas authored and hassec committed Jun 20, 2021
1 parent 2f83b7e commit c069e36
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions unitTests/test_slice.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -440,12 +440,12 @@ REGISTER_TYPED_TEST_CASE_P(slice, atAccess, iteratorAccess, constructionFailsFro
constMethodsPreserveConst);

typedef ::testing::Types<const std::vector<int>, std::vector<int>, int*, const int*> test_types_t;
INSTANTIATE_TYPED_TEST_CASE_P(, slice, test_types_t);
INSTANTIATE_TYPED_TEST_CASE_P(slice, slice, test_types_t);

REGISTER_TYPED_TEST_CASE_P(mutableSlice, iterators, at);
typedef ::testing::Types<std::vector<int>, int*> mut_test_types_t;
INSTANTIATE_TYPED_TEST_CASE_P(, mutableSlice, mut_test_types_t);
INSTANTIATE_TYPED_TEST_CASE_P(slice, mutableSlice, mut_test_types_t);

REGISTER_TYPED_TEST_CASE_P(dataBufSlice, successfulConstruction, failedConstruction);
typedef ::testing::Types<DataBuf&, const DataBuf&> data_buf_types_t;
INSTANTIATE_TYPED_TEST_CASE_P(, dataBufSlice, data_buf_types_t);
INSTANTIATE_TYPED_TEST_CASE_P(slice, dataBufSlice, data_buf_types_t);

0 comments on commit c069e36

Please sign in to comment.