Home
last modified time | relevance | path

Searched refs:buffer1 (Results 1 – 6 of 6) sorted by relevance

/base/security/appverify/interfaces/innerkits/appverify/test/unittest/src/
Dhap_byte_buffer_test.cpp66 HapByteBuffer buffer1; variable
67 HapByteBuffer buffer2(buffer1);
68 bool judge = (buffer2.GetCapacity() == buffer1.GetCapacity()) &&
69 (buffer2.GetPosition() == buffer1.GetPosition()) &&
70 (buffer2.GetLimit() == buffer1.GetLimit()) && (buffer2.GetBufferPtr() == nullptr);
159 HapByteBuffer buffer1(TEST_HAPBYTEBUFFER_LENGTH_2);
160 buffer1.SetCapacity(TEST_HAPBYTEBUFFER_LENGTH);
161 ASSERT_TRUE(buffer1.GetCapacity() == TEST_HAPBYTEBUFFER_LENGTH);
166 buffer1.PutInt32(0, TEST_HAPBYTEBUFFER_INT32_DATA);
167 buffer1.PutInt32(sizeof(int), TEST_HAPBYTEBUFFER_INT32_DATA_2);
[all …]
/base/usb/usb_manager/test/native/service_unittest/src/
Dusb_request_test.cpp374 uint8_t buffer1[BUFFER_SIZE] = {0}; variable
375 std::vector<uint8_t> bufferdata = {buffer1, buffer1 + 17};
422 uint8_t buffer1[BUFFER_SIZE] = "usb request test!"; variable
423 std::vector<uint8_t> bufferdata = {buffer1, buffer1 + 17};
470 uint8_t buffer1[BUFFER_SIZE] = {0}; variable
471 std::vector<uint8_t> bufferdata = {buffer1, buffer1 + 17};
521 uint8_t buffer1[BUFFER_SIZE] = {0}; variable
522 std::vector<uint8_t> bufferdata = {buffer1, buffer1 + 17};
572 uint8_t buffer1[BUFFER_SIZE] = "usb request test!"; variable
573 std::vector<uint8_t> databuffer = {buffer1, buffer1 + 17};
[all …]
/base/update/updater/test/unittest/applypatch_test/
Dall_cmd_unittest.cpp135 std::vector<uint8_t> buffer1(bufferSize, 1); in AllCmdUnitTestMove() local
137 auto res = WriteTestBin(fd, *buffer1.data(), bufferSize * count); in AllCmdUnitTestMove()
155 res = WriteTestBin(fd, *buffer1.data(), bufferSize * count); in AllCmdUnitTestMove()
/base/hiviewdfx/hiview/utility/common_utils/test/unittest/common/
Dutility_common_utils_test.cpp102 std::string buffer1 = ""; variable
103 auto ret = calcFingerprint.CalcBufferSha(buffer1, buffer1.size(), hash, SHA256_DIGEST_LENGTH);
/base/security/crypto_framework/test/unittest/src/aes_cipher/
Daes_common.cpp132 uint8_t buffer1[FILE_BLOCK_SIZE] = {0}; in CompareFileContent() local
135 infile1.read(reinterpret_cast<char *>(buffer1), FILE_BLOCK_SIZE); in CompareFileContent()
137 ret = memcmp(buffer1, buffer2, FILE_BLOCK_SIZE); in CompareFileContent()
/base/telephony/sms_mms/test/gtest/
Dzero_branch_cdma_sms_test.cpp504 auto buffer1 = std::make_shared<SmsWriteBuffer>(); variable
505 EXPECT_FALSE(buffer1->IsEmpty());
506 EXPECT_FALSE(message->Encode(*buffer1));
592 auto buffer1 = std::make_shared<SmsWriteBuffer>(); variable
593 EXPECT_FALSE(buffer1->IsEmpty());
594 EXPECT_FALSE(message->Encode(*buffer1));