ValidationTest: correctly assert deprecation warnings are emitted.
Bug: dawn:642 Change-Id: If8601c50e4a14b5de5098398381c7a6c5e1f73fd Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/44867 Auto-Submit: Corentin Wallez <cwallez@chromium.org> Commit-Queue: Brandon Jones <bajones@chromium.org> Reviewed-by: Austin Eng <enga@chromium.org> Reviewed-by: Brandon Jones <bajones@chromium.org>
This commit is contained in:
parent
6e5d47a396
commit
3fe857a621
|
@ -45,10 +45,11 @@
|
|||
do { \
|
||||
FlushWire(); \
|
||||
size_t warningsBefore = dawn_native::GetDeprecationWarningCountForTesting(backendDevice); \
|
||||
EXPECT_EQ(mLastWarningCount, warningsBefore); \
|
||||
statement; \
|
||||
FlushWire(); \
|
||||
size_t warningsAfter = dawn_native::GetDeprecationWarningCountForTesting(backendDevice); \
|
||||
EXPECT_EQ(mLastWarningCount, warningsBefore); \
|
||||
EXPECT_EQ(warningsAfter, warningsBefore + 1); \
|
||||
mLastWarningCount = warningsAfter; \
|
||||
} while (0)
|
||||
|
||||
|
|
Loading…
Reference in New Issue