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:
parent
61f30bad1e
commit
bfe9f91975
|
@ -354,7 +354,7 @@ class DawnTestBase {
|
|||
// 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.
|
||||
testing::MockCallback<WGPUErrorCallback> mDeviceErrorCallback;
|
||||
testing::NiceMock<testing::MockCallback<WGPUDeviceLostCallback>> mDeviceLostCallback;
|
||||
testing::MockCallback<WGPUDeviceLostCallback> mDeviceLostCallback;
|
||||
|
||||
// Helper methods to implement the EXPECT_ macros
|
||||
std::ostringstream& AddBufferExpectation(const char* file,
|
||||
|
|
Loading…
Reference in New Issue