Lines Matching refs:mockDevice

66     const auto mockDevice = MockDevice::create();  in createMockDevice()  local
78 ON_CALL(*mockDevice, getCapabilities_1_1(_)).WillByDefault(Invoke(getCapabilities_ret)); in createMockDevice()
81 EXPECT_CALL(*mockDevice, getCapabilities(_)).Times(0); in createMockDevice()
82 EXPECT_CALL(*mockDevice, getSupportedOperations(_, _)).Times(0); in createMockDevice()
83 EXPECT_CALL(*mockDevice, prepareModel(_, _)).Times(0); in createMockDevice()
87 EXPECT_CALL(*mockDevice, getCapabilities_1_1(_)).Times(testing::AnyNumber()); in createMockDevice()
89 return mockDevice; in createMockDevice()
133 const auto mockDevice = createMockDevice(); in TEST() local
141 EXPECT_CALL(*mockDevice, getCapabilities_1_1(_)).Times(1).WillOnce(Invoke(ret)); in TEST()
144 const auto result = Device::create(kName, mockDevice); in TEST()
153 const auto mockDevice = createMockDevice(); in TEST() local
154 EXPECT_CALL(*mockDevice, getCapabilities_1_1(_)) in TEST()
159 const auto result = Device::create(kName, mockDevice); in TEST()
168 const auto mockDevice = createMockDevice(); in TEST() local
169 EXPECT_CALL(*mockDevice, getCapabilities_1_1(_)) in TEST()
174 const auto result = Device::create(kName, mockDevice); in TEST()
183 const auto mockDevice = createMockDevice(); in TEST() local
185 EXPECT_CALL(*mockDevice, linkToDeathRet()).Times(1).WillOnce(InvokeWithoutArgs(ret)); in TEST()
188 const auto result = Device::create(kName, mockDevice); in TEST()
197 const auto mockDevice = createMockDevice(); in TEST() local
198 EXPECT_CALL(*mockDevice, linkToDeathRet()) in TEST()
203 const auto result = Device::create(kName, mockDevice); in TEST()
212 const auto mockDevice = createMockDevice(); in TEST() local
213 EXPECT_CALL(*mockDevice, linkToDeathRet()) in TEST()
218 const auto result = Device::create(kName, mockDevice); in TEST()
227 const auto mockDevice = createMockDevice(); in TEST() local
228 const auto device = Device::create(kName, mockDevice).value(); in TEST()
239 const auto mockDevice = createMockDevice(); in TEST() local
240 const auto device = Device::create(kName, mockDevice).value(); in TEST()
251 const auto mockDevice = createMockDevice(); in TEST() local
252 const auto result = Device::create(kName, mockDevice); in TEST()
267 const auto mockDevice = createMockDevice(); in TEST() local
269 EXPECT_CALL(*mockDevice, ping()).Times(1).WillOnce(InvokeWithoutArgs(ret)); in TEST()
270 const auto device = Device::create(kName, mockDevice).value(); in TEST()
282 const auto mockDevice = createMockDevice(); in TEST() local
283 EXPECT_CALL(*mockDevice, ping()) in TEST()
286 const auto device = Device::create(kName, mockDevice).value(); in TEST()
298 const auto mockDevice = createMockDevice(); in TEST() local
299 EXPECT_CALL(*mockDevice, ping()).Times(1).WillOnce(InvokeWithoutArgs(makeDeadObjectFailure)); in TEST()
300 const auto device = Device::create(kName, mockDevice).value(); in TEST()
312 const auto mockDevice = createMockDevice(); in TEST() local
313 const auto device = Device::create(kName, mockDevice).value(); in TEST()
318 EXPECT_CALL(*mockDevice, getSupportedOperations_1_1(_, _)).Times(1).WillOnce(Invoke(ret)); in TEST()
333 const auto mockDevice = createMockDevice(); in TEST() local
334 const auto device = Device::create(kName, mockDevice).value(); in TEST()
339 EXPECT_CALL(*mockDevice, getSupportedOperations_1_1(_, _)).Times(1).WillOnce(Invoke(ret)); in TEST()
351 const auto mockDevice = createMockDevice(); in TEST() local
352 const auto device = Device::create(kName, mockDevice).value(); in TEST()
353 EXPECT_CALL(*mockDevice, getSupportedOperations_1_1(_, _)) in TEST()
367 const auto mockDevice = createMockDevice(); in TEST() local
368 const auto device = Device::create(kName, mockDevice).value(); in TEST()
369 EXPECT_CALL(*mockDevice, getSupportedOperations_1_1(_, _)) in TEST()
383 const auto mockDevice = createMockDevice(); in TEST() local
384 const auto device = Device::create(kName, mockDevice).value(); in TEST()
386 EXPECT_CALL(*mockDevice, prepareModel_1_1(_, _, _)) in TEST()
403 const auto mockDevice = createMockDevice(); in TEST() local
404 const auto device = Device::create(kName, mockDevice).value(); in TEST()
405 EXPECT_CALL(*mockDevice, prepareModel_1_1(_, _, _)) in TEST()
421 const auto mockDevice = createMockDevice(); in TEST() local
422 const auto device = Device::create(kName, mockDevice).value(); in TEST()
423 EXPECT_CALL(*mockDevice, prepareModel_1_1(_, _, _)) in TEST()
439 const auto mockDevice = createMockDevice(); in TEST() local
440 const auto device = Device::create(kName, mockDevice).value(); in TEST()
441 EXPECT_CALL(*mockDevice, prepareModel_1_1(_, _, _)) in TEST()
457 const auto mockDevice = createMockDevice(); in TEST() local
458 const auto device = Device::create(kName, mockDevice).value(); in TEST()
459 EXPECT_CALL(*mockDevice, prepareModel_1_1(_, _, _)) in TEST()
474 const auto mockDevice = createMockDevice(); in TEST() local
475 const auto device = Device::create(kName, mockDevice).value(); in TEST()
476 EXPECT_CALL(*mockDevice, prepareModel_1_1(_, _, _)) in TEST()
491 const auto mockDevice = createMockDevice(); in TEST() local
492 const auto device = Device::create(kName, mockDevice).value(); in TEST()
493 const auto ret = [&mockDevice]() -> hardware::Return<V1_0::ErrorStatus> { in TEST()
494 mockDevice->simulateCrash(); in TEST()
497 EXPECT_CALL(*mockDevice, prepareModel_1_1(_, _, _)).Times(1).WillOnce(InvokeWithoutArgs(ret)); in TEST()
510 const auto mockDevice = createMockDevice(); in TEST() local
511 const auto device = Device::create(kName, mockDevice).value(); in TEST()
523 const auto mockDevice = createMockDevice(); in TEST() local
524 const auto device = Device::create(kName, mockDevice).value(); in TEST()