Lines Matching refs:mockDevice

67     const auto mockDevice = MockDevice::create();  in createMockDevice()  local
70 ON_CALL(*mockDevice, getVersionString(_)) in createMockDevice()
72 ON_CALL(*mockDevice, getType(_)) in createMockDevice()
75 ON_CALL(*mockDevice, getSupportedExtensions(_)) in createMockDevice()
78 ON_CALL(*mockDevice, getNumberOfCacheFilesNeeded(_)) in createMockDevice()
81 ON_CALL(*mockDevice, getCapabilities(_)) in createMockDevice()
93 EXPECT_CALL(*mockDevice, getVersionString(_)).Times(testing::AnyNumber()); in createMockDevice()
94 EXPECT_CALL(*mockDevice, getType(_)).Times(testing::AnyNumber()); in createMockDevice()
95 EXPECT_CALL(*mockDevice, getSupportedExtensions(_)).Times(testing::AnyNumber()); in createMockDevice()
96 EXPECT_CALL(*mockDevice, getNumberOfCacheFilesNeeded(_)).Times(testing::AnyNumber()); in createMockDevice()
97 EXPECT_CALL(*mockDevice, getCapabilities(_)).Times(testing::AnyNumber()); in createMockDevice()
99 return mockDevice; in createMockDevice()
186 const auto mockDevice = createMockDevice(); in TEST_P() local
187 EXPECT_CALL(*mockDevice, getVersionString(_)) in TEST_P()
192 const auto result = Device::create(kName, mockDevice, kVersion); in TEST_P()
201 const auto mockDevice = createMockDevice(); in TEST_P() local
202 EXPECT_CALL(*mockDevice, getVersionString(_)) in TEST_P()
207 const auto result = Device::create(kName, mockDevice, kVersion); in TEST_P()
216 const auto mockDevice = createMockDevice(); in TEST_P() local
217 EXPECT_CALL(*mockDevice, getVersionString(_)) in TEST_P()
222 const auto result = Device::create(kName, mockDevice, kVersion); in TEST_P()
231 const auto mockDevice = createMockDevice(); in TEST_P() local
232 EXPECT_CALL(*mockDevice, getType(_)).Times(1).WillOnce(InvokeWithoutArgs(makeGeneralFailure)); in TEST_P()
235 const auto result = Device::create(kName, mockDevice, kVersion); in TEST_P()
244 const auto mockDevice = createMockDevice(); in TEST_P() local
245 EXPECT_CALL(*mockDevice, getType(_)) in TEST_P()
250 const auto result = Device::create(kName, mockDevice, kVersion); in TEST_P()
259 const auto mockDevice = createMockDevice(); in TEST_P() local
260 EXPECT_CALL(*mockDevice, getType(_)) in TEST_P()
265 const auto result = Device::create(kName, mockDevice, kVersion); in TEST_P()
274 const auto mockDevice = createMockDevice(); in TEST_P() local
275 EXPECT_CALL(*mockDevice, getSupportedExtensions(_)) in TEST_P()
280 const auto result = Device::create(kName, mockDevice, kVersion); in TEST_P()
289 const auto mockDevice = createMockDevice(); in TEST_P() local
290 EXPECT_CALL(*mockDevice, getSupportedExtensions(_)) in TEST_P()
295 const auto result = Device::create(kName, mockDevice, kVersion); in TEST_P()
304 const auto mockDevice = createMockDevice(); in TEST_P() local
305 EXPECT_CALL(*mockDevice, getSupportedExtensions(_)) in TEST_P()
310 const auto result = Device::create(kName, mockDevice, kVersion); in TEST_P()
319 const auto mockDevice = createMockDevice(); in TEST_P() local
320 EXPECT_CALL(*mockDevice, getNumberOfCacheFilesNeeded(_)).Times(1); in TEST_P()
323 const auto result = Device::create(kName, mockDevice, kVersion); in TEST_P()
334 const auto mockDevice = createMockDevice(); in TEST_P() local
335 EXPECT_CALL(*mockDevice, getNumberOfCacheFilesNeeded(_)) in TEST_P()
340 const auto result = Device::create(kName, mockDevice, kVersion); in TEST_P()
349 const auto mockDevice = createMockDevice(); in TEST_P() local
350 EXPECT_CALL(*mockDevice, getNumberOfCacheFilesNeeded(_)) in TEST_P()
358 const auto result = Device::create(kName, mockDevice, kVersion); in TEST_P()
367 const auto mockDevice = createMockDevice(); in TEST_P() local
368 EXPECT_CALL(*mockDevice, getNumberOfCacheFilesNeeded(_)) in TEST_P()
376 const auto result = Device::create(kName, mockDevice, kVersion); in TEST_P()
385 const auto mockDevice = createMockDevice(); in TEST_P() local
386 EXPECT_CALL(*mockDevice, getNumberOfCacheFilesNeeded(_)) in TEST_P()
391 const auto result = Device::create(kName, mockDevice, kVersion); in TEST_P()
400 const auto mockDevice = createMockDevice(); in TEST_P() local
401 EXPECT_CALL(*mockDevice, getNumberOfCacheFilesNeeded(_)) in TEST_P()
406 const auto result = Device::create(kName, mockDevice, kVersion); in TEST_P()
415 const auto mockDevice = createMockDevice(); in TEST_P() local
416 EXPECT_CALL(*mockDevice, getCapabilities(_)) in TEST_P()
421 const auto result = Device::create(kName, mockDevice, kVersion); in TEST_P()
430 const auto mockDevice = createMockDevice(); in TEST_P() local
431 EXPECT_CALL(*mockDevice, getCapabilities(_)) in TEST_P()
436 const auto result = Device::create(kName, mockDevice, kVersion); in TEST_P()
445 const auto mockDevice = createMockDevice(); in TEST_P() local
446 EXPECT_CALL(*mockDevice, getCapabilities(_)) in TEST_P()
451 const auto result = Device::create(kName, mockDevice, kVersion); in TEST_P()
460 const auto mockDevice = createMockDevice(); in TEST_P() local
461 const auto device = Device::create(kName, mockDevice, kVersion).value(); in TEST_P()
472 const auto mockDevice = createMockDevice(); in TEST_P() local
473 const auto device = Device::create(kName, mockDevice, kVersion).value(); in TEST_P()
484 const auto mockDevice = createMockDevice(); in TEST_P() local
485 EXPECT_CALL(*mockDevice, getVersionString(_)).Times(1); in TEST_P()
486 EXPECT_CALL(*mockDevice, getType(_)).Times(1); in TEST_P()
487 EXPECT_CALL(*mockDevice, getSupportedExtensions(_)).Times(1); in TEST_P()
488 EXPECT_CALL(*mockDevice, getNumberOfCacheFilesNeeded(_)).Times(1); in TEST_P()
489 EXPECT_CALL(*mockDevice, getCapabilities(_)).Times(1); in TEST_P()
491 const auto result = Device::create(kName, mockDevice, kVersion); in TEST_P()
506 const auto mockDevice = createMockDevice(); in TEST_P() local
507 const auto device = Device::create(kName, mockDevice, kVersion).value(); in TEST_P()
508 EXPECT_CALL(*mockDevice, getSupportedOperations(_, _)) in TEST_P()
527 const auto mockDevice = createMockDevice(); in TEST_P() local
528 const auto device = Device::create(kName, mockDevice, kVersion).value(); in TEST_P()
529 EXPECT_CALL(*mockDevice, getSupportedOperations(_, _)) in TEST_P()
543 const auto mockDevice = createMockDevice(); in TEST_P() local
544 const auto device = Device::create(kName, mockDevice, kVersion).value(); in TEST_P()
545 EXPECT_CALL(*mockDevice, getSupportedOperations(_, _)) in TEST_P()
559 const auto mockDevice = createMockDevice(); in TEST_P() local
560 const auto device = Device::create(kName, mockDevice, kVersion).value(); in TEST_P()
561 EXPECT_CALL(*mockDevice, getSupportedOperations(_, _)) in TEST_P()
577 const auto mockDevice = createMockDevice(); in TEST_P() local
578 const auto device = Device::create(kName, mockDevice, kVersion).value(); in TEST_P()
580 EXPECT_CALL(*mockDevice, prepareModel(_, _, _, _, _, _, _, _)) in TEST_P()
599 const auto mockDevice = createMockDevice(); in TEST_P() local
600 const auto device = Device::create(kName, mockDevice, kVersion).value(); in TEST_P()
601 EXPECT_CALL(*mockDevice, prepareModel(_, _, _, _, _, _, _, _)) in TEST_P()
619 const auto mockDevice = createMockDevice(); in TEST_P() local
620 const auto device = Device::create(kName, mockDevice, kVersion).value(); in TEST_P()
621 EXPECT_CALL(*mockDevice, prepareModel(_, _, _, _, _, _, _, _)) in TEST_P()
639 const auto mockDevice = createMockDevice(); in TEST_P() local
640 const auto device = Device::create(kName, mockDevice, kVersion).value(); in TEST_P()
641 EXPECT_CALL(*mockDevice, prepareModel(_, _, _, _, _, _, _, _)) in TEST_P()
659 const auto mockDevice = createMockDevice(); in TEST_P() local
660 const auto device = Device::create(kName, mockDevice, kVersion).value(); in TEST_P()
661 EXPECT_CALL(*mockDevice, prepareModel(_, _, _, _, _, _, _, _)) in TEST_P()
678 const auto mockDevice = createMockDevice(); in TEST_P() local
679 const auto device = Device::create(kName, mockDevice, kVersion).value(); in TEST_P()
680 EXPECT_CALL(*mockDevice, prepareModel(_, _, _, _, _, _, _, _)) in TEST_P()
697 const auto mockDevice = createMockDevice(); in TEST_P() local
698 const auto device = Device::create(kName, mockDevice, kVersion).value(); in TEST_P()
704 EXPECT_CALL(*mockDevice, prepareModel(_, _, _, _, _, _, _, _)) in TEST_P()
721 const auto mockDevice = createMockDevice(); in TEST_P() local
722 const auto device = Device::create(kName, mockDevice, kVersion).value(); in TEST_P()
724 EXPECT_CALL(*mockDevice, prepareModelWithConfig(_, _, _)) in TEST_P()
744 const auto mockDevice = createMockDevice(); in TEST_P() local
745 const auto device = Device::create(kName, mockDevice, kVersion).value(); in TEST_P()
746 EXPECT_CALL(*mockDevice, prepareModelWithConfig(_, _, _)) in TEST_P()
765 const auto mockDevice = createMockDevice(); in TEST_P() local
766 const auto device = Device::create(kName, mockDevice, kVersion).value(); in TEST_P()
767 EXPECT_CALL(*mockDevice, prepareModelWithConfig(_, _, _)) in TEST_P()
786 const auto mockDevice = createMockDevice(); in TEST_P() local
787 const auto device = Device::create(kName, mockDevice, kVersion).value(); in TEST_P()
788 EXPECT_CALL(*mockDevice, prepareModelWithConfig(_, _, _)) in TEST_P()
807 const auto mockDevice = createMockDevice(); in TEST_P() local
808 const auto device = Device::create(kName, mockDevice, kVersion).value(); in TEST_P()
809 EXPECT_CALL(*mockDevice, prepareModelWithConfig(_, _, _)) in TEST_P()
827 const auto mockDevice = createMockDevice(); in TEST_P() local
828 const auto device = Device::create(kName, mockDevice, kVersion).value(); in TEST_P()
829 EXPECT_CALL(*mockDevice, prepareModelWithConfig(_, _, _)) in TEST_P()
847 const auto mockDevice = createMockDevice(); in TEST_P() local
848 const auto device = Device::create(kName, mockDevice, kVersion).value(); in TEST_P()
854 EXPECT_CALL(*mockDevice, prepareModelWithConfig(_, _, _)) in TEST_P()
870 const auto mockDevice = createMockDevice(); in TEST_P() local
871 const auto device = Device::create(kName, mockDevice, kVersion).value(); in TEST_P()
873 EXPECT_CALL(*mockDevice, prepareModelFromCache(_, _, _, _, _)) in TEST_P()
889 const auto mockDevice = createMockDevice(); in TEST_P() local
890 const auto device = Device::create(kName, mockDevice, kVersion).value(); in TEST_P()
891 EXPECT_CALL(*mockDevice, prepareModelFromCache(_, _, _, _, _)) in TEST_P()
906 const auto mockDevice = createMockDevice(); in TEST_P() local
907 const auto device = Device::create(kName, mockDevice, kVersion).value(); in TEST_P()
908 EXPECT_CALL(*mockDevice, prepareModelFromCache(_, _, _, _, _)) in TEST_P()
923 const auto mockDevice = createMockDevice(); in TEST_P() local
924 const auto device = Device::create(kName, mockDevice, kVersion).value(); in TEST_P()
925 EXPECT_CALL(*mockDevice, prepareModelFromCache(_, _, _, _, _)) in TEST_P()
940 const auto mockDevice = createMockDevice(); in TEST_P() local
941 const auto device = Device::create(kName, mockDevice, kVersion).value(); in TEST_P()
942 EXPECT_CALL(*mockDevice, prepareModelFromCache(_, _, _, _, _)) in TEST_P()
956 const auto mockDevice = createMockDevice(); in TEST_P() local
957 const auto device = Device::create(kName, mockDevice, kVersion).value(); in TEST_P()
958 EXPECT_CALL(*mockDevice, prepareModelFromCache(_, _, _, _, _)) in TEST_P()
972 const auto mockDevice = createMockDevice(); in TEST_P() local
973 const auto device = Device::create(kName, mockDevice, kVersion).value(); in TEST_P()
979 EXPECT_CALL(*mockDevice, prepareModelFromCache(_, _, _, _, _)) in TEST_P()
993 const auto mockDevice = createMockDevice(); in TEST_P() local
994 const auto device = Device::create(kName, mockDevice, kVersion).value(); in TEST_P()
996 EXPECT_CALL(*mockDevice, allocate(_, _, _, _, _)) in TEST_P()
1011 const auto mockDevice = createMockDevice(); in TEST_P() local
1012 const auto device = Device::create(kName, mockDevice, kVersion).value(); in TEST_P()
1013 EXPECT_CALL(*mockDevice, allocate(_, _, _, _, _)) in TEST_P()
1027 const auto mockDevice = createMockDevice(); in TEST_P() local
1028 const auto device = Device::create(kName, mockDevice, kVersion).value(); in TEST_P()
1029 EXPECT_CALL(*mockDevice, allocate(_, _, _, _, _)) in TEST_P()
1043 const auto mockDevice = createMockDevice(); in TEST_P() local
1044 const auto device = Device::create(kName, mockDevice, kVersion).value(); in TEST_P()
1045 EXPECT_CALL(*mockDevice, allocate(_, _, _, _, _)) in TEST_P()