test: Replace _TEST_CASE_ with _TEST_SUITE_.
Googletest is (at last) converging with industry-standard terminology
[1]. We previously called test suites "test cases", which was rather
confusing for folks coming from any other testing framework.
Chrome now has a googletest version that supports _TEST_SUITE_ macros
instead of _TEST_CASE_, so this CL cleans up some of the outdated usage.
[1] https://github.com/google/googletest/blob/master/googletest/docs/primer.md#beware-of-the-nomenclature
Bug: chromium:925652
Change-Id: I86067e8846e31adedcf139f9650ac4e0ed5fbb19
Reviewed-on: https://dawn-review.googlesource.com/c/4921
Commit-Queue: Corentin Wallez <cwallez@chromium.org>
Reviewed-by: Corentin Wallez <cwallez@chromium.org>
diff --git a/src/tests/DawnTest.h b/src/tests/DawnTest.h
index 1b95782..8c28e23 100644
--- a/src/tests/DawnTest.h
+++ b/src/tests/DawnTest.h
@@ -186,12 +186,13 @@
// Instantiate the test once for each backend provided after the first argument. Use it like this:
// DAWN_INSTANTIATE_TEST(MyTestFixture, MetalBackend, OpenGLBackend)
-#define DAWN_INSTANTIATE_TEST(testName, firstParam, ...) \
- const decltype(firstParam) testName##params[] = {firstParam, ##__VA_ARGS__}; \
- INSTANTIATE_TEST_CASE_P(, testName, \
- testing::ValuesIn(::detail::FilterBackends( \
- testName##params, sizeof(testName##params) / sizeof(firstParam))), \
- ::detail::GetParamName);
+#define DAWN_INSTANTIATE_TEST(testName, firstParam, ...) \
+ const decltype(firstParam) testName##params[] = {firstParam, ##__VA_ARGS__}; \
+ INSTANTIATE_TEST_SUITE_P( \
+ , testName, \
+ testing::ValuesIn(::detail::FilterBackends( \
+ testName##params, sizeof(testName##params) / sizeof(firstParam))), \
+ ::detail::GetParamName);
// Skip a test when the given condition is satisfied.
#define DAWN_SKIP_TEST_IF(condition) \