mirror of
https://github.com/intel/compute-runtime.git
synced 2026-01-01 12:33:12 +08:00
Change-Id: If965c79d70392db26597aea4c2f3b7ae2820fe96 Signed-off-by: Maciej Plewka <maciej.plewka@intel.com>
24 lines
558 B
C++
24 lines
558 B
C++
/*
|
|
* Copyright (C) 2017-2019 Intel Corporation
|
|
*
|
|
* SPDX-License-Identifier: MIT
|
|
*
|
|
*/
|
|
|
|
#include "test.h"
|
|
#include "unit_tests/fixtures/device_fixture.h"
|
|
|
|
using namespace NEO;
|
|
|
|
typedef Test<DeviceFixture> DeviceTest;
|
|
|
|
BXTTEST_F(DeviceTest, getSupportedClVersion12Device) {
|
|
auto version = pDevice->getSupportedClVersion();
|
|
EXPECT_EQ(12u, version);
|
|
}
|
|
|
|
BXTTEST_F(DeviceTest, givenBxtDeviceWhenAskedForProflingTimerResolutionThen52IsReturned) {
|
|
auto resolution = pDevice->getProfilingTimerResolution();
|
|
EXPECT_DOUBLE_EQ(52.083, resolution);
|
|
}
|