2017-12-21 07:45:38 +08:00
|
|
|
/*
|
2019-02-27 18:39:32 +08:00
|
|
|
* Copyright (C) 2017-2019 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"
|
2019-02-27 18:39:32 +08:00
|
|
|
#include "unit_tests/fixtures/device_fixture.h"
|
2017-12-21 07:45:38 +08:00
|
|
|
|
2019-03-26 18:59:46 +08:00
|
|
|
using namespace NEO;
|
2017-12-21 07:45:38 +08:00
|
|
|
|
2018-03-30 02:37:43 +08:00
|
|
|
typedef Test<DeviceFixture> DeviceTest;
|
2017-12-21 07:45:38 +08:00
|
|
|
|
|
|
|
SKLTEST_F(DeviceTest, getSupportedClVersion21Device) {
|
|
|
|
auto version = pDevice->getSupportedClVersion();
|
|
|
|
EXPECT_EQ(21u, version);
|
|
|
|
}
|
|
|
|
|
|
|
|
SKLTEST_F(DeviceTest, givenSklDeviceWhenAskedForProflingTimerResolutionThen83IsReturned) {
|
|
|
|
auto resolution = pDevice->getProfilingTimerResolution();
|
|
|
|
EXPECT_DOUBLE_EQ(83.333, resolution);
|
|
|
|
}
|