Lines Matching refs:mockPreparedModel
46 const auto mockPreparedModel = MockPreparedModel::create(); in createMockPreparedModel() local
49 EXPECT_CALL(*mockPreparedModel, execute(_, _)).Times(0); in createMockPreparedModel()
50 EXPECT_CALL(*mockPreparedModel, execute_1_2(_, _, _)).Times(0); in createMockPreparedModel()
51 EXPECT_CALL(*mockPreparedModel, executeSynchronously(_, _, _)).Times(0); in createMockPreparedModel()
53 return mockPreparedModel; in createMockPreparedModel()
133 const auto mockPreparedModel = createMockPreparedModel(); in TEST() local
135 EXPECT_CALL(*mockPreparedModel, linkToDeathRet()).Times(1).WillOnce(InvokeWithoutArgs(ret)); in TEST()
138 const auto result = PreparedModel::create(mockPreparedModel, /*executeSynchronously=*/true); in TEST()
147 const auto mockPreparedModel = createMockPreparedModel(); in TEST() local
148 EXPECT_CALL(*mockPreparedModel, linkToDeathRet()) in TEST()
153 const auto result = PreparedModel::create(mockPreparedModel, /*executeSynchronously=*/true); in TEST()
162 const auto mockPreparedModel = createMockPreparedModel(); in TEST() local
163 EXPECT_CALL(*mockPreparedModel, linkToDeathRet()) in TEST()
168 const auto result = PreparedModel::create(mockPreparedModel, /*executeSynchronously=*/true); in TEST()
177 const auto mockPreparedModel = createMockPreparedModel(); in TEST() local
179 PreparedModel::create(mockPreparedModel, /*executeSynchronously=*/true).value(); in TEST()
180 EXPECT_CALL(*mockPreparedModel, executeSynchronously_1_3(_, _, _, _, _)) in TEST()
194 const auto mockPreparedModel = createMockPreparedModel(); in TEST() local
196 PreparedModel::create(mockPreparedModel, /*executeSynchronously=*/true).value(); in TEST()
197 EXPECT_CALL(*mockPreparedModel, executeSynchronously_1_3(_, _, _, _, _)) in TEST()
212 const auto mockPreparedModel = createMockPreparedModel(); in TEST() local
214 PreparedModel::create(mockPreparedModel, /*executeSynchronously=*/true).value(); in TEST()
215 EXPECT_CALL(*mockPreparedModel, executeSynchronously_1_3(_, _, _, _, _)) in TEST()
229 const auto mockPreparedModel = createMockPreparedModel(); in TEST() local
231 PreparedModel::create(mockPreparedModel, /*executeSynchronously=*/true).value(); in TEST()
232 EXPECT_CALL(*mockPreparedModel, executeSynchronously_1_3(_, _, _, _, _)) in TEST()
246 const auto mockPreparedModel = createMockPreparedModel(); in TEST() local
248 PreparedModel::create(mockPreparedModel, /*executeSynchronously=*/false).value(); in TEST()
249 EXPECT_CALL(*mockPreparedModel, execute_1_3(_, _, _, _, _)) in TEST()
264 const auto mockPreparedModel = createMockPreparedModel(); in TEST() local
266 PreparedModel::create(mockPreparedModel, /*executeSynchronously=*/false).value(); in TEST()
267 EXPECT_CALL(*mockPreparedModel, execute_1_3(_, _, _, _, _)) in TEST()
283 const auto mockPreparedModel = createMockPreparedModel(); in TEST() local
285 PreparedModel::create(mockPreparedModel, /*executeSynchronously=*/false).value(); in TEST()
286 EXPECT_CALL(*mockPreparedModel, execute_1_3(_, _, _, _, _)) in TEST()
301 const auto mockPreparedModel = createMockPreparedModel(); in TEST() local
303 PreparedModel::create(mockPreparedModel, /*executeSynchronously=*/false).value(); in TEST()
304 EXPECT_CALL(*mockPreparedModel, execute_1_3(_, _, _, _, _)) in TEST()
318 const auto mockPreparedModel = createMockPreparedModel(); in TEST() local
320 PreparedModel::create(mockPreparedModel, /*executeSynchronously=*/false).value(); in TEST()
321 EXPECT_CALL(*mockPreparedModel, execute_1_3(_, _, _, _, _)) in TEST()
335 const auto mockPreparedModel = createMockPreparedModel(); in TEST() local
337 PreparedModel::create(mockPreparedModel, /*executeSynchronously=*/false).value(); in TEST()
338 const auto ret = [&mockPreparedModel]() -> hardware::Return<V1_3::ErrorStatus> { in TEST()
339 mockPreparedModel->simulateCrash(); in TEST()
342 EXPECT_CALL(*mockPreparedModel, execute_1_3(_, _, _, _, _)) in TEST()
356 const auto mockPreparedModel = createMockPreparedModel(); in TEST() local
358 PreparedModel::create(mockPreparedModel, /*executeSynchronously=*/true).value(); in TEST()
364 EXPECT_CALL(*mockPreparedModel, executeFenced(_, _, _, _, _, _, _)) in TEST()
386 const auto mockPreparedModel = createMockPreparedModel(); in TEST() local
388 PreparedModel::create(mockPreparedModel, /*executeSynchronously=*/true).value(); in TEST()
394 EXPECT_CALL(*mockPreparedModel, executeFenced(_, _, _, _, _, _, _)) in TEST()
416 const auto mockPreparedModel = createMockPreparedModel(); in TEST() local
418 PreparedModel::create(mockPreparedModel, /*executeSynchronously=*/true).value(); in TEST()
419 EXPECT_CALL(*mockPreparedModel, executeFenced(_, _, _, _, _, _, _)) in TEST()
434 const auto mockPreparedModel = createMockPreparedModel(); in TEST() local
436 PreparedModel::create(mockPreparedModel, /*executeSynchronously=*/true).value(); in TEST()
437 EXPECT_CALL(*mockPreparedModel, executeFenced(_, _, _, _, _, _, _)) in TEST()
451 const auto mockPreparedModel = createMockPreparedModel(); in TEST() local
453 PreparedModel::create(mockPreparedModel, /*executeSynchronously=*/true).value(); in TEST()
454 EXPECT_CALL(*mockPreparedModel, executeFenced(_, _, _, _, _, _, _)) in TEST()
469 const auto mockPreparedModel = createMockPreparedModel(); in TEST() local
471 PreparedModel::create(mockPreparedModel, /*executeSynchronously=*/true).value(); in TEST()
472 EXPECT_CALL(*mockPreparedModel, executeSynchronously_1_3(_, _, _, _, _)) in TEST()
493 const auto mockPreparedModel = createMockPreparedModel(); in TEST() local
495 PreparedModel::create(mockPreparedModel, /*executeSynchronously=*/true).value(); in TEST()
496 EXPECT_CALL(*mockPreparedModel, executeSynchronously_1_3(_, _, _, _, _)) in TEST()
515 const auto mockPreparedModel = createMockPreparedModel(); in TEST() local
517 PreparedModel::create(mockPreparedModel, /*executeSynchronously=*/true).value(); in TEST()
518 EXPECT_CALL(*mockPreparedModel, executeSynchronously_1_3(_, _, _, _, _)) in TEST()
536 const auto mockPreparedModel = createMockPreparedModel(); in TEST() local
538 PreparedModel::create(mockPreparedModel, /*executeSynchronously=*/true).value(); in TEST()
539 EXPECT_CALL(*mockPreparedModel, executeSynchronously_1_3(_, _, _, _, _)) in TEST()
558 const auto mockPreparedModel = createMockPreparedModel(); in TEST() local
560 PreparedModel::create(mockPreparedModel, /*executeSynchronously=*/false).value(); in TEST()
561 EXPECT_CALL(*mockPreparedModel, execute_1_3(_, _, _, _, _)) in TEST()
582 const auto mockPreparedModel = createMockPreparedModel(); in TEST() local
584 PreparedModel::create(mockPreparedModel, /*executeSynchronously=*/false).value(); in TEST()
585 EXPECT_CALL(*mockPreparedModel, execute_1_3(_, _, _, _, _)) in TEST()
605 const auto mockPreparedModel = createMockPreparedModel(); in TEST() local
607 PreparedModel::create(mockPreparedModel, /*executeSynchronously=*/false).value(); in TEST()
608 EXPECT_CALL(*mockPreparedModel, execute_1_3(_, _, _, _, _)) in TEST()
623 const auto mockPreparedModel = createMockPreparedModel(); in TEST() local
625 PreparedModel::create(mockPreparedModel, /*executeSynchronously=*/false).value(); in TEST()
626 EXPECT_CALL(*mockPreparedModel, execute_1_3(_, _, _, _, _)) in TEST()
644 const auto mockPreparedModel = createMockPreparedModel(); in TEST() local
646 PreparedModel::create(mockPreparedModel, /*executeSynchronously=*/false).value(); in TEST()
647 EXPECT_CALL(*mockPreparedModel, execute_1_3(_, _, _, _, _)) in TEST()
665 const auto mockPreparedModel = createMockPreparedModel(); in TEST() local
667 PreparedModel::create(mockPreparedModel, /*executeSynchronously=*/false).value(); in TEST()
668 const auto ret = [&mockPreparedModel]() -> hardware::Return<V1_3::ErrorStatus> { in TEST()
669 mockPreparedModel->simulateCrash(); in TEST()
672 EXPECT_CALL(*mockPreparedModel, execute_1_3(_, _, _, _, _)) in TEST()
691 const auto mockPreparedModel = createMockPreparedModel(); in TEST() local
693 PreparedModel::create(mockPreparedModel, /*executeSynchronously=*/true).value(); in TEST()
699 EXPECT_CALL(*mockPreparedModel, executeFenced(_, _, _, _, _, _, _)) in TEST()
728 const auto mockPreparedModel = createMockPreparedModel(); in TEST() local
730 PreparedModel::create(mockPreparedModel, /*executeSynchronously=*/true).value(); in TEST()
736 EXPECT_CALL(*mockPreparedModel, executeFenced(_, _, _, _, _, _, _)) in TEST()
762 const auto mockPreparedModel = createMockPreparedModel(); in TEST() local
764 PreparedModel::create(mockPreparedModel, /*executeSynchronously=*/true).value(); in TEST()
765 EXPECT_CALL(*mockPreparedModel, executeFenced(_, _, _, _, _, _, _)) in TEST()
784 const auto mockPreparedModel = createMockPreparedModel(); in TEST() local
786 PreparedModel::create(mockPreparedModel, /*executeSynchronously=*/true).value(); in TEST()
787 EXPECT_CALL(*mockPreparedModel, executeFenced(_, _, _, _, _, _, _)) in TEST()
805 const auto mockPreparedModel = createMockPreparedModel(); in TEST() local
807 PreparedModel::create(mockPreparedModel, /*executeSynchronously=*/true).value(); in TEST()
808 EXPECT_CALL(*mockPreparedModel, executeFenced(_, _, _, _, _, _, _)) in TEST()
825 const auto mockPreparedModel = MockPreparedModel::create(); in TEST() local
827 EXPECT_CALL(*mockPreparedModel, configureExecutionBurst(_, _, _, _)) in TEST()
831 PreparedModel::create(mockPreparedModel, /*executeSynchronously=*/true).value(); in TEST()
844 const auto mockPreparedModel = MockPreparedModel::create(); in TEST() local
846 PreparedModel::create(mockPreparedModel, /*executeSynchronously=*/true).value(); in TEST()
847 EXPECT_CALL(*mockPreparedModel, configureExecutionBurst(_, _, _, _)) in TEST()
862 const auto mockPreparedModel = MockPreparedModel::create(); in TEST() local
864 PreparedModel::create(mockPreparedModel, /*executeSynchronously=*/true).value(); in TEST()
865 EXPECT_CALL(*mockPreparedModel, configureExecutionBurst(_, _, _, _)) in TEST()
879 const auto mockPreparedModel = MockPreparedModel::create(); in TEST() local
881 PreparedModel::create(mockPreparedModel, /*executeSynchronously=*/true).value(); in TEST()
882 EXPECT_CALL(*mockPreparedModel, configureExecutionBurst(_, _, _, _)) in TEST()
896 const auto mockPreparedModel = createMockPreparedModel(); in TEST() local
898 PreparedModel::create(mockPreparedModel, /*executeSynchronously=*/true).value(); in TEST()
906 EXPECT_EQ(maybeMock->get(), mockPreparedModel.get()); in TEST()