Skip to content

Commit 5c1d06c

Browse files
committed
Fix gtest deprecated functions
Signed-off-by: cyy <cyyever@outlook.com>
1 parent ca2f28e commit 5c1d06c

21 files changed

+39
-39
lines changed

test/EmbeddingSpMDM8BitTest.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ class Fused8BitRowwiseEmbeddingLookupTest
5858
EmbeddingSpMDMOutputDtypeChoice>> {};
5959
}; // namespace
6060

61-
INSTANTIATE_TEST_CASE_P(
61+
INSTANTIATE_TEST_SUITE_P(
6262
InstantiationName,
6363
Fused8BitRowwiseEmbeddingLookupTest,
6464
::testing::Combine(

test/EmbeddingSpMDMNBitTest.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class FusedNBitRowwiseEmbeddingLookupTest : public testing::TestWithParam<tuple<
6161
EmbeddingSpMDMDtypeChoice>> {};
6262
}; // namespace
6363

64-
INSTANTIATE_TEST_CASE_P(
64+
INSTANTIATE_TEST_SUITE_P(
6565
InstantiationName,
6666
FusedNBitRowwiseEmbeddingLookupTest,
6767
::testing::Combine(

test/EmbeddingSpMDMTest.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ class IndexRemapTest
6767

6868
static vector<int> prefetch_distances = {0, 16, 1000000};
6969

70-
INSTANTIATE_TEST_CASE_P(
70+
INSTANTIATE_TEST_SUITE_P(
7171
InstantiationName,
7272
EmbeddingSpMDMTest,
7373
::testing::Combine(
@@ -84,7 +84,7 @@ INSTANTIATE_TEST_CASE_P(
8484
::testing::Values(FLOAT, FLOAT16, BFLOAT16),
8585
::testing::Values(FLOAT, FLOAT16, BFLOAT16)));
8686

87-
INSTANTIATE_TEST_CASE_P(
87+
INSTANTIATE_TEST_SUITE_P(
8888
InstantiationName,
8989
rowwiseSparseEmbeddingSpMDMTest,
9090
::testing::Combine(
@@ -99,7 +99,7 @@ INSTANTIATE_TEST_CASE_P(
9999
OUT_OF_BOUND_INDICES,
100100
UNMATCHED_NUM_INDICES_AND_LENGTHS_SUM)));
101101

102-
INSTANTIATE_TEST_CASE_P(
102+
INSTANTIATE_TEST_SUITE_P(
103103
InstantiationName,
104104
IndexRemapTest,
105105
::testing::Combine(

test/FP16Test.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313

1414
using FBGemmFP16Test = fbgemm::FBGemmFPTest<fbgemm::float16>;
1515

16-
INSTANTIATE_TEST_CASE_P(
16+
INSTANTIATE_TEST_SUITE_P(
1717
InstantiationName,
1818
FBGemmFP16Test,
1919
::testing::Values(

test/FP32Test.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
using FBGemmFP32Test = fbgemm::FBGemmFPTest<float>;
2222

23-
INSTANTIATE_TEST_CASE_P(
23+
INSTANTIATE_TEST_SUITE_P(
2424
InstantiationName,
2525
FBGemmFP32Test,
2626
::testing::Values(

test/Float16ConvertTest.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ namespace {
2121
class FBGemmFloat16Test : public testing::TestWithParam<bool> {};
2222
}; // namespace
2323

24-
INSTANTIATE_TEST_CASE_P(
24+
INSTANTIATE_TEST_SUITE_P(
2525
InstantiationName,
2626
FBGemmFloat16Test,
2727
::testing::Bool());

test/GConvTest.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -49,14 +49,14 @@ class fbgemmGConvAcc32WithQuantGranularityTest
4949
class fbgemmGConvPackTest : public testing::TestWithParam<matrix_op_t> {};
5050
}; // namespace
5151

52-
// INSTANTIATE_TEST_CASE_P(
52+
// INSTANTIATE_TEST_SUITE_P(
5353
// InstantiationName,
5454
// fbgemmGConvAcc32Test,
5555
// ::testing::Combine(
5656
// ::testing::Values(matrix_op_t::NoTranspose),
5757
// ::testing::ValuesIn(transposeVals)));
5858

59-
INSTANTIATE_TEST_CASE_P(
59+
INSTANTIATE_TEST_SUITE_P(
6060
InstantiationName,
6161
fbgemmGConvAcc32WithQuantGranularityTest,
6262
::testing::Combine(
@@ -66,7 +66,7 @@ INSTANTIATE_TEST_CASE_P(
6666
::testing::Bool(), // A symmetric
6767
::testing::Bool())); // B symmetric
6868

69-
INSTANTIATE_TEST_CASE_P(
69+
INSTANTIATE_TEST_SUITE_P(
7070
InstantiationName,
7171
fbgemmGConvPackTest,
7272
::testing::ValuesIn(transposeVals));

test/I8DepthwiseTest.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -107,20 +107,20 @@ class FBGemmDepthWisePackUnpackTest
107107

108108
} // namespace
109109

110-
INSTANTIATE_TEST_CASE_P(
110+
INSTANTIATE_TEST_SUITE_P(
111111
InstantiationName,
112112
FBGemmDepthWiseTest,
113113
::testing::Combine(
114114
::testing::Bool(), // a_symmetric
115115
::testing::Bool(), // b_symmetric
116116
::testing::Values(1, 2))); // oc_per_g
117117

118-
INSTANTIATE_TEST_CASE_P(
118+
INSTANTIATE_TEST_SUITE_P(
119119
InstantiationName,
120120
FBGemmDepthWisePerChannelQuantizationTest,
121121
::testing::Values(1, 2));
122122

123-
INSTANTIATE_TEST_CASE_P(
123+
INSTANTIATE_TEST_SUITE_P(
124124
InstantiationName,
125125
FBGemmDepthWisePackUnpackTest,
126126
::testing::Combine(

test/I8DirectconvTest.cc

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ static void QuantizeDirectConv_ref(
248248
}
249249
}
250250
251-
INSTANTIATE_TEST_CASE_P(
251+
INSTANTIATE_TEST_SUITE_P(
252252
InstantiationName,
253253
FBGemmDirectConvTest,
254254
::testing::Combine(
@@ -418,7 +418,7 @@ TEST_P(FBGemmDirectConvTest, Test2D) {
418418
*/
419419

420420

421-
INSTANTIATE_TEST_CASE_P(
421+
INSTANTIATE_TEST_SUITE_P(
422422
InstantiationName,
423423
FBGemmDirectConvTransTest,
424424
::testing::Combine(
@@ -608,7 +608,7 @@ TEST_P(FBGemmDirectConvTransTest, Test2D) {
608608
}
609609

610610

611-
INSTANTIATE_TEST_CASE_P(
611+
INSTANTIATE_TEST_SUITE_P(
612612
InstantiationName,
613613
FBGemmDirectConvTransFbgemmTest,
614614
::testing::Combine(

test/I8SpmdmTest.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ class fbgemmSPMDMTest
3535
: public testing::TestWithParam<std::tuple<float, bool, bool>> {};
3636
} // namespace
3737

38-
INSTANTIATE_TEST_CASE_P(
38+
INSTANTIATE_TEST_SUITE_P(
3939
Instance0,
4040
fbgemmSPMDMTest,
4141
::testing::Combine(

0 commit comments

Comments
 (0)