Lines Matching refs:mockDevice

66     const auto mockDevice = MockDevice::create();  in createMockDevice()  local
76 ON_CALL(*mockDevice, getCapabilities(_)).WillByDefault(Invoke(getCapabilities_ret)); in createMockDevice()
80 EXPECT_CALL(*mockDevice, getCapabilities(_)).Times(testing::AnyNumber()); in createMockDevice()
82 return mockDevice; in createMockDevice()
125 const auto mockDevice = createMockDevice(); in TEST() local
131 EXPECT_CALL(*mockDevice, getCapabilities(_)).Times(1).WillOnce(Invoke(ret)); in TEST()
134 const auto result = Device::create(kName, mockDevice); in TEST()
143 const auto mockDevice = createMockDevice(); in TEST() local
144 EXPECT_CALL(*mockDevice, getCapabilities(_)) in TEST()
149 const auto result = Device::create(kName, mockDevice); in TEST()
158 const auto mockDevice = createMockDevice(); in TEST() local
159 EXPECT_CALL(*mockDevice, getCapabilities(_)) in TEST()
164 const auto result = Device::create(kName, mockDevice); in TEST()
173 const auto mockDevice = createMockDevice(); in TEST() local
175 EXPECT_CALL(*mockDevice, linkToDeathRet()).Times(1).WillOnce(InvokeWithoutArgs(ret)); in TEST()
178 const auto result = Device::create(kName, mockDevice); in TEST()
187 const auto mockDevice = createMockDevice(); in TEST() local
188 EXPECT_CALL(*mockDevice, linkToDeathRet()) in TEST()
193 const auto result = Device::create(kName, mockDevice); in TEST()
202 const auto mockDevice = createMockDevice(); in TEST() local
203 EXPECT_CALL(*mockDevice, linkToDeathRet()) in TEST()
208 const auto result = Device::create(kName, mockDevice); in TEST()
217 const auto mockDevice = createMockDevice(); in TEST() local
218 const auto device = Device::create(kName, mockDevice).value(); in TEST()
229 const auto mockDevice = createMockDevice(); in TEST() local
230 const auto device = Device::create(kName, mockDevice).value(); in TEST()
241 const auto mockDevice = createMockDevice(); in TEST() local
242 const auto result = Device::create(kName, mockDevice); in TEST()
257 const auto mockDevice = createMockDevice(); in TEST() local
259 EXPECT_CALL(*mockDevice, ping()).Times(1).WillOnce(InvokeWithoutArgs(ret)); in TEST()
260 const auto device = Device::create(kName, mockDevice).value(); in TEST()
272 const auto mockDevice = createMockDevice(); in TEST() local
273 EXPECT_CALL(*mockDevice, ping()) in TEST()
276 const auto device = Device::create(kName, mockDevice).value(); in TEST()
288 const auto mockDevice = createMockDevice(); in TEST() local
289 EXPECT_CALL(*mockDevice, ping()).Times(1).WillOnce(InvokeWithoutArgs(makeDeadObjectFailure)); in TEST()
290 const auto device = Device::create(kName, mockDevice).value(); in TEST()
302 const auto mockDevice = createMockDevice(); in TEST() local
303 const auto device = Device::create(kName, mockDevice).value(); in TEST()
308 EXPECT_CALL(*mockDevice, getSupportedOperations(_, _)).Times(1).WillOnce(Invoke(ret)); in TEST()
323 const auto mockDevice = createMockDevice(); in TEST() local
324 const auto device = Device::create(kName, mockDevice).value(); in TEST()
329 EXPECT_CALL(*mockDevice, getSupportedOperations(_, _)).Times(1).WillOnce(Invoke(ret)); in TEST()
341 const auto mockDevice = createMockDevice(); in TEST() local
342 const auto device = Device::create(kName, mockDevice).value(); in TEST()
343 EXPECT_CALL(*mockDevice, getSupportedOperations(_, _)) in TEST()
357 const auto mockDevice = createMockDevice(); in TEST() local
358 const auto device = Device::create(kName, mockDevice).value(); in TEST()
359 EXPECT_CALL(*mockDevice, getSupportedOperations(_, _)) in TEST()
373 const auto mockDevice = createMockDevice(); in TEST() local
374 const auto device = Device::create(kName, mockDevice).value(); in TEST()
376 EXPECT_CALL(*mockDevice, prepareModel(_, _)) in TEST()
393 const auto mockDevice = createMockDevice(); in TEST() local
394 const auto device = Device::create(kName, mockDevice).value(); in TEST()
395 EXPECT_CALL(*mockDevice, prepareModel(_, _)) in TEST()
411 const auto mockDevice = createMockDevice(); in TEST() local
412 const auto device = Device::create(kName, mockDevice).value(); in TEST()
413 EXPECT_CALL(*mockDevice, prepareModel(_, _)) in TEST()
429 const auto mockDevice = createMockDevice(); in TEST() local
430 const auto device = Device::create(kName, mockDevice).value(); in TEST()
431 EXPECT_CALL(*mockDevice, prepareModel(_, _)) in TEST()
447 const auto mockDevice = createMockDevice(); in TEST() local
448 const auto device = Device::create(kName, mockDevice).value(); in TEST()
449 EXPECT_CALL(*mockDevice, prepareModel(_, _)) in TEST()
464 const auto mockDevice = createMockDevice(); in TEST() local
465 const auto device = Device::create(kName, mockDevice).value(); in TEST()
466 EXPECT_CALL(*mockDevice, prepareModel(_, _)) in TEST()
481 const auto mockDevice = createMockDevice(); in TEST() local
482 const auto device = Device::create(kName, mockDevice).value(); in TEST()
483 const auto ret = [&mockDevice]() -> hardware::Return<V1_0::ErrorStatus> { in TEST()
484 mockDevice->simulateCrash(); in TEST()
487 EXPECT_CALL(*mockDevice, prepareModel(_, _)).Times(1).WillOnce(InvokeWithoutArgs(ret)); in TEST()
500 const auto mockDevice = createMockDevice(); in TEST() local
501 const auto device = Device::create(kName, mockDevice).value(); in TEST()
513 const auto mockDevice = createMockDevice(); in TEST() local
514 const auto device = Device::create(kName, mockDevice).value(); in TEST()