mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-20 17:00:59 +08:00
24 lines
485 B
C
24 lines
485 B
C
|
|
/*
|
||
|
|
* Copyright (C) 2023 Intel Corporation
|
||
|
|
*
|
||
|
|
* SPDX-License-Identifier: MIT
|
||
|
|
*
|
||
|
|
*/
|
||
|
|
|
||
|
|
#pragma once
|
||
|
|
|
||
|
|
#include "shared/source/assert_handler/assert_handler.h"
|
||
|
|
|
||
|
|
struct MockAssertHandler : NEO::AssertHandler {
|
||
|
|
|
||
|
|
using NEO::AssertHandler::assertBufferSize;
|
||
|
|
using NEO::AssertHandler::AssertHandler;
|
||
|
|
|
||
|
|
void printAssertAndAbort() override {
|
||
|
|
printAssertAndAbortCalled++;
|
||
|
|
NEO::AssertHandler::printAssertAndAbort();
|
||
|
|
}
|
||
|
|
|
||
|
|
uint32_t printAssertAndAbortCalled = 0;
|
||
|
|
};
|