mirror of
https://github.com/intel/compute-runtime.git
synced 2025-12-30 09:58:55 +08:00
20 lines
464 B
C++
20 lines
464 B
C++
|
|
/*
|
||
|
|
* Copyright (C) 2019 Intel Corporation
|
||
|
|
*
|
||
|
|
* SPDX-License-Identifier: MIT
|
||
|
|
*
|
||
|
|
*/
|
||
|
|
|
||
|
|
#include "test.h"
|
||
|
|
#include "unit_tests/mocks/mock_buffer.h"
|
||
|
|
#include "unit_tests/mocks/mock_context.h"
|
||
|
|
|
||
|
|
using namespace NEO;
|
||
|
|
|
||
|
|
TEST(ContextExtraPropertiesTests, givenAnyBufferWhenGettingCsrForBlitOperationThenNullIsReturned) {
|
||
|
|
MockContext context;
|
||
|
|
MockBuffer buffer;
|
||
|
|
auto csr = context.getCommandStreamReceiverForBlitOperation(buffer);
|
||
|
|
EXPECT_EQ(nullptr, csr);
|
||
|
|
}
|