Home
last modified time | relevance | path

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

/hardware/interfaces/neuralnetworks/utils/common/test/
DResilientExecution.cpp54 const auto kReturnGeneralFailure = makeError(nn::ErrorStatus::GENERAL_FAILURE); variable
79 const auto invalidExecutionFactory = kReturnGeneralFailure; in TEST()
116 EXPECT_CALL(*mockExecution, compute(_)).Times(1).WillOnce(kReturnGeneralFailure); in TEST()
130 EXPECT_CALL(*mockExecutionFactory, Call()).Times(1).WillOnce(kReturnGeneralFailure); in TEST()
174 EXPECT_CALL(*mockExecution, computeFenced(_, _, _)).Times(1).WillOnce(kReturnGeneralFailure); in TEST()
188 EXPECT_CALL(*mockExecutionFactory, Call()).Times(1).WillOnce(kReturnGeneralFailure); in TEST()
235 EXPECT_CALL(*mockExecutionFactory, Call()).Times(1).WillOnce(kReturnGeneralFailure); in TEST()
DResilientBufferTest.cpp58 const auto kReturnGeneralFailure = makeError(nn::ErrorStatus::GENERAL_FAILURE); variable
79 const auto invalidBufferFactory = kReturnGeneralFailure; in TEST()
129 EXPECT_CALL(*mockBuffer, copyTo(_)).Times(1).WillOnce(kReturnGeneralFailure); in TEST()
144 EXPECT_CALL(*mockBufferFactory, Call()).Times(1).WillOnce(kReturnGeneralFailure); in TEST()
189 EXPECT_CALL(*mockBuffer, copyFrom(_, _)).Times(1).WillOnce(kReturnGeneralFailure); in TEST()
204 EXPECT_CALL(*mockBufferFactory, Call()).Times(1).WillOnce(kReturnGeneralFailure); in TEST()
251 EXPECT_CALL(*mockBufferFactory, Call()).Times(1).WillOnce(kReturnGeneralFailure); in TEST()
DResilientPreparedModelTest.cpp55 const auto kReturnGeneralFailure = makeError(nn::ErrorStatus::GENERAL_FAILURE); variable
83 const auto invalidPreparedModelFactory = kReturnGeneralFailure; in TEST()
122 EXPECT_CALL(*mockPreparedModel, execute(_, _, _, _)).Times(1).WillOnce(kReturnGeneralFailure); in TEST()
187 .WillOnce(kReturnGeneralFailure); in TEST()
203 EXPECT_CALL(*mockPreparedModelFactory, Call()).Times(1).WillOnce(kReturnGeneralFailure); in TEST()
255 .WillOnce(kReturnGeneralFailure); in TEST()
301 EXPECT_CALL(*mockPreparedModelFactory, Call()).Times(1).WillOnce(kReturnGeneralFailure); in TEST()
DResilientDeviceTest.cpp102 const auto kReturnGeneralFailure = makeError(nn::ErrorStatus::GENERAL_FAILURE); variable
121 const auto invalidDeviceFactory = kReturnGeneralFailure; in TEST()
209 EXPECT_CALL(*mockDevice, wait()).Times(1).WillOnce(kReturnGeneralFailure); in TEST()
223 EXPECT_CALL(*mockDeviceFactory, Call(true)).Times(1).WillOnce(kReturnGeneralFailure); in TEST()
267 EXPECT_CALL(*mockDevice, getSupportedOperations(_)).Times(1).WillOnce(kReturnGeneralFailure); in TEST()
281 EXPECT_CALL(*mockDeviceFactory, Call(false)).Times(1).WillOnce(kReturnGeneralFailure); in TEST()
330 .WillOnce(kReturnGeneralFailure); in TEST()
346 EXPECT_CALL(*mockDeviceFactory, Call(false)).Times(1).WillOnce(kReturnGeneralFailure); in TEST()
398 .WillOnce(kReturnGeneralFailure); in TEST()
414 EXPECT_CALL(*mockDeviceFactory, Call(false)).Times(1).WillOnce(kReturnGeneralFailure); in TEST()
[all …]