2017-12-21 07:45:38 +08:00
|
|
|
/*
|
2021-05-17 02:51:16 +08:00
|
|
|
* Copyright (C) 2018-2021 Intel Corporation
|
2017-12-21 07:45:38 +08:00
|
|
|
*
|
2019-02-27 18:39:32 +08:00
|
|
|
* SPDX-License-Identifier: MIT
|
2017-12-21 07:45:38 +08:00
|
|
|
*
|
|
|
|
*/
|
|
|
|
|
2020-02-24 05:44:01 +08:00
|
|
|
#include "shared/source/os_interface/os_interface.h"
|
2019-02-27 18:39:32 +08:00
|
|
|
|
2017-12-21 07:45:38 +08:00
|
|
|
#include "gtest/gtest.h"
|
2019-02-27 18:39:32 +08:00
|
|
|
|
2017-12-21 07:45:38 +08:00
|
|
|
#include <type_traits>
|
|
|
|
|
2020-06-18 23:40:36 +08:00
|
|
|
TEST(OSInterface, WhenInterfaceIsCreatedThenItIsNonCopyable) {
|
2019-03-26 18:59:46 +08:00
|
|
|
EXPECT_FALSE(std::is_move_constructible<NEO::OSInterface>::value);
|
|
|
|
EXPECT_FALSE(std::is_copy_constructible<NEO::OSInterface>::value);
|
2017-12-21 07:45:38 +08:00
|
|
|
}
|
|
|
|
|
2020-06-18 23:40:36 +08:00
|
|
|
TEST(OSInterface, WhenInterfaceIsCreatedThenItIsNonAssignable) {
|
2019-03-26 18:59:46 +08:00
|
|
|
EXPECT_FALSE(std::is_move_assignable<NEO::OSInterface>::value);
|
|
|
|
EXPECT_FALSE(std::is_copy_assignable<NEO::OSInterface>::value);
|
2017-12-21 07:45:38 +08:00
|
|
|
}
|