We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 21a50bb commit b55a706Copy full SHA for b55a706
protocol/i2c_test.cc
@@ -89,10 +89,10 @@ TEST_F(LibHothTest, i2c_transfer_test) {
89
struct ec_response_i2c_transfer resp;
90
EXPECT_EQ(libhoth_i2c_transfer(&hoth_dev_, &xfer, &resp), LIBHOTH_OK);
91
92
+ EXPECT_EQ(resp.bus_response, ex_resp.bus_response);
93
// EXPECT_EQ does funny things with its arguments and may cause them to
94
// lose their attributes. This can cause test failures due to unaligned
95
// access, so we explicitly add casts here.
- EXPECT_EQ(static_cast<uint16_t>(resp.bus_response),
96
- static_cast<uint16_t>(ex_resp.bus_response));
97
- EXPECT_EQ(resp.read_bytes, ex_resp.read_bytes);
+ EXPECT_EQ(static_cast<uint16_t>(resp.read_bytes),
+ static_cast<uint16_t>(ex_resp.read_bytes));
98
}
0 commit comments