@@ -113,9 +113,9 @@ UTEST(test_MediumTlsfAllocator, TestAllocateFunction)
113113
114114 ASSERT_EQ (192 , strHeader->sizeAndFlags );
115115 ASSERT_EQ (strData, str);
116- ASSERT_EQ (
117- sizeof (MediumTlsfAllocator::BlockHeader) + sizeof (String) + sizeof (MediumTlsfAllocator::BlockFooter),
118- strFooter->totalBlockSize );
116+ ASSERT_EQ (sizeof (MediumTlsfAllocator::BlockHeader) + sizeof (String) +
117+ sizeof (MediumTlsfAllocator::BlockFooter),
118+ strFooter->totalBlockSize );
119119 ASSERT_EQ (32 , a.BytesRemaining ());
120120
121121 // Edge cases
@@ -258,9 +258,9 @@ UTEST(Test_MediumTlsfAllocator, TestDeallocateFunction)
258258
259259 ASSERT_EQ (192 , strHeader->sizeAndFlags );
260260 ASSERT_EQ (strData, str);
261- ASSERT_EQ (
262- sizeof (MediumTlsfAllocator::BlockHeader) + sizeof (String) + sizeof (MediumTlsfAllocator::BlockFooter),
263- strFooter->totalBlockSize );
261+ ASSERT_EQ (sizeof (MediumTlsfAllocator::BlockHeader) + sizeof (String) +
262+ sizeof (MediumTlsfAllocator::BlockFooter),
263+ strFooter->totalBlockSize );
264264 ASSERT_EQ (32 , a.BytesRemaining ());
265265
266266 a.FREE (p);
@@ -425,6 +425,7 @@ UTEST(Test_MediumTlsfAllocator, TestAllocationWhenNoAppropriateFragmentExists)
425425 void * p2 = a.Allocate (16 );
426426 void * p3 = a.Allocate (32 );
427427 ASSERT_EQ (0 , a.TotalBytesRemaining ());
428+ ASSERT_TRUE (a.IsFull ());
428429
429430 a.FREE (p0);
430431 a.FREE (p2);
@@ -581,9 +582,9 @@ UTEST(Test_SmallTlsfAllocator, TestAllocateFunction)
581582
582583 ASSERT_EQ (160 , strHeader->sizeAndFlags );
583584 ASSERT_EQ (strData, str);
584- ASSERT_EQ (
585- sizeof (SmallTlsfAllocator::BlockHeader) + sizeof (String) + sizeof (SmallTlsfAllocator::BlockFooter),
586- strFooter->totalBlockSize );
585+ ASSERT_EQ (sizeof (SmallTlsfAllocator::BlockHeader) + sizeof (String) +
586+ sizeof (SmallTlsfAllocator::BlockFooter),
587+ strFooter->totalBlockSize );
587588 ASSERT_EQ (32 , a.BytesRemaining ());
588589
589590 // Edge cases
@@ -726,9 +727,9 @@ UTEST(Test_SmallTlsfAllocator, TestDeallocateFunction)
726727
727728 ASSERT_EQ (160 , strHeader->sizeAndFlags );
728729 ASSERT_EQ (strData, str);
729- ASSERT_EQ (
730- sizeof (SmallTlsfAllocator::BlockHeader) + sizeof (String) + sizeof (SmallTlsfAllocator::BlockFooter),
731- strFooter->totalBlockSize );
730+ ASSERT_EQ (sizeof (SmallTlsfAllocator::BlockHeader) + sizeof (String) +
731+ sizeof (SmallTlsfAllocator::BlockFooter),
732+ strFooter->totalBlockSize );
732733 ASSERT_EQ (32 , a.BytesRemaining ());
733734
734735 a.FREE (p);
@@ -893,6 +894,7 @@ UTEST(Test_SmallTlsfAllocator, TestAllocationWhenNoAppropriateFragmentExists)
893894 void * p2 = a.Allocate (20 );
894895 void * p3 = a.Allocate (36 );
895896 ASSERT_EQ (0 , a.TotalBytesRemaining ());
897+ ASSERT_TRUE (a.IsFull ());
896898
897899 a.FREE (p0);
898900 a.FREE (p2);
@@ -1049,9 +1051,9 @@ UTEST(Test_LargeTlsfAllocator, TestAllocateFunction)
10491051
10501052 ASSERT_EQ (256 , strHeader->sizeAndFlags );
10511053 ASSERT_EQ (strData, str);
1052- ASSERT_EQ (
1053- sizeof (LargeTlsfAllocator::BlockHeader) + sizeof (String) + sizeof (LargeTlsfAllocator::BlockFooter),
1054- strFooter->totalBlockSize );
1054+ ASSERT_EQ (sizeof (LargeTlsfAllocator::BlockHeader) + sizeof (String) +
1055+ sizeof (LargeTlsfAllocator::BlockFooter),
1056+ strFooter->totalBlockSize );
10551057 ASSERT_EQ (224 , a.BytesRemaining ());
10561058
10571059 // Edge cases
@@ -1191,9 +1193,9 @@ UTEST(Test_LargeTlsfAllocator, TestDeallocateFunction)
11911193
11921194 ASSERT_EQ (256 , strHeader->sizeAndFlags );
11931195 ASSERT_EQ (strData, str);
1194- ASSERT_EQ (
1195- sizeof (LargeTlsfAllocator::BlockHeader) + sizeof (String) + sizeof (LargeTlsfAllocator::BlockFooter),
1196- strFooter->totalBlockSize );
1196+ ASSERT_EQ (sizeof (LargeTlsfAllocator::BlockHeader) + sizeof (String) +
1197+ sizeof (LargeTlsfAllocator::BlockFooter),
1198+ strFooter->totalBlockSize );
11971199 ASSERT_EQ (224 , a.BytesRemaining ());
11981200
11991201 a.FREE (p);
@@ -1358,6 +1360,7 @@ UTEST(Test_LargeTlsfAllocator, TestAllocationWhenNoAppropriateFragmentExists)
13581360 void * p2 = a.Allocate (32 );
13591361 void * p3 = a.Allocate (64 );
13601362 ASSERT_EQ (0 , a.TotalBytesRemaining ());
1363+ ASSERT_TRUE (a.IsFull ());
13611364
13621365 a.FREE (p0);
13631366 a.FREE (p2);
0 commit comments