mirror of
https://github.com/encounter/dawn-cmake.git
synced 2025-12-21 18:59:21 +00:00
Integrate deprecation testing into DawnTestBase
This makes it a lot easier to modify old tests to test deprecation behavior, and means we can mark all of the places that are going to break in the deprecation CL (while we're thinking about it) instead of the removal CL (which is weeks later). It also makes it so all deprecation warnings in the tests will be caught. Turns out that they were already clean. Bug: dawn:520 Change-Id: I429f667207b88df04341179369bb6d24e034ca65 Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/31141 Commit-Queue: Kai Ninomiya <kainino@chromium.org> Reviewed-by: Corentin Wallez <cwallez@chromium.org>
This commit is contained in:
committed by
Commit Bot service account
parent
82cb8d8aba
commit
2bb8035ddc
@@ -773,6 +773,11 @@ void DawnTestBase::TearDown() {
|
||||
for (size_t i = 0; i < mReadbackSlots.size(); ++i) {
|
||||
mReadbackSlots[i].buffer.Unmap();
|
||||
}
|
||||
|
||||
if (!UsesWire()) {
|
||||
EXPECT_EQ(mLastWarningCount,
|
||||
dawn_native::GetDeprecationWarningCountForTesting(device.Get()));
|
||||
}
|
||||
}
|
||||
|
||||
void DawnTestBase::StartExpectDeviceError() {
|
||||
|
||||
Reference in New Issue
Block a user