Home
last modified time | relevance | path

Searched refs:expected_data (Results 1 – 11 of 11) sorted by relevance

/system/iorap/src/common/
Dexpected.h56 struct expected_data;
61 struct expected_data<T, E, /*DefineDestructor*/true> {
65 constexpr expected_data(U&& either, expected_tag_right)
69 constexpr expected_data(U&& either, expected_tag_error)
105 ~expected_data() {
114 expected_data(expected_data&& other)
130 expected_data(const expected_data& other) {
141 expected_data& operator=(const expected_data& other) {
169 expected_data& operator=(expected_data&& other) {
210 struct expected_data<T, E, /*DefineDestructor*/false> {
[all …]
/system/update_engine/payload_consumer/
Dpartition_writer_unittest.cc126 brillo::Blob expected_data = FakeFileDescriptorData(kCopyOperationSize); in TEST_F() local
127 EXPECT_TRUE(test_utils::WriteFileVector(source.path(), expected_data)); in TEST_F()
135 old_part.size = expected_data.size(); in TEST_F()
138 auto source_copy_op = GenerateSourceCopyOp(expected_data, false, &old_part); in TEST_F()
140 auto output_data = PerformSourceCopyOp(source_copy_op.op, expected_data); in TEST_F()
141 ASSERT_EQ(output_data, expected_data); in TEST_F()
163 brillo::Blob expected_data = FakeFileDescriptorData(kCopyOperationSize); in TEST_F() local
165 auto source_copy_op = GenerateSourceCopyOp(expected_data, true); in TEST_F()
167 ASSERT_EQ(output_data, expected_data); in TEST_F()
188 brillo::Blob expected_data = FakeFileDescriptorData(kSourceSize); in TEST_F() local
[all …]
Ddelta_performer_unittest.cc453 brillo::Blob expected_data = in TEST_F() local
455 expected_data.resize(4096); // block size in TEST_F()
460 aop.op.set_data_length(expected_data.size()); in TEST_F()
464 brillo::Blob payload_data = GeneratePayload(expected_data, in TEST_F()
470 EXPECT_EQ(expected_data, ApplyPayload(payload_data, "/dev/null", true)); in TEST_F()
475 brillo::Blob expected_data = in TEST_F() local
477 expected_data.resize(4096); // block size in TEST_F()
482 aop.op.set_data_length(expected_data.size()); in TEST_F()
486 brillo::Blob payload_data = GeneratePayload(expected_data, in TEST_F()
501 brillo::Blob expected_data = in TEST_F() local
[all …]
Dxz_extent_writer_unittest.cc128 brillo::Blob expected_data(30 * 1024, 'a'); in TEST_F() local
129 EXPECT_EQ(expected_data, fake_extent_writer_->WrittenData()); in TEST_F()
147 brillo::Blob expected_data(30 * 1024, 'a'); in TEST_F() local
148 EXPECT_EQ(expected_data, fake_extent_writer_->WrittenData()); in TEST_F()
Dextent_writer_unittest.cc169 brillo::Blob expected_data(on_disk_count * kBlockSize); in TEST_F() local
174 memcpy(&expected_data[kBlockSize], &big[0], kBlockSize); in TEST_F()
175 memcpy(&expected_data[0], &big[3 * kBlockSize], kBlockSize); in TEST_F()
176 ExpectVectorsEq(expected_data, resultant_data); in TEST_F()
/system/bt/hci/test/
Dpacket_fragmenter_test.cc119 BT_HDR* packet, const char* expected_data, in expect_packet_fragmented() argument
136 int length_remaining = strlen(expected_data) - data_size_sum; in expect_packet_fragmented()
153 int length_remaining = strlen(expected_data) - data_size_sum; in expect_packet_fragmented()
183 ASSERT_EQ(iso_sdu_length, strlen(expected_data)); in expect_packet_fragmented()
208 length_to_check = strlen(expected_data); in expect_packet_fragmented()
213 EXPECT_EQ(expected_data[expected_data_offset + i], data[i]); in expect_packet_fragmented()
218 EXPECT_TRUE(send_complete == (data_size_sum == strlen(expected_data))); in expect_packet_fragmented()
351 const char* expected_data) { in expect_packet_reassembled() argument
352 uint16_t expected_data_length = strlen(expected_data); in expect_packet_reassembled()
370 EXPECT_EQ(expected_data[i], data[i]); in expect_packet_reassembled()
[all …]
/system/extras/simpleperf/
Dcmd_inject_test.cpp55 std::string expected_data; in CheckMatchingExpectedData() local
57 GetTestData(std::string("etm") + OS_PATH_SEPARATOR + "perf_inject.data"), &expected_data)); in CheckMatchingExpectedData()
59 ASSERT_EQ(data, expected_data); in CheckMatchingExpectedData()
/system/bt/bta/vc/
Ddevices_test.cc450 std::vector<uint8_t> expected_data({0x03, 0x01}); in TEST_F() local
451 EXPECT_CALL(gatt_queue, WriteCharacteristic(_, 0x0014, expected_data, in TEST_F()
461 std::vector<uint8_t> expected_data({0x01, 0x55, 0x02, 0x03}); in TEST_F() local
462 EXPECT_CALL(gatt_queue, WriteCharacteristic(_, 0x0014, expected_data, in TEST_F()
Dvc_test.cc635 std::vector<uint8_t> expected_data({0x04, 0x00, 0x10}); in TEST_F() local
636 EXPECT_CALL(gatt_queue, WriteCharacteristic(conn_id, 0x0024, expected_data, in TEST_F()
/system/update_engine/payload_generator/
Dab_generator_unittest.cc298 brillo::Blob expected_data(part_data.begin(), in TestMergeReplaceOrReplaceXzOperations() local
302 ASSERT_TRUE(XzCompress(expected_data, &expected_blob)); in TestMergeReplaceOrReplaceXzOperations()
304 expected_blob = expected_data; in TestMergeReplaceOrReplaceXzOperations()
/system/bt/stack/test/rfcomm/
Dstack_rfcomm_test.cc101 uint8_t* expected_data = expected_hdr->data + expected_hdr->offset; in MATCHER_P() local
102 return memcmp(arg_data, expected_data, expected_hdr->len) == 0; in MATCHER_P()