Lines Matching refs:responses

106     void verifyResponses(const HidlBuf& expected, const std::vector<ComputeHmacResult>& responses) {  in verifyResponses()  argument
107 for (auto& response : responses) { in verifyResponses()
143 auto responses = computeSharedHmac(allKeymasters(), params); in TEST_P() local
144 ASSERT_GT(responses.size(), 0U); in TEST_P()
145 verifyResponses(responses[0].sharing_check, responses); in TEST_P()
152 responses = computeSharedHmac(allKeymasters(), params); in TEST_P()
153 ASSERT_GT(responses.size(), 0U); in TEST_P()
154 ASSERT_EQ(32U, responses[0].sharing_check.size()); in TEST_P()
155 verifyResponses(responses[0].sharing_check, responses); in TEST_P()
187 auto responses = computeSharedHmac(allKeymasters(), params); in TEST_P() local
189 ASSERT_GT(responses.size(), 0U); in TEST_P()
190 HidlBuf correct_response = responses[0].sharing_check; in TEST_P()
191 verifyResponses(correct_response, responses); in TEST_P()
200 responses = computeSharedHmac(allKeymasters(), params); in TEST_P()
201 for (size_t i = 0; i < responses.size(); ++i) { in TEST_P()
203 EXPECT_EQ(ErrorCode::INVALID_ARGUMENT, responses[i].error) in TEST_P()
206 EXPECT_EQ(ErrorCode::OK, responses[i].error) << "Others should succeed"; in TEST_P()
207 EXPECT_NE(correct_response, responses[i].sharing_check) in TEST_P()
227 auto responses = computeSharedHmac(allKeymasters(), params); in TEST_P() local
229 ASSERT_GT(responses.size(), 0U); in TEST_P()
230 HidlBuf correct_response = responses[0].sharing_check; in TEST_P()
231 verifyResponses(correct_response, responses); in TEST_P()
243 responses = computeSharedHmac(allKeymasters(), params); in TEST_P()
244 for (size_t i = 0; i < responses.size(); ++i) { in TEST_P()
246 EXPECT_EQ(ErrorCode::INVALID_ARGUMENT, responses[i].error) in TEST_P()
249 EXPECT_EQ(ErrorCode::OK, responses[i].error) << "Others should succeed"; in TEST_P()
250 EXPECT_NE(correct_response, responses[i].sharing_check) in TEST_P()