Lines Matching refs:mockDevice
66 const auto mockDevice = MockDevice::create(); in createMockDevice() local
83 ON_CALL(*mockDevice, getVersionString(_)).WillByDefault(Invoke(getVersionString_ret)); in createMockDevice()
84 ON_CALL(*mockDevice, getType(_)).WillByDefault(Invoke(getType_ret)); in createMockDevice()
85 ON_CALL(*mockDevice, getSupportedExtensions(_)) in createMockDevice()
87 ON_CALL(*mockDevice, getNumberOfCacheFilesNeeded(_)) in createMockDevice()
89 ON_CALL(*mockDevice, getCapabilities_1_2(_)).WillByDefault(Invoke(getCapabilities_ret)); in createMockDevice()
92 EXPECT_CALL(*mockDevice, getCapabilities(_)).Times(0); in createMockDevice()
93 EXPECT_CALL(*mockDevice, getCapabilities_1_1(_)).Times(0); in createMockDevice()
94 EXPECT_CALL(*mockDevice, getSupportedOperations(_, _)).Times(0); in createMockDevice()
95 EXPECT_CALL(*mockDevice, getSupportedOperations_1_1(_, _)).Times(0); in createMockDevice()
96 EXPECT_CALL(*mockDevice, prepareModel(_, _)).Times(0); in createMockDevice()
97 EXPECT_CALL(*mockDevice, prepareModel_1_1(_, _, _)).Times(0); in createMockDevice()
101 EXPECT_CALL(*mockDevice, getVersionString(_)).Times(testing::AnyNumber()); in createMockDevice()
102 EXPECT_CALL(*mockDevice, getType(_)).Times(testing::AnyNumber()); in createMockDevice()
103 EXPECT_CALL(*mockDevice, getSupportedExtensions(_)).Times(testing::AnyNumber()); in createMockDevice()
104 EXPECT_CALL(*mockDevice, getNumberOfCacheFilesNeeded(_)).Times(testing::AnyNumber()); in createMockDevice()
105 EXPECT_CALL(*mockDevice, getCapabilities_1_2(_)).Times(testing::AnyNumber()); in createMockDevice()
107 return mockDevice; in createMockDevice()
165 const auto mockDevice = createMockDevice(); in TEST() local
167 EXPECT_CALL(*mockDevice, getVersionString(_)).Times(1).WillOnce(Invoke(ret)); in TEST()
170 const auto result = Device::create(kName, mockDevice); in TEST()
179 const auto mockDevice = createMockDevice(); in TEST() local
180 EXPECT_CALL(*mockDevice, getVersionString(_)) in TEST()
185 const auto result = Device::create(kName, mockDevice); in TEST()
194 const auto mockDevice = createMockDevice(); in TEST() local
195 EXPECT_CALL(*mockDevice, getVersionString(_)) in TEST()
200 const auto result = Device::create(kName, mockDevice); in TEST()
209 const auto mockDevice = createMockDevice(); in TEST() local
212 EXPECT_CALL(*mockDevice, getType(_)).Times(1).WillOnce(Invoke(ret)); in TEST()
215 const auto result = Device::create(kName, mockDevice); in TEST()
224 const auto mockDevice = createMockDevice(); in TEST() local
225 EXPECT_CALL(*mockDevice, getType(_)) in TEST()
230 const auto result = Device::create(kName, mockDevice); in TEST()
239 const auto mockDevice = createMockDevice(); in TEST() local
240 EXPECT_CALL(*mockDevice, getType(_)) in TEST()
245 const auto result = Device::create(kName, mockDevice); in TEST()
254 const auto mockDevice = createMockDevice(); in TEST() local
257 EXPECT_CALL(*mockDevice, getSupportedExtensions(_)).Times(1).WillOnce(Invoke(ret)); in TEST()
260 const auto result = Device::create(kName, mockDevice); in TEST()
269 const auto mockDevice = createMockDevice(); in TEST() local
270 EXPECT_CALL(*mockDevice, getSupportedExtensions(_)) in TEST()
275 const auto result = Device::create(kName, mockDevice); in TEST()
284 const auto mockDevice = createMockDevice(); in TEST() local
285 EXPECT_CALL(*mockDevice, getSupportedExtensions(_)) in TEST()
290 const auto result = Device::create(kName, mockDevice); in TEST()
299 const auto mockDevice = createMockDevice(); in TEST() local
302 EXPECT_CALL(*mockDevice, getNumberOfCacheFilesNeeded(_)).Times(1).WillOnce(Invoke(ret)); in TEST()
305 const auto result = Device::create(kName, mockDevice); in TEST()
314 const auto mockDevice = createMockDevice(); in TEST() local
317 EXPECT_CALL(*mockDevice, getNumberOfCacheFilesNeeded(_)).Times(1).WillOnce(Invoke(ret)); in TEST()
320 const auto result = Device::create(kName, mockDevice); in TEST()
329 const auto mockDevice = createMockDevice(); in TEST() local
332 EXPECT_CALL(*mockDevice, getNumberOfCacheFilesNeeded(_)).Times(1).WillOnce(Invoke(ret)); in TEST()
335 const auto result = Device::create(kName, mockDevice); in TEST()
344 const auto mockDevice = createMockDevice(); in TEST() local
345 EXPECT_CALL(*mockDevice, getNumberOfCacheFilesNeeded(_)) in TEST()
350 const auto result = Device::create(kName, mockDevice); in TEST()
359 const auto mockDevice = createMockDevice(); in TEST() local
360 EXPECT_CALL(*mockDevice, getNumberOfCacheFilesNeeded(_)) in TEST()
365 const auto result = Device::create(kName, mockDevice); in TEST()
374 const auto mockDevice = createMockDevice(); in TEST() local
381 EXPECT_CALL(*mockDevice, getCapabilities_1_2(_)).Times(1).WillOnce(Invoke(ret)); in TEST()
384 const auto result = Device::create(kName, mockDevice); in TEST()
393 const auto mockDevice = createMockDevice(); in TEST() local
394 EXPECT_CALL(*mockDevice, getCapabilities_1_2(_)) in TEST()
399 const auto result = Device::create(kName, mockDevice); in TEST()
408 const auto mockDevice = createMockDevice(); in TEST() local
409 EXPECT_CALL(*mockDevice, getCapabilities_1_2(_)) in TEST()
414 const auto result = Device::create(kName, mockDevice); in TEST()
423 const auto mockDevice = createMockDevice(); in TEST() local
425 EXPECT_CALL(*mockDevice, linkToDeathRet()).Times(1).WillOnce(InvokeWithoutArgs(ret)); in TEST()
428 const auto result = Device::create(kName, mockDevice); in TEST()
437 const auto mockDevice = createMockDevice(); in TEST() local
438 EXPECT_CALL(*mockDevice, linkToDeathRet()) in TEST()
443 const auto result = Device::create(kName, mockDevice); in TEST()
452 const auto mockDevice = createMockDevice(); in TEST() local
453 EXPECT_CALL(*mockDevice, linkToDeathRet()) in TEST()
458 const auto result = Device::create(kName, mockDevice); in TEST()
467 const auto mockDevice = createMockDevice(); in TEST() local
468 const auto device = Device::create(kName, mockDevice).value(); in TEST()
479 const auto mockDevice = createMockDevice(); in TEST() local
480 const auto device = Device::create(kName, mockDevice).value(); in TEST()
491 const auto mockDevice = createMockDevice(); in TEST() local
492 EXPECT_CALL(*mockDevice, getVersionString(_)).Times(1); in TEST()
493 EXPECT_CALL(*mockDevice, getType(_)).Times(1); in TEST()
494 EXPECT_CALL(*mockDevice, getSupportedExtensions(_)).Times(1); in TEST()
495 EXPECT_CALL(*mockDevice, getNumberOfCacheFilesNeeded(_)).Times(1); in TEST()
496 EXPECT_CALL(*mockDevice, getCapabilities_1_2(_)).Times(1); in TEST()
498 const auto result = Device::create(kName, mockDevice); in TEST()
513 const auto mockDevice = createMockDevice(); in TEST() local
515 EXPECT_CALL(*mockDevice, ping()).Times(1).WillOnce(InvokeWithoutArgs(ret)); in TEST()
516 const auto device = Device::create(kName, mockDevice).value(); in TEST()
528 const auto mockDevice = createMockDevice(); in TEST() local
529 EXPECT_CALL(*mockDevice, ping()) in TEST()
532 const auto device = Device::create(kName, mockDevice).value(); in TEST()
544 const auto mockDevice = createMockDevice(); in TEST() local
545 EXPECT_CALL(*mockDevice, ping()).Times(1).WillOnce(InvokeWithoutArgs(makeDeadObjectFailure)); in TEST()
546 const auto device = Device::create(kName, mockDevice).value(); in TEST()
558 const auto mockDevice = createMockDevice(); in TEST() local
559 const auto device = Device::create(kName, mockDevice).value(); in TEST()
564 EXPECT_CALL(*mockDevice, getSupportedOperations_1_2(_, _)).Times(1).WillOnce(Invoke(ret)); in TEST()
579 const auto mockDevice = createMockDevice(); in TEST() local
580 const auto device = Device::create(kName, mockDevice).value(); in TEST()
585 EXPECT_CALL(*mockDevice, getSupportedOperations_1_2(_, _)).Times(1).WillOnce(Invoke(ret)); in TEST()
597 const auto mockDevice = createMockDevice(); in TEST() local
598 const auto device = Device::create(kName, mockDevice).value(); in TEST()
599 EXPECT_CALL(*mockDevice, getSupportedOperations_1_2(_, _)) in TEST()
613 const auto mockDevice = createMockDevice(); in TEST() local
614 const auto device = Device::create(kName, mockDevice).value(); in TEST()
615 EXPECT_CALL(*mockDevice, getSupportedOperations_1_2(_, _)) in TEST()
629 const auto mockDevice = createMockDevice(); in TEST() local
630 const auto device = Device::create(kName, mockDevice).value(); in TEST()
632 EXPECT_CALL(*mockDevice, prepareModel_1_2(_, _, _, _, _, _)) in TEST()
649 const auto mockDevice = createMockDevice(); in TEST() local
650 const auto device = Device::create(kName, mockDevice).value(); in TEST()
651 EXPECT_CALL(*mockDevice, prepareModel_1_2(_, _, _, _, _, _)) in TEST()
667 const auto mockDevice = createMockDevice(); in TEST() local
668 const auto device = Device::create(kName, mockDevice).value(); in TEST()
669 EXPECT_CALL(*mockDevice, prepareModel_1_2(_, _, _, _, _, _)) in TEST()
685 const auto mockDevice = createMockDevice(); in TEST() local
686 const auto device = Device::create(kName, mockDevice).value(); in TEST()
687 EXPECT_CALL(*mockDevice, prepareModel_1_2(_, _, _, _, _, _)) in TEST()
703 const auto mockDevice = createMockDevice(); in TEST() local
704 const auto device = Device::create(kName, mockDevice).value(); in TEST()
705 EXPECT_CALL(*mockDevice, prepareModel_1_2(_, _, _, _, _, _)) in TEST()
720 const auto mockDevice = createMockDevice(); in TEST() local
721 const auto device = Device::create(kName, mockDevice).value(); in TEST()
722 EXPECT_CALL(*mockDevice, prepareModel_1_2(_, _, _, _, _, _)) in TEST()
737 const auto mockDevice = createMockDevice(); in TEST() local
738 const auto device = Device::create(kName, mockDevice).value(); in TEST()
739 const auto ret = [&mockDevice]() -> hardware::Return<V1_0::ErrorStatus> { in TEST()
740 mockDevice->simulateCrash(); in TEST()
743 EXPECT_CALL(*mockDevice, prepareModel_1_2(_, _, _, _, _, _)) in TEST()
758 const auto mockDevice = createMockDevice(); in TEST() local
759 const auto device = Device::create(kName, mockDevice).value(); in TEST()
761 EXPECT_CALL(*mockDevice, prepareModelFromCache(_, _, _, _)) in TEST()
777 const auto mockDevice = createMockDevice(); in TEST() local
778 const auto device = Device::create(kName, mockDevice).value(); in TEST()
779 EXPECT_CALL(*mockDevice, prepareModelFromCache(_, _, _, _)) in TEST()
795 const auto mockDevice = createMockDevice(); in TEST() local
796 const auto device = Device::create(kName, mockDevice).value(); in TEST()
797 EXPECT_CALL(*mockDevice, prepareModelFromCache(_, _, _, _)) in TEST()
812 const auto mockDevice = createMockDevice(); in TEST() local
813 const auto device = Device::create(kName, mockDevice).value(); in TEST()
814 EXPECT_CALL(*mockDevice, prepareModelFromCache(_, _, _, _)) in TEST()
829 const auto mockDevice = createMockDevice(); in TEST() local
830 const auto device = Device::create(kName, mockDevice).value(); in TEST()
831 EXPECT_CALL(*mockDevice, prepareModelFromCache(_, _, _, _)) in TEST()
845 const auto mockDevice = createMockDevice(); in TEST() local
846 const auto device = Device::create(kName, mockDevice).value(); in TEST()
847 EXPECT_CALL(*mockDevice, prepareModelFromCache(_, _, _, _)) in TEST()
861 const auto mockDevice = createMockDevice(); in TEST() local
862 const auto device = Device::create(kName, mockDevice).value(); in TEST()
863 const auto ret = [&mockDevice]() -> hardware::Return<V1_0::ErrorStatus> { in TEST()
864 mockDevice->simulateCrash(); in TEST()
867 EXPECT_CALL(*mockDevice, prepareModelFromCache(_, _, _, _)) in TEST()
881 const auto mockDevice = createMockDevice(); in TEST() local
882 const auto device = Device::create(kName, mockDevice).value(); in TEST()