diff --git a/tests/test_apply.cc b/tests/test_apply.cc index 15138c4c..f31aac9f 100644 --- a/tests/test_apply.cc +++ b/tests/test_apply.cc @@ -88,7 +88,7 @@ typedef ::testing::Types ApplyTestCases; -TYPED_TEST_CASE_P(ApplyTester); +TYPED_TEST_SUITE_P(ApplyTester); TYPED_TEST_P(ApplyTester, test_apply_sanity) { auto parent = this->test_case.get_parent(); @@ -102,9 +102,9 @@ TYPED_TEST_P(ApplyTester, test_apply_sanity) { EXPECT_EQ(expected, actual); } -REGISTER_TYPED_TEST_CASE_P(ApplyTester, test_apply_sanity); +REGISTER_TYPED_TEST_SUITE_P(ApplyTester, test_apply_sanity); -INSTANTIATE_TYPED_TEST_CASE_P(test_apply, ApplyTester, ApplyTestCases); +INSTANTIATE_TYPED_TEST_SUITE_P(test_apply, ApplyTester, ApplyTestCases); TEST(test_apply, test_vector_apply_free_function) { diff --git a/tests/test_call_trace.cc b/tests/test_call_trace.cc index bc9be540..01014abf 100644 --- a/tests/test_call_trace.cc +++ b/tests/test_call_trace.cc @@ -146,7 +146,7 @@ typedef ::testing::Types TestFunctions; -TYPED_TEST_CASE(TestCallTreeCovarianceFunctions, TestFunctions); +TYPED_TEST_SUITE(TestCallTreeCovarianceFunctions, TestFunctions); TYPED_TEST(TestCallTreeCovarianceFunctions, prints_call_trace) { X x; diff --git a/tests/test_core_distribution.cc b/tests/test_core_distribution.cc index 37898b81..8bbb20e5 100644 --- a/tests/test_core_distribution.cc +++ b/tests/test_core_distribution.cc @@ -163,13 +163,13 @@ TYPED_TEST_P(DistributionTest, test_subtract) { EXPECT_EQ(actual, expected); }; -REGISTER_TYPED_TEST_CASE_P(DistributionTest, test_subset, - test_multiply_with_matrix_joint, - test_multiply_with_matrix_marginal, - test_multiply_with_sparse_matrix_joint, - test_multiply_with_sparse_matrix_marginal, - test_multiply_with_vector, test_multiply_by_scalar, - test_add, test_subtract); +REGISTER_TYPED_TEST_SUITE_P(DistributionTest, test_subset, + test_multiply_with_matrix_joint, + test_multiply_with_matrix_marginal, + test_multiply_with_sparse_matrix_joint, + test_multiply_with_sparse_matrix_marginal, + test_multiply_with_vector, test_multiply_by_scalar, + test_add, test_subtract); Eigen::VectorXd arange(int k = 5) { Eigen::VectorXd mean(k); @@ -203,6 +203,6 @@ struct JointWithCovariance : public DistributionTestCase { typedef ::testing::Types ToTest; -INSTANTIATE_TYPED_TEST_CASE_P(Albatross, DistributionTest, ToTest); +INSTANTIATE_TYPED_TEST_SUITE_P(Albatross, DistributionTest, ToTest); } // namespace albatross diff --git a/tests/test_core_distribution.h b/tests/test_core_distribution.h index aa111196..69f3ee7e 100644 --- a/tests/test_core_distribution.h +++ b/tests/test_core_distribution.h @@ -53,5 +53,5 @@ struct DistributionTest : public ::testing::Test { typedef typename Distribution::RepresentationType Representation; }; -TYPED_TEST_CASE_P(DistributionTest); +TYPED_TEST_SUITE_P(DistributionTest); } // namespace albatross diff --git a/tests/test_covariance_functions.cc b/tests/test_covariance_functions.cc index 09bd8c11..d0e4fdfb 100644 --- a/tests/test_covariance_functions.cc +++ b/tests/test_covariance_functions.cc @@ -123,8 +123,8 @@ typedef ::testing::Types< Exponential> VectorCompatibleCovarianceFunctions; -TYPED_TEST_CASE(TestVectorCovarianceFunctions, - VectorCompatibleCovarianceFunctions); +TYPED_TEST_SUITE(TestVectorCovarianceFunctions, + VectorCompatibleCovarianceFunctions); TYPED_TEST(TestVectorCovarianceFunctions, WorksWithEigen) { const auto xs = points_on_a_line(5); @@ -190,8 +190,8 @@ typedef ::testing::Types< SumOfCovarianceFunctions, DummyCovariance>> DoubleCompatibleCovarianceFunctions; -TYPED_TEST_CASE(TestDoubleCovarianceFunctions, - DoubleCompatibleCovarianceFunctions); +TYPED_TEST_SUITE(TestDoubleCovarianceFunctions, + DoubleCompatibleCovarianceFunctions); TYPED_TEST(TestDoubleCovarianceFunctions, works_with_eigen) { const auto xs = points_on_a_line(5); diff --git a/tests/test_cross_validation.cc b/tests/test_cross_validation.cc index e10d9591..5847c436 100644 --- a/tests/test_cross_validation.cc +++ b/tests/test_cross_validation.cc @@ -121,12 +121,12 @@ TYPED_TEST_P(RegressionModelTester, test_score_variants) { } } -REGISTER_TYPED_TEST_CASE_P(RegressionModelTester, test_loo_predict_variants, - test_logo_predict_variants, test_loo_get_predictions, - test_score_variants); +REGISTER_TYPED_TEST_SUITE_P(RegressionModelTester, test_loo_predict_variants, + test_logo_predict_variants, + test_loo_get_predictions, test_score_variants); -INSTANTIATE_TYPED_TEST_CASE_P(test_cross_validation, RegressionModelTester, - ExampleModels); +INSTANTIATE_TYPED_TEST_SUITE_P(test_cross_validation, RegressionModelTester, + ExampleModels); /* * Here we build two different datasets. Each dataset consists of targets @@ -234,7 +234,7 @@ class SpecializedCrossValidationTester : public ::testing::Test { typedef ::testing::Types SpecializedModels; -TYPED_TEST_CASE(SpecializedCrossValidationTester, SpecializedModels); +TYPED_TEST_SUITE(SpecializedCrossValidationTester, SpecializedModels); TYPED_TEST(SpecializedCrossValidationTester, test_uses_specialized_cross_validation_functions) { diff --git a/tests/test_group_by.cc b/tests/test_group_by.cc index ff9f6d13..e6553853 100644 --- a/tests/test_group_by.cc +++ b/tests/test_group_by.cc @@ -165,7 +165,7 @@ typedef ::testing::Types GrouperTestCases; -TYPED_TEST_CASE_P(GroupByTester); +TYPED_TEST_SUITE_P(GroupByTester); template , LeaveOneOutRMSE, GaussianProcessNegativeLogLikelihood> MetricsToTest; -TYPED_TEST_CASE(ModelMetricTester, MetricsToTest); +TYPED_TEST_SUITE(ModelMetricTester, MetricsToTest); TYPED_TEST(ModelMetricTester, test_sanity) { MakeGaussianProcess test_case; diff --git a/tests/test_models.cc b/tests/test_models.cc index 10d2e251..9ded0978 100644 --- a/tests/test_models.cc +++ b/tests/test_models.cc @@ -95,13 +95,13 @@ TYPED_TEST_P(RegressionModelTester, test_correct_derived_type) { EXPECT_TRUE(same); } -REGISTER_TYPED_TEST_CASE_P(RegressionModelTester, - test_performs_reasonably_on_linear_data, - test_predict_order_preserved, test_predict_variants, - test_correct_derived_type); +REGISTER_TYPED_TEST_SUITE_P(RegressionModelTester, + test_performs_reasonably_on_linear_data, + test_predict_order_preserved, test_predict_variants, + test_correct_derived_type); -INSTANTIATE_TYPED_TEST_CASE_P(test_models, RegressionModelTester, - ExampleModels); +INSTANTIATE_TYPED_TEST_SUITE_P(test_models, RegressionModelTester, + ExampleModels); class BadModel : public ModelBase { public: diff --git a/tests/test_models.h b/tests/test_models.h index 9f8c1a1d..7b60cdce 100644 --- a/tests/test_models.h +++ b/tests/test_models.h @@ -293,7 +293,7 @@ typedef ::testing::Types ExampleModels; -TYPED_TEST_CASE_P(RegressionModelTester); +TYPED_TEST_SUITE_P(RegressionModelTester); enum PredictLevel { MEAN, MARGINAL, JOINT }; diff --git a/tests/test_radial.cc b/tests/test_radial.cc index 65291c2f..08c7acbd 100644 --- a/tests/test_radial.cc +++ b/tests/test_radial.cc @@ -92,7 +92,7 @@ class CovarianceStateSpaceTester : public ::testing::Test { using StateSpaceTestCases = ::testing::Types; -TYPED_TEST_CASE(CovarianceStateSpaceTester, StateSpaceTestCases); +TYPED_TEST_SUITE(CovarianceStateSpaceTester, StateSpaceTestCases); TYPED_TEST(CovarianceStateSpaceTester, test_state_space_representation) { diff --git a/tests/test_serialize.cc b/tests/test_serialize.cc index d009e4b8..5d302daa 100644 --- a/tests/test_serialize.cc +++ b/tests/test_serialize.cc @@ -275,8 +275,8 @@ struct LinearCombo : public SerializableType> { } }; -REGISTER_TYPED_TEST_CASE_P(SerializeTest, test_roundtrip_serialize_json, - test_roundtrip_serialize_binary); +REGISTER_TYPED_TEST_SUITE_P(SerializeTest, test_roundtrip_serialize_json, + test_roundtrip_serialize_binary); typedef ::testing::Types, EmptyEigenVectorXd, @@ -287,7 +287,7 @@ typedef ::testing::Types ToTest; -INSTANTIATE_TYPED_TEST_CASE_P(Albatross, SerializeTest, ToTest); +INSTANTIATE_TYPED_TEST_SUITE_P(Albatross, SerializeTest, ToTest); /* * Make sure all the example models serialize. @@ -380,11 +380,11 @@ TYPED_TEST_P(RegressionModelTester, test_fit_model_serializes) { SerializableFitModelType>(); } -REGISTER_TYPED_TEST_CASE_P(RegressionModelTester, test_model_serializes, - test_fit_model_serializes); +REGISTER_TYPED_TEST_SUITE_P(RegressionModelTester, test_model_serializes, + test_fit_model_serializes); -INSTANTIATE_TYPED_TEST_CASE_P(test_serialize, RegressionModelTester, - ExampleModels); +INSTANTIATE_TYPED_TEST_SUITE_P(test_serialize, RegressionModelTester, + ExampleModels); TEST(test_serialize, test_variant_version_0) { int one = 1; diff --git a/tests/test_serialize.h b/tests/test_serialize.h index 9a2dc0cb..637f8e27 100644 --- a/tests/test_serialize.h +++ b/tests/test_serialize.h @@ -27,7 +27,7 @@ template struct SerializeTest : public ::testing::Test { typedef typename Serializable::RepresentationType Representation; }; -TYPED_TEST_CASE_P(SerializeTest); +TYPED_TEST_SUITE_P(SerializeTest); template diff --git a/tests/test_sparse_gp.cc b/tests/test_sparse_gp.cc index c48aed5a..3b6f6776 100644 --- a/tests/test_sparse_gp.cc +++ b/tests/test_sparse_gp.cc @@ -35,7 +35,7 @@ class SparseGaussianProcessTest : public ::testing::Test { }; typedef ::testing::Types IndependenceAssumptions; -TYPED_TEST_CASE(SparseGaussianProcessTest, IndependenceAssumptions); +TYPED_TEST_SUITE(SparseGaussianProcessTest, IndependenceAssumptions); template void expect_sparse_gp_performance(const CovFunc &covariance, diff --git a/tests/test_traits_indexing.cc b/tests/test_traits_indexing.cc index b058691e..833bb4fc 100644 --- a/tests/test_traits_indexing.cc +++ b/tests/test_traits_indexing.cc @@ -66,7 +66,7 @@ typedef ::testing::Types< WithReturnType> TestFunctions; -TYPED_TEST_CASE(TestCanBeCalledWithInt, TestFunctions); +TYPED_TEST_SUITE(TestCanBeCalledWithInt, TestFunctions); TYPED_TEST(TestCanBeCalledWithInt, test_invocalbe) { using Expected = typename TypeParam::ReturnType; @@ -163,7 +163,7 @@ typedef ::testing::Types< decltype(lambda_bool_const_ref_int), CallOperatorBoolConstRefInt> ValueFilterFunctionTestCases; -TYPED_TEST_CASE(TestIsValueFilterFunction, ValueFilterFunctionTestCases); +TYPED_TEST_SUITE(TestIsValueFilterFunction, ValueFilterFunctionTestCases); TYPED_TEST(TestIsValueFilterFunction, test_is_value_filter_function) { EXPECT_TRUE(bool( diff --git a/third_party/googletest b/third_party/googletest index dfa853b6..58d77fa8 160000 --- a/third_party/googletest +++ b/third_party/googletest @@ -1 +1 @@ -Subproject commit dfa853b63d17c787914b663b50c2095a0c5b706e +Subproject commit 58d77fa8070e8cec2dc1ed015d66b454c8d78850