Lines Matching refs:mockPreparedModel

45     const auto mockPreparedModel = MockPreparedModel::create();  in createMockPreparedModel()  local
48 EXPECT_CALL(*mockPreparedModel, execute(_, _)).Times(0); in createMockPreparedModel()
50 return mockPreparedModel; in createMockPreparedModel()
105 const auto mockPreparedModel = createMockPreparedModel(); in TEST() local
107 EXPECT_CALL(*mockPreparedModel, linkToDeathRet()).Times(1).WillOnce(InvokeWithoutArgs(ret)); in TEST()
110 const auto result = PreparedModel::create(mockPreparedModel, /*executeSynchronously=*/true); in TEST()
119 const auto mockPreparedModel = createMockPreparedModel(); in TEST() local
120 EXPECT_CALL(*mockPreparedModel, linkToDeathRet()) in TEST()
125 const auto result = PreparedModel::create(mockPreparedModel, /*executeSynchronously=*/true); in TEST()
134 const auto mockPreparedModel = createMockPreparedModel(); in TEST() local
135 EXPECT_CALL(*mockPreparedModel, linkToDeathRet()) in TEST()
140 const auto result = PreparedModel::create(mockPreparedModel, /*executeSynchronously=*/true); in TEST()
149 const auto mockPreparedModel = createMockPreparedModel(); in TEST() local
151 PreparedModel::create(mockPreparedModel, /*executeSynchronously=*/true).value(); in TEST()
152 EXPECT_CALL(*mockPreparedModel, executeSynchronously(_, _, _)) in TEST()
166 const auto mockPreparedModel = createMockPreparedModel(); in TEST() local
168 PreparedModel::create(mockPreparedModel, /*executeSynchronously=*/true).value(); in TEST()
169 EXPECT_CALL(*mockPreparedModel, executeSynchronously(_, _, _)) in TEST()
184 const auto mockPreparedModel = createMockPreparedModel(); in TEST() local
186 PreparedModel::create(mockPreparedModel, /*executeSynchronously=*/true).value(); in TEST()
187 EXPECT_CALL(*mockPreparedModel, executeSynchronously(_, _, _)) in TEST()
201 const auto mockPreparedModel = createMockPreparedModel(); in TEST() local
203 PreparedModel::create(mockPreparedModel, /*executeSynchronously=*/true).value(); in TEST()
204 EXPECT_CALL(*mockPreparedModel, executeSynchronously(_, _, _)) in TEST()
218 const auto mockPreparedModel = createMockPreparedModel(); in TEST() local
220 PreparedModel::create(mockPreparedModel, /*executeSynchronously=*/false).value(); in TEST()
221 EXPECT_CALL(*mockPreparedModel, execute_1_2(_, _, _)) in TEST()
236 const auto mockPreparedModel = createMockPreparedModel(); in TEST() local
238 PreparedModel::create(mockPreparedModel, /*executeSynchronously=*/false).value(); in TEST()
239 EXPECT_CALL(*mockPreparedModel, execute_1_2(_, _, _)) in TEST()
255 const auto mockPreparedModel = createMockPreparedModel(); in TEST() local
257 PreparedModel::create(mockPreparedModel, /*executeSynchronously=*/false).value(); in TEST()
258 EXPECT_CALL(*mockPreparedModel, execute_1_2(_, _, _)) in TEST()
273 const auto mockPreparedModel = createMockPreparedModel(); in TEST() local
275 PreparedModel::create(mockPreparedModel, /*executeSynchronously=*/false).value(); in TEST()
276 EXPECT_CALL(*mockPreparedModel, execute_1_2(_, _, _)) in TEST()
290 const auto mockPreparedModel = createMockPreparedModel(); in TEST() local
292 PreparedModel::create(mockPreparedModel, /*executeSynchronously=*/false).value(); in TEST()
293 EXPECT_CALL(*mockPreparedModel, execute_1_2(_, _, _)) in TEST()
307 const auto mockPreparedModel = createMockPreparedModel(); in TEST() local
309 PreparedModel::create(mockPreparedModel, /*executeSynchronously=*/false).value(); in TEST()
310 const auto ret = [&mockPreparedModel]() -> hardware::Return<V1_0::ErrorStatus> { in TEST()
311 mockPreparedModel->simulateCrash(); in TEST()
314 EXPECT_CALL(*mockPreparedModel, execute_1_2(_, _, _)).Times(1).WillOnce(InvokeWithoutArgs(ret)); in TEST()
326 const auto mockPreparedModel = createMockPreparedModel(); in TEST() local
328 PreparedModel::create(mockPreparedModel, /*executeSynchronously=*/true).value(); in TEST()
341 const auto mockPreparedModel = createMockPreparedModel(); in TEST() local
343 PreparedModel::create(mockPreparedModel, /*executeSynchronously=*/true).value(); in TEST()
344 EXPECT_CALL(*mockPreparedModel, executeSynchronously(_, _, _)) in TEST()
365 const auto mockPreparedModel = createMockPreparedModel(); in TEST() local
367 PreparedModel::create(mockPreparedModel, /*executeSynchronously=*/true).value(); in TEST()
368 EXPECT_CALL(*mockPreparedModel, executeSynchronously(_, _, _)) in TEST()
387 const auto mockPreparedModel = createMockPreparedModel(); in TEST() local
389 PreparedModel::create(mockPreparedModel, /*executeSynchronously=*/true).value(); in TEST()
390 EXPECT_CALL(*mockPreparedModel, executeSynchronously(_, _, _)) in TEST()
408 const auto mockPreparedModel = createMockPreparedModel(); in TEST() local
410 PreparedModel::create(mockPreparedModel, /*executeSynchronously=*/true).value(); in TEST()
411 EXPECT_CALL(*mockPreparedModel, executeSynchronously(_, _, _)) in TEST()
430 const auto mockPreparedModel = createMockPreparedModel(); in TEST() local
432 PreparedModel::create(mockPreparedModel, /*executeSynchronously=*/false).value(); in TEST()
433 EXPECT_CALL(*mockPreparedModel, execute_1_2(_, _, _)) in TEST()
454 const auto mockPreparedModel = createMockPreparedModel(); in TEST() local
456 PreparedModel::create(mockPreparedModel, /*executeSynchronously=*/false).value(); in TEST()
457 EXPECT_CALL(*mockPreparedModel, execute_1_2(_, _, _)) in TEST()
477 const auto mockPreparedModel = createMockPreparedModel(); in TEST() local
479 PreparedModel::create(mockPreparedModel, /*executeSynchronously=*/false).value(); in TEST()
480 EXPECT_CALL(*mockPreparedModel, execute_1_2(_, _, _)) in TEST()
499 const auto mockPreparedModel = createMockPreparedModel(); in TEST() local
501 PreparedModel::create(mockPreparedModel, /*executeSynchronously=*/false).value(); in TEST()
502 EXPECT_CALL(*mockPreparedModel, execute_1_2(_, _, _)) in TEST()
520 const auto mockPreparedModel = createMockPreparedModel(); in TEST() local
522 PreparedModel::create(mockPreparedModel, /*executeSynchronously=*/false).value(); in TEST()
523 EXPECT_CALL(*mockPreparedModel, execute_1_2(_, _, _)) in TEST()
541 const auto mockPreparedModel = createMockPreparedModel(); in TEST() local
543 PreparedModel::create(mockPreparedModel, /*executeSynchronously=*/false).value(); in TEST()
544 const auto ret = [&mockPreparedModel]() -> hardware::Return<V1_0::ErrorStatus> { in TEST()
545 mockPreparedModel->simulateCrash(); in TEST()
548 EXPECT_CALL(*mockPreparedModel, execute_1_2(_, _, _)).Times(1).WillOnce(InvokeWithoutArgs(ret)); in TEST()
564 const auto mockPreparedModel = createMockPreparedModel(); in TEST() local
566 PreparedModel::create(mockPreparedModel, /*executeSynchronously=*/true).value(); in TEST()
582 const auto mockPreparedModel = MockPreparedModel::create(); in TEST() local
584 EXPECT_CALL(*mockPreparedModel, configureExecutionBurst(_, _, _, _)) in TEST()
588 PreparedModel::create(mockPreparedModel, /*executeSynchronously=*/true).value(); in TEST()
601 const auto mockPreparedModel = MockPreparedModel::create(); in TEST() local
603 PreparedModel::create(mockPreparedModel, /*executeSynchronously=*/true).value(); in TEST()
604 EXPECT_CALL(*mockPreparedModel, configureExecutionBurst(_, _, _, _)) in TEST()
619 const auto mockPreparedModel = MockPreparedModel::create(); in TEST() local
621 PreparedModel::create(mockPreparedModel, /*executeSynchronously=*/true).value(); in TEST()
622 EXPECT_CALL(*mockPreparedModel, configureExecutionBurst(_, _, _, _)) in TEST()
636 const auto mockPreparedModel = MockPreparedModel::create(); in TEST() local
638 PreparedModel::create(mockPreparedModel, /*executeSynchronously=*/true).value(); in TEST()
639 EXPECT_CALL(*mockPreparedModel, configureExecutionBurst(_, _, _, _)) in TEST()
653 const auto mockPreparedModel = createMockPreparedModel(); in TEST() local
655 PreparedModel::create(mockPreparedModel, /*executeSynchronously=*/true).value(); in TEST()
663 EXPECT_EQ(maybeMock->get(), mockPreparedModel.get()); in TEST()