Home
last modified time | relevance | path

Searched refs:mockExecution (Results 1 – 1 of 1) sorted by relevance

/hardware/interfaces/neuralnetworks/utils/common/test/
DResilientExecution.cpp41 auto mockExecution = std::make_shared<const nn::MockExecution>(); in setup() local
44 EXPECT_CALL(*mockExecutionFactory, Call()).Times(1).WillOnce(Return(mockExecution)); in setup()
47 return std::make_tuple(std::move(mockExecution), std::move(mockExecutionFactory), in setup()
91 const auto [mockExecution, mockExecutionFactory, execution] = setup(); in TEST()
97 EXPECT_TRUE(result == mockExecution); in TEST()
102 const auto [mockExecution, mockExecutionFactory, execution] = setup(); in TEST()
103 EXPECT_CALL(*mockExecution, compute(_)).Times(1).WillOnce(Return(kNoExecutionError)); in TEST()
115 const auto [mockExecution, mockExecutionFactory, execution] = setup(); in TEST()
116 EXPECT_CALL(*mockExecution, compute(_)).Times(1).WillOnce(kReturnGeneralFailure); in TEST()
128 const auto [mockExecution, mockExecutionFactory, execution] = setup(); in TEST()
[all …]