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:
parent
399051af0e
commit
e107bfd55c
|
@ -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);
|
||||
|
||||
|
|
|
@ -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));
|
||||
|
|
Loading…
Reference in New Issue