Lines Matching refs:mockDevice

67     const auto mockDevice = MockDevice::create();  in createMockDevice()  local
86 ON_CALL(*mockDevice, getVersionString(_)).WillByDefault(Invoke(getVersionString_ret)); in createMockDevice()
87 ON_CALL(*mockDevice, getType(_)).WillByDefault(Invoke(getType_ret)); in createMockDevice()
88 ON_CALL(*mockDevice, getSupportedExtensions(_)) in createMockDevice()
90 ON_CALL(*mockDevice, getNumberOfCacheFilesNeeded(_)) in createMockDevice()
92 ON_CALL(*mockDevice, getCapabilities_1_3(_)).WillByDefault(Invoke(getCapabilities_ret)); in createMockDevice()
95 EXPECT_CALL(*mockDevice, getCapabilities(_)).Times(0); in createMockDevice()
96 EXPECT_CALL(*mockDevice, getCapabilities_1_1(_)).Times(0); in createMockDevice()
97 EXPECT_CALL(*mockDevice, getCapabilities_1_2(_)).Times(0); in createMockDevice()
98 EXPECT_CALL(*mockDevice, getSupportedOperations(_, _)).Times(0); in createMockDevice()
99 EXPECT_CALL(*mockDevice, getSupportedOperations_1_1(_, _)).Times(0); in createMockDevice()
100 EXPECT_CALL(*mockDevice, prepareModel(_, _)).Times(0); in createMockDevice()
101 EXPECT_CALL(*mockDevice, prepareModel_1_1(_, _, _)).Times(0); in createMockDevice()
102 EXPECT_CALL(*mockDevice, getSupportedOperations_1_2(_, _)).Times(0); in createMockDevice()
103 EXPECT_CALL(*mockDevice, prepareModel_1_2(_, _, _, _, _, _)).Times(0); in createMockDevice()
104 EXPECT_CALL(*mockDevice, prepareModelFromCache(_, _, _, _)).Times(0); in createMockDevice()
108 EXPECT_CALL(*mockDevice, getVersionString(_)).Times(testing::AnyNumber()); in createMockDevice()
109 EXPECT_CALL(*mockDevice, getType(_)).Times(testing::AnyNumber()); in createMockDevice()
110 EXPECT_CALL(*mockDevice, getSupportedExtensions(_)).Times(testing::AnyNumber()); in createMockDevice()
111 EXPECT_CALL(*mockDevice, getNumberOfCacheFilesNeeded(_)).Times(testing::AnyNumber()); in createMockDevice()
112 EXPECT_CALL(*mockDevice, getCapabilities_1_3(_)).Times(testing::AnyNumber()); in createMockDevice()
114 return mockDevice; in createMockDevice()
185 const auto mockDevice = createMockDevice(); in TEST() local
187 EXPECT_CALL(*mockDevice, getVersionString(_)).Times(1).WillOnce(Invoke(ret)); in TEST()
190 const auto result = Device::create(kName, mockDevice); in TEST()
199 const auto mockDevice = createMockDevice(); in TEST() local
200 EXPECT_CALL(*mockDevice, getVersionString(_)) in TEST()
205 const auto result = Device::create(kName, mockDevice); in TEST()
214 const auto mockDevice = createMockDevice(); in TEST() local
215 EXPECT_CALL(*mockDevice, getVersionString(_)) in TEST()
220 const auto result = Device::create(kName, mockDevice); in TEST()
229 const auto mockDevice = createMockDevice(); in TEST() local
232 EXPECT_CALL(*mockDevice, getType(_)).Times(1).WillOnce(Invoke(ret)); in TEST()
235 const auto result = Device::create(kName, mockDevice); in TEST()
244 const auto mockDevice = createMockDevice(); in TEST() local
245 EXPECT_CALL(*mockDevice, getType(_)) in TEST()
250 const auto result = Device::create(kName, mockDevice); in TEST()
259 const auto mockDevice = createMockDevice(); in TEST() local
260 EXPECT_CALL(*mockDevice, getType(_)) in TEST()
265 const auto result = Device::create(kName, mockDevice); in TEST()
274 const auto mockDevice = createMockDevice(); in TEST() local
277 EXPECT_CALL(*mockDevice, getSupportedExtensions(_)).Times(1).WillOnce(Invoke(ret)); in TEST()
280 const auto result = Device::create(kName, mockDevice); in TEST()
289 const auto mockDevice = createMockDevice(); in TEST() local
290 EXPECT_CALL(*mockDevice, getSupportedExtensions(_)) in TEST()
295 const auto result = Device::create(kName, mockDevice); in TEST()
304 const auto mockDevice = createMockDevice(); in TEST() local
305 EXPECT_CALL(*mockDevice, getSupportedExtensions(_)) in TEST()
310 const auto result = Device::create(kName, mockDevice); in TEST()
319 const auto mockDevice = createMockDevice(); in TEST() local
322 EXPECT_CALL(*mockDevice, getNumberOfCacheFilesNeeded(_)).Times(1).WillOnce(Invoke(ret)); in TEST()
325 const auto result = Device::create(kName, mockDevice); in TEST()
334 const auto mockDevice = createMockDevice(); in TEST() local
337 EXPECT_CALL(*mockDevice, getNumberOfCacheFilesNeeded(_)).Times(1).WillOnce(Invoke(ret)); in TEST()
340 const auto result = Device::create(kName, mockDevice); in TEST()
349 const auto mockDevice = createMockDevice(); in TEST() local
352 EXPECT_CALL(*mockDevice, getNumberOfCacheFilesNeeded(_)).Times(1).WillOnce(Invoke(ret)); in TEST()
355 const auto result = Device::create(kName, mockDevice); in TEST()
364 const auto mockDevice = createMockDevice(); in TEST() local
365 EXPECT_CALL(*mockDevice, getNumberOfCacheFilesNeeded(_)) in TEST()
370 const auto result = Device::create(kName, mockDevice); in TEST()
379 const auto mockDevice = createMockDevice(); in TEST() local
380 EXPECT_CALL(*mockDevice, getNumberOfCacheFilesNeeded(_)) in TEST()
385 const auto result = Device::create(kName, mockDevice); in TEST()
394 const auto mockDevice = createMockDevice(); in TEST() local
403 EXPECT_CALL(*mockDevice, getCapabilities_1_3(_)).Times(1).WillOnce(Invoke(ret)); in TEST()
406 const auto result = Device::create(kName, mockDevice); in TEST()
415 const auto mockDevice = createMockDevice(); in TEST() local
416 EXPECT_CALL(*mockDevice, getCapabilities_1_3(_)) in TEST()
421 const auto result = Device::create(kName, mockDevice); in TEST()
430 const auto mockDevice = createMockDevice(); in TEST() local
431 EXPECT_CALL(*mockDevice, getCapabilities_1_3(_)) in TEST()
436 const auto result = Device::create(kName, mockDevice); in TEST()
445 const auto mockDevice = createMockDevice(); in TEST() local
447 EXPECT_CALL(*mockDevice, linkToDeathRet()).Times(1).WillOnce(InvokeWithoutArgs(ret)); in TEST()
450 const auto result = Device::create(kName, mockDevice); in TEST()
459 const auto mockDevice = createMockDevice(); in TEST() local
460 EXPECT_CALL(*mockDevice, linkToDeathRet()) in TEST()
465 const auto result = Device::create(kName, mockDevice); in TEST()
474 const auto mockDevice = createMockDevice(); in TEST() local
475 EXPECT_CALL(*mockDevice, linkToDeathRet()) in TEST()
480 const auto result = Device::create(kName, mockDevice); in TEST()
489 const auto mockDevice = createMockDevice(); in TEST() local
490 const auto device = Device::create(kName, mockDevice).value(); in TEST()
501 const auto mockDevice = createMockDevice(); in TEST() local
502 const auto device = Device::create(kName, mockDevice).value(); in TEST()
513 const auto mockDevice = createMockDevice(); in TEST() local
514 EXPECT_CALL(*mockDevice, getVersionString(_)).Times(1); in TEST()
515 EXPECT_CALL(*mockDevice, getType(_)).Times(1); in TEST()
516 EXPECT_CALL(*mockDevice, getSupportedExtensions(_)).Times(1); in TEST()
517 EXPECT_CALL(*mockDevice, getNumberOfCacheFilesNeeded(_)).Times(1); in TEST()
518 EXPECT_CALL(*mockDevice, getCapabilities_1_3(_)).Times(1); in TEST()
520 const auto result = Device::create(kName, mockDevice); in TEST()
535 const auto mockDevice = createMockDevice(); in TEST() local
537 EXPECT_CALL(*mockDevice, ping()).Times(1).WillOnce(InvokeWithoutArgs(ret)); in TEST()
538 const auto device = Device::create(kName, mockDevice).value(); in TEST()
550 const auto mockDevice = createMockDevice(); in TEST() local
551 EXPECT_CALL(*mockDevice, ping()) in TEST()
554 const auto device = Device::create(kName, mockDevice).value(); in TEST()
566 const auto mockDevice = createMockDevice(); in TEST() local
567 EXPECT_CALL(*mockDevice, ping()).Times(1).WillOnce(InvokeWithoutArgs(makeDeadObjectFailure)); in TEST()
568 const auto device = Device::create(kName, mockDevice).value(); in TEST()
580 const auto mockDevice = createMockDevice(); in TEST() local
581 const auto device = Device::create(kName, mockDevice).value(); in TEST()
586 EXPECT_CALL(*mockDevice, getSupportedOperations_1_3(_, _)).Times(1).WillOnce(Invoke(ret)); in TEST()
601 const auto mockDevice = createMockDevice(); in TEST() local
602 const auto device = Device::create(kName, mockDevice).value(); in TEST()
607 EXPECT_CALL(*mockDevice, getSupportedOperations_1_3(_, _)).Times(1).WillOnce(Invoke(ret)); in TEST()
619 const auto mockDevice = createMockDevice(); in TEST() local
620 const auto device = Device::create(kName, mockDevice).value(); in TEST()
621 EXPECT_CALL(*mockDevice, getSupportedOperations_1_3(_, _)) in TEST()
635 const auto mockDevice = createMockDevice(); in TEST() local
636 const auto device = Device::create(kName, mockDevice).value(); in TEST()
637 EXPECT_CALL(*mockDevice, getSupportedOperations_1_3(_, _)) in TEST()
651 const auto mockDevice = createMockDevice(); in TEST() local
652 const auto device = Device::create(kName, mockDevice).value(); in TEST()
654 EXPECT_CALL(*mockDevice, prepareModel_1_3(_, _, _, _, _, _, _, _)) in TEST()
671 const auto mockDevice = createMockDevice(); in TEST() local
672 const auto device = Device::create(kName, mockDevice).value(); in TEST()
673 EXPECT_CALL(*mockDevice, prepareModel_1_3(_, _, _, _, _, _, _, _)) in TEST()
689 const auto mockDevice = createMockDevice(); in TEST() local
690 const auto device = Device::create(kName, mockDevice).value(); in TEST()
691 EXPECT_CALL(*mockDevice, prepareModel_1_3(_, _, _, _, _, _, _, _)) in TEST()
707 const auto mockDevice = createMockDevice(); in TEST() local
708 const auto device = Device::create(kName, mockDevice).value(); in TEST()
709 EXPECT_CALL(*mockDevice, prepareModel_1_3(_, _, _, _, _, _, _, _)) in TEST()
725 const auto mockDevice = createMockDevice(); in TEST() local
726 const auto device = Device::create(kName, mockDevice).value(); in TEST()
727 EXPECT_CALL(*mockDevice, prepareModel_1_3(_, _, _, _, _, _, _, _)) in TEST()
742 const auto mockDevice = createMockDevice(); in TEST() local
743 const auto device = Device::create(kName, mockDevice).value(); in TEST()
744 EXPECT_CALL(*mockDevice, prepareModel_1_3(_, _, _, _, _, _, _, _)) in TEST()
759 const auto mockDevice = createMockDevice(); in TEST() local
760 const auto device = Device::create(kName, mockDevice).value(); in TEST()
761 const auto ret = [&mockDevice]() -> hardware::Return<V1_3::ErrorStatus> { in TEST()
762 mockDevice->simulateCrash(); in TEST()
765 EXPECT_CALL(*mockDevice, prepareModel_1_3(_, _, _, _, _, _, _, _)) in TEST()
780 const auto mockDevice = createMockDevice(); in TEST() local
781 const auto device = Device::create(kName, mockDevice).value(); in TEST()
783 EXPECT_CALL(*mockDevice, prepareModelFromCache_1_3(_, _, _, _, _)) in TEST()
799 const auto mockDevice = createMockDevice(); in TEST() local
800 const auto device = Device::create(kName, mockDevice).value(); in TEST()
801 EXPECT_CALL(*mockDevice, prepareModelFromCache_1_3(_, _, _, _, _)) in TEST()
817 const auto mockDevice = createMockDevice(); in TEST() local
818 const auto device = Device::create(kName, mockDevice).value(); in TEST()
819 EXPECT_CALL(*mockDevice, prepareModelFromCache_1_3(_, _, _, _, _)) in TEST()
834 const auto mockDevice = createMockDevice(); in TEST() local
835 const auto device = Device::create(kName, mockDevice).value(); in TEST()
836 EXPECT_CALL(*mockDevice, prepareModelFromCache_1_3(_, _, _, _, _)) in TEST()
851 const auto mockDevice = createMockDevice(); in TEST() local
852 const auto device = Device::create(kName, mockDevice).value(); in TEST()
853 EXPECT_CALL(*mockDevice, prepareModelFromCache_1_3(_, _, _, _, _)) in TEST()
867 const auto mockDevice = createMockDevice(); in TEST() local
868 const auto device = Device::create(kName, mockDevice).value(); in TEST()
869 EXPECT_CALL(*mockDevice, prepareModelFromCache_1_3(_, _, _, _, _)) in TEST()
883 const auto mockDevice = createMockDevice(); in TEST() local
884 const auto device = Device::create(kName, mockDevice).value(); in TEST()
885 const auto ret = [&mockDevice]() -> hardware::Return<V1_3::ErrorStatus> { in TEST()
886 mockDevice->simulateCrash(); in TEST()
889 EXPECT_CALL(*mockDevice, prepareModelFromCache_1_3(_, _, _, _, _)) in TEST()
903 const auto mockDevice = createMockDevice(); in TEST() local
904 const auto device = Device::create(kName, mockDevice).value(); in TEST()
907 EXPECT_CALL(*mockDevice, allocate(_, _, _, _, _)) in TEST()
922 const auto mockDevice = createMockDevice(); in TEST() local
923 const auto device = Device::create(kName, mockDevice).value(); in TEST()
924 EXPECT_CALL(*mockDevice, allocate(_, _, _, _, _)) in TEST()
938 const auto mockDevice = createMockDevice(); in TEST() local
939 const auto device = Device::create(kName, mockDevice).value(); in TEST()
940 EXPECT_CALL(*mockDevice, allocate(_, _, _, _, _)) in TEST()
954 const auto mockDevice = createMockDevice(); in TEST() local
955 const auto device = Device::create(kName, mockDevice).value(); in TEST()
956 EXPECT_CALL(*mockDevice, allocate(_, _, _, _, _)) in TEST()