2017-12-21 07:45:38 +08:00
|
|
|
/*
|
2018-09-18 15:11:08 +08:00
|
|
|
* Copyright (C) 2017-2018 Intel Corporation
|
2017-12-21 07:45:38 +08:00
|
|
|
*
|
2018-09-18 15:11:08 +08:00
|
|
|
* SPDX-License-Identifier: MIT
|
2017-12-21 07:45:38 +08:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
|
|
|
#include "test.h"
|
|
|
|
#include "unit_tests/mocks/mock_mdi.h"
|
|
|
|
|
|
|
|
using namespace OCLRT;
|
|
|
|
|
|
|
|
struct MultiDispatchInfoTest : public ::testing::Test {
|
|
|
|
|
|
|
|
void SetUp() override {
|
|
|
|
}
|
|
|
|
|
|
|
|
void TearDown() override {
|
|
|
|
}
|
|
|
|
};
|
|
|
|
|
|
|
|
TEST_F(MultiDispatchInfoTest, MultiDispatchInfoWithNullKernel) {
|
|
|
|
|
|
|
|
MockMultiDispatchInfo multiDispatchInfo(nullptr);
|
|
|
|
|
|
|
|
EXPECT_FALSE(multiDispatchInfo.begin()->usesSlm());
|
|
|
|
EXPECT_FALSE(multiDispatchInfo.begin()->usesStatelessPrintfSurface());
|
|
|
|
EXPECT_EQ(0u, multiDispatchInfo.begin()->getRequiredScratchSize());
|
|
|
|
}
|