/external/libese/apps/boot/tests/ |
ese_app_boot_tests.cpp | 57 EXPECT_EQ(invocation.expected_tx.size(), tx_total); 60 EXPECT_EQ(0, memcmp(incoming.data(), invocation.expected_tx.data(), tx_total)); 71 std::vector<uint8_t> expected_tx; member in struct:FakeTransceive::Invocation 103 trans_.invocations[0].expected_tx.resize(kManageChannelOpenLength); 104 memcpy(trans_.invocations[0].expected_tx.data(), kManageChannelOpen, 111 trans_.invocations[1].expected_tx.resize(kSelectAppletLength); 112 memcpy(trans_.invocations[1].expected_tx.data(), kSelectApplet, 114 trans_.invocations[1].expected_tx[0] |= 0x01; // Channel 128 trans_.invocations[0].expected_tx.resize(kManageChannelOpenLength); 129 memcpy(trans_.invocations[0].expected_tx.data(), kManageChannelOpen [all...] |
/external/libese/libese-teq1/tests/ |
teq1_unittests.cpp | 435 EXPECT_EQ(invocation.expected_tx.size(), len); 436 int eq = memcmp(data, invocation.expected_tx.data(), len); 440 << "Expected: '" << to_hex(invocation.expected_tx) << "'"; 478 std::vector<uint8_t> expected_tx; member in struct:EseWireFake::Invocation 527 wire_.invocations[0].expected_tx.resize(frame_size); 528 memcpy(wire_.invocations[0].expected_tx.data(), &frame.val[0], frame_size); 566 wire_.invocations[0].expected_tx.resize(frame_size); 567 memcpy(wire_.invocations[0].expected_tx.data(), &frame.val[0], frame_size); 568 wire_.invocations[1].expected_tx.resize(frame_size); 569 memcpy(wire_.invocations[1].expected_tx.data(), &frame.val[0], frame_size) [all...] |