Remove NiceMock on device lost callback.

- Unexpected device lost should result in an error.

Fixes: dawn:1412
Change-Id: I6fe0b1ccc3e4b51cc85b9a058f8eac65c7622d89
Reviewed-on: https://dawn-review.googlesource.com/c/dawn/+/89500
Auto-Submit: Loko Kung <lokokung@google.com>
Reviewed-by: Austin Eng <enga@chromium.org>
Commit-Queue: Austin Eng <enga@chromium.org>
This commit is contained in:
Loko Kung 2022-05-09 23:10:54 +00:00 committed by Dawn LUCI CQ
parent 61f30bad1e
commit bfe9f91975
1 changed files with 1 additions and 1 deletions

View File

@ -354,7 +354,7 @@ class DawnTestBase {
// Mock callbacks tracking errors and destruction. Device lost is a nice mock since tests that // Mock callbacks tracking errors and destruction. Device lost is a nice mock since tests that
// do not care about device destruction can ignore the callback entirely. // do not care about device destruction can ignore the callback entirely.
testing::MockCallback<WGPUErrorCallback> mDeviceErrorCallback; testing::MockCallback<WGPUErrorCallback> mDeviceErrorCallback;
testing::NiceMock<testing::MockCallback<WGPUDeviceLostCallback>> mDeviceLostCallback; testing::MockCallback<WGPUDeviceLostCallback> mDeviceLostCallback;
// Helper methods to implement the EXPECT_ macros // Helper methods to implement the EXPECT_ macros
std::ostringstream& AddBufferExpectation(const char* file, std::ostringstream& AddBufferExpectation(const char* file,