summaryrefslogtreecommitdiff
path: root/tools/slang-test/unit-test-byte-encode.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/slang-test/unit-test-byte-encode.cpp')
-rw-r--r--tools/slang-test/unit-test-byte-encode.cpp9
1 files changed, 4 insertions, 5 deletions
diff --git a/tools/slang-test/unit-test-byte-encode.cpp b/tools/slang-test/unit-test-byte-encode.cpp
index c0944b27d..83b20d4e0 100644
--- a/tools/slang-test/unit-test-byte-encode.cpp
+++ b/tools/slang-test/unit-test-byte-encode.cpp
@@ -2,7 +2,6 @@
#include "../../source/core/slang-byte-encode-util.h"
-#include <assert.h>
#include <stdio.h>
#include <stdlib.h>
@@ -79,12 +78,12 @@ static void byteEncodeUnitTest()
const int blockSize = 1024;
List<uint8_t> encodedBuffer;
- encodedBuffer.SetSize(ByteEncodeUtil::kMaxLiteEncodeUInt32 * blockSize);
+ encodedBuffer.setCount(ByteEncodeUtil::kMaxLiteEncodeUInt32 * blockSize);
List<uint32_t> initialBuffer;
- initialBuffer.SetSize(blockSize);
+ initialBuffer.setCount(blockSize);
List<uint32_t> decodeBuffer;
- decodeBuffer.SetSize(blockSize);
+ decodeBuffer.setCount(blockSize);
// Put in cache?
memset(decodeBuffer.begin(), 0, blockSize * sizeof(uint32_t));
@@ -139,4 +138,4 @@ static void byteEncodeUnitTest()
}
-SLANG_UNIT_TEST("ByteEncode", byteEncodeUnitTest); \ No newline at end of file
+SLANG_UNIT_TEST("ByteEncode", byteEncodeUnitTest);