diff --git a/unit_tests/device/device_timers_tests.cpp b/unit_tests/device/device_timers_tests.cpp index 06ecf7201e..3b5a004f9f 100644 --- a/unit_tests/device/device_timers_tests.cpp +++ b/unit_tests/device/device_timers_tests.cpp @@ -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(nullptr); @@ -100,7 +100,7 @@ TEST(MockOSTime, HostIncreaseCheck) { delete mDev; } -TEST(MockOSTime, NegativeTest) { +TEST(MockOSTime, GivenNullWhenSettingOsTimeThenResolutionIsZero) { auto mDev = MockDevice::createWithNewExecutionEnvironment(nullptr); mDev->setOSTime(nullptr); diff --git a/unit_tests/device/device_win_timers_tests.cpp b/unit_tests/device/device_win_timers_tests.cpp index 040807ee2d..20bc3281e2 100644 --- a/unit_tests/device/device_win_timers_tests.cpp +++ b/unit_tests/device/device_win_timers_tests.cpp @@ -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(new WddmMock(rootDeviceEnvironment));