24              const void* actual_data, 
size_t actual_len) {
 
   25    const size_t cmplen = std::min(expected_len, actual_len);
 
   26    for (
size_t i = 0; i < cmplen; ++i) {
 
   27        const int ebyte = 
static_cast<const uint8_t*
>(expected_data)[i];
 
   28        const int abyte = 
static_cast<const uint8_t*
>(actual_data)[i];
 
   32        ASSERT_EQ(ebyte, abyte) << 
"Wire data mismatch at " << i << 
"th byte\n" 
   33                                << 
"  Actual: " << abyte << 
"\n" 
   34                                << 
"Expected: " << ebyte << 
"\n";
 
   36    EXPECT_EQ(expected_len, actual_len)
 
   37        << 
"Wire data mismatch in length:\n" 
   38        << 
"  Actual: " << actual_len << 
"\n" 
   39        << 
"Expected: " << expected_len << 
"\n";