Merge "logd: fix bad test assumptions" am: 3f452134da am: c4b150d176
Original change: https://android-review.googlesource.com/c/platform/system/core/+/1452015 Change-Id: I10a1f595a6d8749f35a4983957ad9dcaf9668e84
This commit is contained in:
commit
c6ee57dca4
1 changed files with 3 additions and 7 deletions
|
|
@ -99,13 +99,9 @@ TEST(SerializedLogChunk, three_logs) {
|
|||
"\xFF\xFF\xFF\xFF\xFF\xFF\xFF\xFF" // Timestamp
|
||||
"\x0C\x00last message"; // msg_len + message
|
||||
|
||||
for (size_t i = 0; i < chunk_size; ++i) {
|
||||
if (i < sizeof(expected_buffer_data)) {
|
||||
EXPECT_EQ(static_cast<uint8_t>(expected_buffer_data[i]), chunk.data()[i])
|
||||
<< "position: " << i;
|
||||
} else {
|
||||
EXPECT_EQ(0, chunk.data()[i]) << "position: " << i;
|
||||
}
|
||||
for (size_t i = 0; i < sizeof(expected_buffer_data); ++i) {
|
||||
EXPECT_EQ(static_cast<uint8_t>(expected_buffer_data[i]), chunk.data()[i])
|
||||
<< "position: " << i;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue