Searched refs:kSize (Results 1 – 4 of 4) sorted by relevance
| /system/utest/crypto/ |
| A D | bytes.cpp | 18 const size_t kSize = 1024; variable 78 EXPECT_TRUE(AllEqual(bytes.get(), 0, kSize / 2, kSize / 2)); in TestResize() 91 uint8_t buf[kSize]; in TestCopy() 92 memset(buf, 2, kSize); in TestCopy() 93 EXPECT_ZX(bytes.Copy(nullptr, kSize, kSize), ZX_ERR_INVALID_ARGS); in TestCopy() 98 EXPECT_OK(bytes.Copy(buf, kSize, kSize)); in TestCopy() 100 EXPECT_TRUE(AllEqual(bytes.get(), 2, kSize, kSize)); in TestCopy() 102 memset(buf, 1, kSize); in TestCopy() 103 EXPECT_OK(bytes.Copy(buf, kSize / 2, kSize / 2)); in TestCopy() 105 EXPECT_TRUE(AllEqual(bytes.get(), 1, kSize / 2, kSize / 2)); in TestCopy() [all …]
|
| A D | secret.cpp | 17 const size_t kSize = 1024; variable 23 uint8_t tmp[kSize] = {0}; in TestAllocate() 41 EXPECT_EQ(secret.len(), kSize); in TestAllocate() 47 memset(buf, 1, kSize); in TestAllocate() 48 memset(tmp, 1, kSize); in TestAllocate() 53 memset(tmp, 0, kSize); in TestAllocate() 65 uint8_t tmp[kSize] = {0}; in TestGenerate() 71 EXPECT_OK(secret.Generate(kSize)); in TestGenerate() 72 EXPECT_EQ(secret.len(), kSize); in TestGenerate() 75 memcpy(tmp, secret.get(), kSize); in TestGenerate() [all …]
|
| /system/ulib/blobfs/test/ |
| A D | compressor-test.cpp | 77 template <size_t kSize, size_t kStep> 81 static_assert(kStep <= kSize, "Step size too large"); in CompressDecompressRandom() 84 std::unique_ptr<char[]> input(GenerateInput(0, kSize)); in CompressDecompressRandom() 89 ASSERT_TRUE(CompressionHelper(&compressor, input.get(), kSize, kStep, &compressed)); in CompressDecompressRandom() 92 ASSERT_TRUE(DecompressionHelper(compressed.get(), compressor.Size(), input.get(), kSize)); in CompressDecompressRandom()
|
| /system/ulib/fbl/include/fbl/ |
| A D | type_info.h | 57 const size_t kSize; member 77 static constexpr size_t Size = Get().kSize;
|
Completed in 12 milliseconds