Home | History | Annotate | Download | only in tests

Lines Matching refs:found

99     const HardwareAuthToken* found;
102 table.FindAuthorization(make_set(1), KeyPurpose::SIGN, 0, &found));
103 EXPECT_EQ(1U, found->userId);
104 EXPECT_EQ(2U, found->authenticatorId);
107 table.FindAuthorization(make_set(2), KeyPurpose::SIGN, 0, &found));
108 EXPECT_EQ(1U, found->userId);
109 EXPECT_EQ(2U, found->authenticatorId);
112 table.FindAuthorization(make_set(3), KeyPurpose::SIGN, 0, &found));
113 EXPECT_EQ(3U, found->userId);
114 EXPECT_EQ(4U, found->authenticatorId);
117 table.FindAuthorization(make_set(4), KeyPurpose::SIGN, 0, &found));
118 EXPECT_EQ(3U, found->userId);
119 EXPECT_EQ(4U, found->authenticatorId);
122 table.FindAuthorization(make_set(5), KeyPurpose::SIGN, 0, &found));
132 const HardwareAuthToken* found;
137 table.FindAuthorization(make_set(1), KeyPurpose::SIGN, 0, &found));
139 table.FindAuthorization(make_set(2), KeyPurpose::SIGN, 0, &found));
141 table.FindAuthorization(make_set(3), KeyPurpose::SIGN, 0, &found));
154 const HardwareAuthToken* found;
159 table.FindAuthorization(make_set(1), KeyPurpose::SIGN, 0, &found));
161 table.FindAuthorization(make_set(2), KeyPurpose::SIGN, 0, &found));
163 table.FindAuthorization(make_set(3), KeyPurpose::SIGN, 0, &found));
170 table.FindAuthorization(make_set(1), KeyPurpose::SIGN, 0, &found));
175 table.FindAuthorization(make_set(4), KeyPurpose::SIGN, 0, &found));
177 table.FindAuthorization(make_set(2), KeyPurpose::SIGN, 0, &found));
179 table.FindAuthorization(make_set(3), KeyPurpose::SIGN, 0, &found));
186 table.FindAuthorization(make_set(4), KeyPurpose::SIGN, 0, &found));
188 table.FindAuthorization(make_set(2), KeyPurpose::SIGN, 0, &found));
190 table.FindAuthorization(make_set(5), KeyPurpose::SIGN, 0, &found));
192 table.FindAuthorization(make_set(3), KeyPurpose::SIGN, 0, &found));
200 table.FindAuthorization(make_set(2), KeyPurpose::SIGN, 0, &found));
202 table.FindAuthorization(make_set(5), KeyPurpose::SIGN, 0, &found));
204 table.FindAuthorization(make_set(6), KeyPurpose::SIGN, 0, &found));
206 table.FindAuthorization(make_set(7), KeyPurpose::SIGN, 0, &found));
208 table.FindAuthorization(make_set(3), KeyPurpose::SIGN, 0, &found));
217 table.FindAuthorization(make_set(1), KeyPurpose::SIGN, 0, &found));
219 table.FindAuthorization(make_set(2), KeyPurpose::SIGN, 0, &found));
221 table.FindAuthorization(make_set(3), KeyPurpose::SIGN, 0, &found));
223 table.FindAuthorization(make_set(4), KeyPurpose::SIGN, 0, &found));
225 table.FindAuthorization(make_set(5), KeyPurpose::SIGN, 0, &found));
227 table.FindAuthorization(make_set(6), KeyPurpose::SIGN, 0, &found));
229 table.FindAuthorization(make_set(7), KeyPurpose::SIGN, 0, &found));
231 table.FindAuthorization(make_set(8), KeyPurpose::SIGN, 0, &found));
233 table.FindAuthorization(make_set(9), KeyPurpose::SIGN, 0, &found));
235 table.FindAuthorization(make_set(10), KeyPurpose::SIGN, 0, &found));
240 const HardwareAuthToken* found;
244 KeyPurpose::SIGN, 0 /* no challenge */, &found));
249 const HardwareAuthToken* found;
254 2 /* non-matching challenge */, &found));
257 1 /* matching challenge */, &found));
261 1 /* used challenge */, &found));
266 const HardwareAuthToken* found;
271 0 /* no op handle */, &found));
276 const HardwareAuthToken* found;
281 1 /* op handle */, &found));
286 const HardwareAuthToken* found;
295 // keymaster when the found token is passed to it.
298 table.FindAuthorization(key_info, KeyPurpose::SIGN, 0 /* no op handle */, &found));
300 table.FindAuthorization(key_info, KeyPurpose::SIGN, 0 /* no op handle */, &found));
302 table.FindAuthorization(key_info, KeyPurpose::SIGN, 0 /* no op handle */, &found));
304 table.FindAuthorization(key_info, KeyPurpose::SIGN, 0 /* no op handle */, &found));
306 table.FindAuthorization(key_info, KeyPurpose::SIGN, 0 /* no op handle */, &found));
308 table.FindAuthorization(key_info, KeyPurpose::SIGN, 0 /* no op handle */, &found));
319 const HardwareAuthToken* found;
327 table.FindAuthorization(make_set(1), KeyPurpose::SIGN, 0, &found));
328 EXPECT_EQ(1U, found->timestamp);
339 table.FindAuthorization(make_set(1), KeyPurpose::SIGN, 0, &found));
340 EXPECT_EQ(3U, found->timestamp);
342 table.FindAuthorization(make_set(2), KeyPurpose::SIGN, 0, &found));
343 EXPECT_EQ(4U, found->timestamp);
359 1 /* challenge */, &found));
360 EXPECT_EQ(5U, found->timestamp);
363 2 /* challenge */, &found));
364 EXPECT_EQ(6U, found->timestamp);
372 table.FindAuthorization(make_set(1), KeyPurpose::SIGN, 0 /* challenge */, &found));
373 EXPECT_EQ(6U, found->timestamp);
381 2 /* challenge */, &found));
382 EXPECT_EQ(6U, found->timestamp);
384 table.FindAuthorization(make_set(1), KeyPurpose::SIGN, 0 /* challenge */, &found));
385 EXPECT_EQ(7U, found->timestamp);
393 2 /* challenge */, &found));
395 table.FindAuthorization(make_set(1), KeyPurpose::SIGN, 0 /* challenge */, &found));
396 EXPECT_EQ(7U, found->timestamp);
405 1 /* challenge */, &found));
406 EXPECT_EQ(5U, found->timestamp);
410 3 /* challenge */, &found));
411 EXPECT_EQ(8U, found->timestamp);
415 table.FindAuthorization(make_set(2), KeyPurpose::SIGN, 0 /* challenge */, &found));
416 EXPECT_EQ(4U, found->timestamp);
425 1 /* challenge */, &found));
426 EXPECT_EQ(5U, found->timestamp);
429 table.FindAuthorization(make_set(1), KeyPurpose::SIGN, 0 /* challenge */, &found));
430 EXPECT_EQ(8U, found->timestamp);
438 1 /* challenge */, &found));
440 table.FindAuthorization(make_set(1), KeyPurpose::SIGN, 0 /* challenge */, &found));
441 EXPECT_EQ(8U, found->timestamp);