ULT renaming: Device Timer tests

Related-To: NEO-2236

Change-Id: I334b3d83650f894f989caa831f5d8981cb77fe3e
Signed-off-by: Adam Cetnerowski <adam.cetnerowski@intel.com>
This commit is contained in:
Adam Cetnerowski 2020-02-17 10:48:59 +01:00 committed by sys_ocldev
parent 399051af0e
commit e107bfd55c
2 changed files with 6 additions and 6 deletions

View File

@ -1,5 +1,5 @@
/*
* Copyright (C) 2017-2019 Intel Corporation
* Copyright (C) 2017-2020 Intel Corporation
*
* SPDX-License-Identifier: MIT
*
@ -14,7 +14,7 @@ using namespace NEO;
namespace ULT {
TEST(MockOSTime, DeviceHostIncreaseCheck) {
TEST(MockOSTime, WhenSleepingThenDeviceAndHostTimerAreIncreased) {
cl_ulong deviceTimestamp[2] = {0, 0};
cl_ulong hostTimestamp[2] = {0, 0};
@ -37,7 +37,7 @@ TEST(MockOSTime, DeviceHostIncreaseCheck) {
delete mDev;
}
TEST(MockOSTime, DeviceHostDeltaCheck) {
TEST(MockOSTime, WhenGettingTimersThenDiffBetweenQueriesWithinAllowedError) {
cl_ulong deviceTimestamp[2] = {0, 0};
cl_ulong hostTimestamp[2] = {0, 0};
cl_ulong hostOnlyTimestamp[2] = {0, 0};
@ -81,7 +81,7 @@ TEST(MockOSTime, DeviceHostDeltaCheck) {
EXPECT_TRUE(observedDiff <= allowedDiff);
}
TEST(MockOSTime, HostIncreaseCheck) {
TEST(MockOSTime, WhenSleepingThenHostTimerIsIncreased) {
cl_ulong hostTimestamp[2] = {0, 0};
auto mDev = MockDevice::createWithNewExecutionEnvironment<MockDevice>(nullptr);
@ -100,7 +100,7 @@ TEST(MockOSTime, HostIncreaseCheck) {
delete mDev;
}
TEST(MockOSTime, NegativeTest) {
TEST(MockOSTime, GivenNullWhenSettingOsTimeThenResolutionIsZero) {
auto mDev = MockDevice::createWithNewExecutionEnvironment<MockDevice>(nullptr);
mDev->setOSTime(nullptr);

View File

@ -21,7 +21,7 @@ namespace ULT {
typedef ::testing::Test MockOSTimeWinTest;
TEST_F(MockOSTimeWinTest, DynamicResolution) {
TEST_F(MockOSTimeWinTest, WhenCreatingTimerThenResolutionIsSetCorrectly) {
MockExecutionEnvironment executionEnvironment;
RootDeviceEnvironment rootDeviceEnvironment(executionEnvironment);
auto wddmMock = std::unique_ptr<WddmMock>(new WddmMock(rootDeviceEnvironment));