Files
compute-runtime/opencl/test/unit_test/mocks/mock_aub_center.h
Filip Hazubski 7d01074ee4 Update aub/tbx stepping handling
For the stepping value use hardware value.

Resolves: NEO-5475

Signed-off-by: Filip Hazubski <filip.hazubski@intel.com>
2021-02-15 13:57:39 +01:00

40 lines
812 B
C++

/*
* Copyright (C) 2018-2021 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
*/
#pragma once
#include "shared/source/aub/aub_center.h"
#include "shared/source/aub/aub_stream_provider.h"
#include "opencl/test/unit_test/mocks/mock_aub_file_stream.h"
namespace NEO {
class MockAubStreamProvider : public AubStreamProvider {
public:
AubMemDump::AubFileStream *getStream() override {
return &stream;
}
protected:
MockAubFileStream stream;
};
class MockAubCenter : public AubCenter {
public:
using AubCenter::AubCenter;
using AubCenter::aubManager;
using AubCenter::aubStreamMode;
using AubCenter::stepping;
MockAubCenter() {
streamProvider.reset(new MockAubStreamProvider());
}
~MockAubCenter() override = default;
};
} // namespace NEO