/hardware/interfaces/neuralnetworks/1.3/utils/test/ |
D | DeviceTest.cpp | 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() [all …]
|
D | MockDevice.h | 106 auto mockDevice = sp<MockDevice>::make(); in create() local 112 ON_CALL(*mockDevice, linkToDeathRet()).WillByDefault(testing::Invoke(ret)); in create() 116 EXPECT_CALL(*mockDevice, linkToDeathRet()).Times(testing::AnyNumber()); in create() 118 return mockDevice; in create()
|
/hardware/interfaces/neuralnetworks/1.2/utils/test/ |
D | DeviceTest.cpp | 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() [all …]
|
D | MockDevice.h | 84 auto mockDevice = sp<MockDevice>::make(); in create() local 90 ON_CALL(*mockDevice, linkToDeathRet()).WillByDefault(testing::Invoke(ret)); in create() 94 EXPECT_CALL(*mockDevice, linkToDeathRet()).Times(testing::AnyNumber()); in create() 96 return mockDevice; in create()
|
/hardware/interfaces/neuralnetworks/aidl/utils/test/ |
D | DeviceTest.cpp | 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() [all …]
|
/hardware/interfaces/neuralnetworks/1.1/utils/test/ |
D | DeviceTest.cpp | 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() [all …]
|
D | MockDevice.h | 62 auto mockDevice = sp<MockDevice>::make(); in create() local 68 ON_CALL(*mockDevice, linkToDeathRet()).WillByDefault(testing::Invoke(ret)); in create() 72 EXPECT_CALL(*mockDevice, linkToDeathRet()).Times(testing::AnyNumber()); in create() 74 return mockDevice; in create()
|
/hardware/interfaces/neuralnetworks/1.0/utils/test/ |
D | DeviceTest.cpp | 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() [all …]
|
D | MockDevice.h | 53 auto mockDevice = sp<MockDevice>::make(); in create() local 59 ON_CALL(*mockDevice, linkToDeathRet()).WillByDefault(testing::Invoke(ret)); in create() 63 EXPECT_CALL(*mockDevice, linkToDeathRet()).Times(testing::AnyNumber()); in create() 65 return mockDevice; in create()
|
/hardware/interfaces/neuralnetworks/utils/common/test/ |
D | ResilientDeviceTest.cpp | 52 auto mockDevice = std::make_shared<const nn::MockDevice>(); in createConfiguredMockDevice() local 65 ON_CALL(*mockDevice, getName()).WillByDefault(getName_ret); in createConfiguredMockDevice() 66 ON_CALL(*mockDevice, getVersionString()).WillByDefault(getVersionString_ret); in createConfiguredMockDevice() 67 ON_CALL(*mockDevice, getFeatureLevel()).WillByDefault(Return(kFeatureLevel)); in createConfiguredMockDevice() 68 ON_CALL(*mockDevice, getType()).WillByDefault(Return(kDeviceType)); in createConfiguredMockDevice() 69 ON_CALL(*mockDevice, getSupportedExtensions()).WillByDefault(getSupportedExtensions_ret); in createConfiguredMockDevice() 70 ON_CALL(*mockDevice, getCapabilities()).WillByDefault(getCapabilities_ret); in createConfiguredMockDevice() 71 ON_CALL(*mockDevice, getNumberOfCacheFilesNeeded()) in createConfiguredMockDevice() 76 EXPECT_CALL(*mockDevice, getName()).Times(testing::AnyNumber()); in createConfiguredMockDevice() 77 EXPECT_CALL(*mockDevice, getVersionString()).Times(testing::AnyNumber()); in createConfiguredMockDevice() [all …]
|