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>
This commit is contained in:
parent
d097e7cd3b
commit
56006dcf65
|
@ -186,12 +186,13 @@ class DawnTest : public ::testing::TestWithParam<dawn_native::BackendType> {
|
||||||
|
|
||||||
// Instantiate the test once for each backend provided after the first argument. Use it like this:
|
// Instantiate the test once for each backend provided after the first argument. Use it like this:
|
||||||
// DAWN_INSTANTIATE_TEST(MyTestFixture, MetalBackend, OpenGLBackend)
|
// DAWN_INSTANTIATE_TEST(MyTestFixture, MetalBackend, OpenGLBackend)
|
||||||
#define DAWN_INSTANTIATE_TEST(testName, firstParam, ...) \
|
#define DAWN_INSTANTIATE_TEST(testName, firstParam, ...) \
|
||||||
const decltype(firstParam) testName##params[] = {firstParam, ##__VA_ARGS__}; \
|
const decltype(firstParam) testName##params[] = {firstParam, ##__VA_ARGS__}; \
|
||||||
INSTANTIATE_TEST_CASE_P(, testName, \
|
INSTANTIATE_TEST_SUITE_P( \
|
||||||
testing::ValuesIn(::detail::FilterBackends( \
|
, testName, \
|
||||||
testName##params, sizeof(testName##params) / sizeof(firstParam))), \
|
testing::ValuesIn(::detail::FilterBackends( \
|
||||||
::detail::GetParamName);
|
testName##params, sizeof(testName##params) / sizeof(firstParam))), \
|
||||||
|
::detail::GetParamName);
|
||||||
|
|
||||||
// Skip a test when the given condition is satisfied.
|
// Skip a test when the given condition is satisfied.
|
||||||
#define DAWN_SKIP_TEST_IF(condition) \
|
#define DAWN_SKIP_TEST_IF(condition) \
|
||||||
|
|
Loading…
Reference in New Issue