[K/N] Move allocator-specific data into allocators. ^KT-60928

This commit is contained in:
Alexander Shabalin
2023-09-01 19:05:24 +02:00
committed by Space Team
parent 056e644b6d
commit f47a09e55e
40 changed files with 317 additions and 503 deletions
@@ -10,7 +10,7 @@
#include "gmock/gmock.h"
#include "gtest/gtest.h"
#include "AllocatorTestSupport.hpp"
#include "StdAllocatorTestSupport.hpp"
#include "ScopedThread.hpp"
#include "TestSupport.hpp"
#include "std_support/Vector.hpp"
@@ -11,7 +11,7 @@
#include "gmock/gmock.h"
#include "gtest/gtest.h"
#include "AllocatorTestSupport.hpp"
#include "StdAllocatorTestSupport.hpp"
#include "ScopedThread.hpp"
#include "TestSupport.hpp"
#include "std_support/Deque.hpp"
@@ -3,7 +3,7 @@
* that can be found in the LICENSE file.
*/
#include "AllocatorTestSupport.hpp"
#include "StdAllocatorTestSupport.hpp"
#include "gmock/gmock.h"
#include "gtest/gtest.h"
@@ -21,7 +21,7 @@ static_assert(sizeof(Class) > sizeof(EmptyClass));
} // namespace
TEST(AllocatorTestSupportTest, MockAllocate) {
TEST(StdAllocatorTestSupportTest, MockAllocate) {
testing::StrictMock<test_support::MockAllocatorCore> allocatorCore;
auto allocator = test_support::MakeAllocator<Class>(allocatorCore);
@@ -31,7 +31,7 @@ TEST(AllocatorTestSupportTest, MockAllocate) {
EXPECT_THAT(ptr, expectedPtr);
}
TEST(AllocatorTestSupportTest, MockDeallocate) {
TEST(StdAllocatorTestSupportTest, MockDeallocate) {
testing::StrictMock<test_support::MockAllocatorCore> allocatorCore;
auto allocator = test_support::MakeAllocator<Class>(allocatorCore);
@@ -40,7 +40,7 @@ TEST(AllocatorTestSupportTest, MockDeallocate) {
std::allocator_traits<decltype(allocator)>::deallocate(allocator, ptr, 2);
}
TEST(AllocatorTestSupportTest, MockAdjustType) {
TEST(StdAllocatorTestSupportTest, MockAdjustType) {
testing::StrictMock<test_support::MockAllocatorCore> allocatorCore;
auto initial = test_support::MakeAllocator<EmptyClass>(allocatorCore);
@@ -58,7 +58,7 @@ TEST(AllocatorTestSupportTest, MockAdjustType) {
Traits::deallocate(allocator, ptr, 2);
}
TEST(AllocatorTestSupportTest, Spy) {
TEST(StdAllocatorTestSupportTest, Spy) {
test_support::SpyAllocatorCore allocatorCore;
auto allocator = test_support::MakeAllocator<Class>(allocatorCore);
@@ -8,7 +8,7 @@
#include "gmock/gmock.h"
#include "gtest/gtest.h"
#include "AllocatorTestSupport.hpp"
#include "StdAllocatorTestSupport.hpp"
#include "KAssert.h"
#include "Utils.hpp"