History

Add EncoderMB UT test file, and reformat UT files.

ganyang committed 12 years ago

Commit eb6f6ec1 parent 20c04648 files · +218 −29Browse files

Showing the changes to test/encoder/EncUT_MemoryAlloc.cpp (1 of 8 files). Show all

Unified · Split

test/encoder/EncUT_MemoryAlloc.cpp+4−10
@@ -6,8 +6,7 @@ · 5 unmodified lines
66 using namespace WelsSVCEnc;
77
88 //Tests of WelsGetCacheLineSize Begin
9−TEST(MemoryAlignTest, GetCacheLineSize_LoopWithin16K)
10−{
9+TEST(MemoryAlignTest, GetCacheLineSize_LoopWithin16K) {
1110 const unsigned int kuiTestBoundary16K = 16 * 1024;
1211 unsigned int uiTargetAlign = 1;
1312 while (uiTargetAlign < kuiTestBoundary16K) {
@@ -17,20 +16,17 @@ TEST(MemoryAlignTest, GetCacheLineSize_LoopWithin16K) · 3 unmodified lines
1716 }
1817 }
1918
20−TEST(MemoryAlignTest, GetCacheLineSize_Zero)
21−{
19+TEST(MemoryAlignTest, GetCacheLineSize_Zero) {
2220 CMemoryAlign cTestMa(0);
2321 ASSERT_EQ( 16, cTestMa.WelsGetCacheLineSize() );
2422 }
25−TEST(MemoryAlignTest, GetCacheLineSize_MaxUINT)
26−{
23+TEST(MemoryAlignTest, GetCacheLineSize_MaxUINT) {
2724 CMemoryAlign cTestMa(0xFFFFFFFF);
2825 ASSERT_EQ( 16, cTestMa.WelsGetCacheLineSize() );
2926 }
3027 //Tests of WelsGetCacheLineSize End
3128 //Tests of WelsMallocAndFree Begin
32−TEST(MemoryAlignTest, WelsMallocAndFreeOnceFunctionVerify)
33−{
29+TEST(MemoryAlignTest, WelsMallocAndFreeOnceFunctionVerify) {
3430 const uint32_t kuiTargetAlignSize[4] = {32, 16, 64, 8};
3531 srand((uint32_t)time(NULL));
3632
@@ -59,5 +55,3 @@ TEST(MemoryAlignTest, WelsMallocAndFreeOnceFunctionVerify) · 22 unmodified lines
5955 }
6056 }
6157 }
62−
63−

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t