Lines Matching refs:session_id
89 static fa_task_t MakeTask(uint64_t session_id, uint32_t profile_id, in MakeTask() argument
95 task.session_id = session_id; in MakeTask()
115 static fa_result_t MakeResult(uint64_t session_id, int32_t error, in MakeResult() argument
122 result.session_id = session_id; in MakeResult()
171 EXPECT_EQ(r1.session_id, r2.session_id); in EXPECT_RESULT_EQ()
205 uint64_t session_id = 0xFACE000011110000ull; in TEST_F() local
206 session_id++; in TEST_F()
208 Run(MakeResult(session_id, FACEAUTH_SUCCESS, FACEAUTH_NOMATCH), in TEST_F()
209 MakeTask(session_id, 0x1, FACEAUTH_CMD_COMP), MakeEmbedding(0x11)); in TEST_F()
210 session_id++; in TEST_F()
211 Run(MakeResult(session_id, FACEAUTH_SUCCESS, 0x1), in TEST_F()
212 MakeTask(session_id, 0x1, FACEAUTH_CMD_ENROLL), MakeEmbedding(0x11)); in TEST_F()
213 session_id++; in TEST_F()
214 Run(MakeResult(session_id, FACEAUTH_SUCCESS, FACEAUTH_MATCH), in TEST_F()
215 MakeTask(session_id, 0x1, FACEAUTH_CMD_COMP), MakeEmbedding(0x11)); in TEST_F()
216 session_id++; in TEST_F()
217 Run(MakeResult(session_id, FACEAUTH_SUCCESS), in TEST_F()
218 MakeTask(session_id, 0x1, FACEAUTH_CMD_ERASE)); in TEST_F()
219 session_id++; in TEST_F()
220 Run(MakeResult(session_id, FACEAUTH_SUCCESS, FACEAUTH_NOMATCH), in TEST_F()
221 MakeTask(session_id, 0x1, FACEAUTH_CMD_COMP), MakeEmbedding(0x11)); in TEST_F()
226 uint64_t session_id = 0xFACE000022220000ull; in FullMatchMismatchTest() local
228 session_id++; in FullMatchMismatchTest()
229 Run(MakeResult(session_id, FACEAUTH_SUCCESS, profile1), in FullMatchMismatchTest()
230 MakeTask(session_id, profile1, FACEAUTH_CMD_ENROLL), in FullMatchMismatchTest()
233 session_id++; in FullMatchMismatchTest()
234 Run(MakeResult(session_id, FACEAUTH_SUCCESS, profile2), in FullMatchMismatchTest()
235 MakeTask(session_id, profile2, FACEAUTH_CMD_ENROLL), in FullMatchMismatchTest()
239 session_id++; in FullMatchMismatchTest()
240 Run(MakeResult(session_id, FACEAUTH_SUCCESS, FACEAUTH_MATCH), in FullMatchMismatchTest()
241 MakeTask(session_id, profile1, FACEAUTH_CMD_COMP), MakeEmbedding(0x11)); in FullMatchMismatchTest()
242 session_id++; in FullMatchMismatchTest()
243 Run(MakeResult(session_id, FACEAUTH_SUCCESS, FACEAUTH_NOMATCH), in FullMatchMismatchTest()
244 MakeTask(session_id, profile1, FACEAUTH_CMD_COMP), MakeEmbedding(0xAA)); in FullMatchMismatchTest()
245 session_id++; in FullMatchMismatchTest()
246 Run(MakeResult(session_id, FACEAUTH_SUCCESS, FACEAUTH_NOMATCH), in FullMatchMismatchTest()
247 MakeTask(session_id, profile2, FACEAUTH_CMD_COMP), MakeEmbedding(0x11)); in FullMatchMismatchTest()
248 session_id++; in FullMatchMismatchTest()
249 Run(MakeResult(session_id, FACEAUTH_SUCCESS, FACEAUTH_MATCH), in FullMatchMismatchTest()
250 MakeTask(session_id, profile2, FACEAUTH_CMD_COMP), MakeEmbedding(0xAA)); in FullMatchMismatchTest()
254 uint64_t session_id = 0xFACE000033330000ull; in TEST_F() local
256 session_id++; in TEST_F()
257 Run(MakeResult(session_id, FACEAUTH_SUCCESS, 0x1), in TEST_F()
258 MakeTask(session_id, 0x1, FACEAUTH_CMD_ENROLL), MakeEmbedding(0x0)); in TEST_F()
261 session_id++; in TEST_F()
262 Run(MakeResult(session_id, FACEAUTH_ERR_SFS_FULL, 0x1), in TEST_F()
263 MakeTask(session_id, 0x1, FACEAUTH_CMD_ENROLL), MakeEmbedding(0x0)); in TEST_F()
267 uint64_t session_id = 0xFACE000044440000ull; in LockProfileTest() local
270 session_id++; in LockProfileTest()
271 Run(MakeResult(session_id, FACEAUTH_SUCCESS, FACEAUTH_NOMATCH), in LockProfileTest()
272 MakeTask(session_id, profile1, FACEAUTH_CMD_COMP), MakeEmbedding(0x0)); in LockProfileTest()
275 session_id++; in LockProfileTest()
276 Run(MakeResult(session_id, FACEAUTH_SUCCESS, FACEAUTH_NOMATCH, 0, in LockProfileTest()
278 MakeTask(session_id, profile1, FACEAUTH_CMD_COMP), MakeEmbedding(0x0)); in LockProfileTest()
280 session_id++; in LockProfileTest()
281 Run(MakeResult(session_id, FACEAUTH_ERR_THROTTLE, FACEAUTH_NOMATCH), in LockProfileTest()
282 MakeTask(session_id, profile1, FACEAUTH_CMD_COMP), MakeEmbedding(0x0)); in LockProfileTest()
286 uint64_t session_id = 0xFACE000066660000ull; in IsProfileLocked() local
289 RunTask(MakeTask(session_id, profile1, FACEAUTH_CMD_GET_USER_INFO)); in IsProfileLocked()
291 MakeResult(session_id, FACEAUTH_SUCCESS, 0, observed.output.data.second); in IsProfileLocked()
297 uint64_t session_id = 0xFACE000077770000ull; in UnlockProfileTest() local
298 session_id++; in UnlockProfileTest()
299 Run(MakeResult(session_id, FACEAUTH_SUCCESS, 0, 0, FACEAUTH_LOCKOUT_REMOVED), in UnlockProfileTest()
300 MakeTask(session_id, profile1, FACEAUTH_CMD_RESET_LOCKOUT)); in UnlockProfileTest()
329 uint64_t session_id = 0xFACE000088880000ull; in TEST_F() local
330 session_id++; in TEST_F()
332 Run(MakeResult(session_id, FACEAUTH_SUCCESS, 1), in TEST_F()
333 MakeTask(session_id, 0, FACEAUTH_CMD_ENROLL), MakeEmbedding(0x0), &token); in TEST_F()
336 session_id++; in TEST_F()
338 Run(MakeResult(session_id, FACEAUTH_SUCCESS, i), in TEST_F()
339 MakeTask(session_id, (i % 2) ? i : 0, FACEAUTH_CMD_ENROLL), in TEST_F()
343 session_id++; in TEST_F()
345 Run(MakeResult(session_id, FACEAUTH_ERR_INVALID_TOKEN), in TEST_F()
346 MakeTask(session_id, 3, FACEAUTH_CMD_ENROLL), MakeEmbedding(0x0), &token); in TEST_F()
347 session_id++; in TEST_F()
348 Run(MakeResult(session_id, FACEAUTH_ERR_SFS_FULL), in TEST_F()
349 MakeTask(session_id, 0, FACEAUTH_CMD_ENROLL)); in TEST_F()
353 uint64_t session_id = 0xFACE000099990000ull; in TEST_F() local
354 session_id++; in TEST_F()
355 Run(MakeResult(session_id, FACEAUTH_ERR_INVALID_ARGS), in TEST_F()
356 MakeTask(session_id, 0x1, 0x0)); in TEST_F()
360 uint64_t session_id = 0xFACE0000AAAA0000ull; in TEST_F() local
366 session_id++; in TEST_F()
367 Run(MakeResult(session_id, FACEAUTH_SUCCESS, feature_msk[i - 1]), in TEST_F()
368 MakeTask(session_id, i, FACEAUTH_CMD_GET_USER_INFO)); in TEST_F()
372 session_id++; in TEST_F()
373 Run(MakeResult(session_id, FACEAUTH_SUCCESS), in TEST_F()
374 MakeTask(session_id, i, FACEAUTH_CMD_SET_FEATURE, (1 << index))); in TEST_F()
384 session_id++; in TEST_F()
385 Run(MakeResult(session_id, FACEAUTH_SUCCESS, feature_msk[i - 1]), in TEST_F()
386 MakeTask(session_id, i, FACEAUTH_CMD_GET_USER_INFO)); in TEST_F()
390 session_id++; in TEST_F()
391 Run(MakeResult(session_id, FACEAUTH_SUCCESS), in TEST_F()
392 MakeTask(session_id, i, FACEAUTH_CMD_CLR_FEATURE, (1 << index))); in TEST_F()
400 uint64_t session_id = 0xFACE0000BBBB0000ull; in TEST_F() local
401 session_id++; in TEST_F()
402 Run(MakeResult(session_id, FACEAUTH_SUCCESS, 1), in TEST_F()
403 MakeTask(session_id, 0x1, FACEAUTH_CMD_ENROLL), MakeEmbedding(0x11)); in TEST_F()
404 session_id++; in TEST_F()
405 Run(MakeResult(session_id, FACEAUTH_SUCCESS, FACEAUTH_MATCH), in TEST_F()
406 MakeTask(session_id, 0x1, FACEAUTH_CMD_COMP), MakeEmbedding(0x11)); in TEST_F()
407 session_id++; in TEST_F()
408 Run(MakeResult(session_id, FACEAUTH_ERR_RECALIBRATE, FACEAUTH_NOMATCH), in TEST_F()
409 MakeTask(session_id, 0x1, FACEAUTH_CMD_COMP), MakeEmbedding(0x11, 0x2)); in TEST_F()
413 uint64_t session_id = 0xFACE0000CCCC0000ull; in TEST_F() local
414 session_id++; in TEST_F()
415 Run(MakeResult(session_id, FACEAUTH_SUCCESS, 1), in TEST_F()
416 MakeTask(session_id, 0x1, FACEAUTH_CMD_ENROLL), MakeEmbedding(0x11)); in TEST_F()
417 session_id++; in TEST_F()
418 Run(MakeResult(session_id, FACEAUTH_ERR_VERSION, FACEAUTH_NOMATCH), in TEST_F()
419 MakeTask(session_id, 0x1, FACEAUTH_CMD_COMP, 0, 0, 0x1), in TEST_F()
421 session_id++; in TEST_F()
422 Run(MakeResult(session_id, FACEAUTH_ERR_VERSION, FACEAUTH_NOMATCH), in TEST_F()
423 MakeTask(session_id, 0x1, FACEAUTH_CMD_COMP, 0, 0, in TEST_F()
426 session_id++; in TEST_F()
427 Run(MakeResult(session_id, FACEAUTH_SUCCESS, FACEAUTH_MATCH), in TEST_F()
428 MakeTask(session_id, 0x1, FACEAUTH_CMD_COMP, 0, 0, in TEST_F()
431 session_id++; in TEST_F()
432 Run(MakeResult(session_id, FACEAUTH_SUCCESS, FACEAUTH_MATCH), in TEST_F()
433 MakeTask(session_id, 0x1, FACEAUTH_CMD_COMP, 0, 0, in TEST_F()