Home
last modified time | relevance | path

Searched refs:MockIDevice (Results 1 – 15 of 15) sorted by relevance

/ohos5.0/foundation/ai/neural_network_runtime/test/unittest/components/nn_backend/
H A Dnn_backend_test.cpp80 std::shared_ptr<MockIDevice> device = std::make_shared<MockIDevice>();
108 std::shared_ptr<MockIDevice> device = std::make_shared<MockIDevice>();
129 std::shared_ptr<MockIDevice> device = std::make_shared<MockIDevice>();
152 std::shared_ptr<MockIDevice> device = std::make_shared<MockIDevice>();
178 std::shared_ptr<MockIDevice> device = std::make_shared<MockIDevice>();
219 std::shared_ptr<MockIDevice> device = std::make_shared<MockIDevice>();
239 std::shared_ptr<MockIDevice> device = std::make_shared<MockIDevice>();
274 std::shared_ptr<MockIDevice> device = std::make_shared<MockIDevice>();
294 std::shared_ptr<MockIDevice> device = std::make_shared<MockIDevice>();
330 std::shared_ptr<MockIDevice> device = std::make_shared<MockIDevice>();
[all …]
/ohos5.0/foundation/ai/neural_network_runtime/test/unittest/components/nn_compiler/
H A Dnn_compiler_test.cpp201 std::shared_ptr<MockIDevice> device = std::make_shared<MockIDevice>();
218 std::shared_ptr<MockIDevice> device = std::make_shared<MockIDevice>();
235 std::shared_ptr<MockIDevice> device = std::make_shared<MockIDevice>();
275 std::shared_ptr<MockIDevice> device = std::make_shared<MockIDevice>();
300 std::shared_ptr<MockIDevice> device = std::make_shared<MockIDevice>();
325 std::shared_ptr<MockIDevice> device = std::make_shared<MockIDevice>();
353 std::shared_ptr<MockIDevice> device = std::make_shared<MockIDevice>();
393 std::shared_ptr<MockIDevice> device = std::make_shared<MockIDevice>();
417 std::shared_ptr<MockIDevice> device = std::make_shared<MockIDevice>();
440 std::shared_ptr<MockIDevice> device = std::make_shared<MockIDevice>();
[all …]
/ohos5.0/foundation/ai/neural_network_runtime/test/unittest/components/v2_0/hdi_device/
H A Dhdi_device_test.cpp186 …OHOS::sptr<V2_0::MockIDevice> sp = OHOS::sptr<V2_0::MockIDevice>(new (std::nothrow) V2_0::MockIDev… in PrepareModel()
212 …OHOS::sptr<V2_1::MockIDevice> sp = OHOS::sptr<V2_1::MockIDevice>(new (std::nothrow) V2_1::MockIDev… in PrepareModelv2()
965 …OHOS::sptr<V2_0::MockIDevice> sp = OHOS::sptr<V2_0::MockIDevice>(new (std::nothrow) V2_0::MockIDev…
993 …OHOS::sptr<V2_0::MockIDevice> sp = OHOS::sptr<V2_0::MockIDevice>(new (std::nothrow) V2_0::MockIDev…
1024 …OHOS::sptr<V2_0::MockIDevice> sp = OHOS::sptr<V2_0::MockIDevice>(new (std::nothrow) V2_0::MockIDev…
1079 …OHOS::sptr<V2_0::MockIDevice> sp = OHOS::sptr<V2_0::MockIDevice>(new (std::nothrow) V2_0::MockIDev…
1117 …OHOS::sptr<V2_0::MockIDevice> sp = OHOS::sptr<V2_0::MockIDevice>(new (std::nothrow) V2_0::MockIDev…
1155 …OHOS::sptr<V2_0::MockIDevice> sp = OHOS::sptr<V2_0::MockIDevice>(new (std::nothrow) V2_0::MockIDev…
1193 …OHOS::sptr<V2_0::MockIDevice> sp = OHOS::sptr<V2_0::MockIDevice>(new (std::nothrow) V2_0::MockIDev…
2337 …OHOS::sptr<V2_1::MockIDevice> sp = OHOS::sptr<V2_1::MockIDevice>(new (std::nothrow) V2_1::MockIDev…
[all …]
/ohos5.0/foundation/ai/neural_network_runtime/test/unittest/components/v2_0/device_manager/
H A Ddevice_manager_test.cpp32 void MockInit(OHOS::sptr<V2_0::MockIDevice> device, const std::vector<int32_t>& typeVect,
36 void DeviceManagerTest::MockInit(OHOS::sptr<V2_0::MockIDevice> device, const std::vector<int32_t>& … in MockInit()
121 …OHOS::sptr<V2_0::MockIDevice> device = OHOS::sptr<V2_0::MockIDevice>(new (std::nothrow) V2_0::Mock…
157 …OHOS::sptr<V2_0::MockIDevice> device = OHOS::sptr<V2_0::MockIDevice>(new (std::nothrow) V2_0::Mock…
179 …OHOS::sptr<V2_0::MockIDevice> device = OHOS::sptr<V2_0::MockIDevice>(new (std::nothrow) V2_0::Mock…
201 …OHOS::sptr<V2_0::MockIDevice> device = OHOS::sptr<V2_0::MockIDevice>(new (std::nothrow) V2_0::Mock…
/ohos5.0/foundation/ai/neural_network_runtime/test/unittest/components/v1_0/hdi_device/
H A Dhdi_device_test.cpp97 …OHOS::sptr<V1_0::MockIDevice> sp = OHOS::sptr<V1_0::MockIDevice>(new (std::nothrow) V1_0::MockIDev… in PrepareModel()
144 EXPECT_CALL(*((V1_0::MockIDevice *)device.GetRefPtr()), GetDeviceName(::testing::_))
165 EXPECT_CALL(*((V1_0::MockIDevice *)device.GetRefPtr()), GetDeviceName(::testing::_))
182 EXPECT_CALL(*((V1_0::MockIDevice *)device.GetRefPtr()), GetVendorName(::testing::_))
823 …OHOS::sptr<V1_0::MockIDevice> sp = OHOS::sptr<V1_0::MockIDevice>(new (std::nothrow) V1_0::MockIDev…
851 …OHOS::sptr<V1_0::MockIDevice> sp = OHOS::sptr<V1_0::MockIDevice>(new (std::nothrow) V1_0::MockIDev…
882 …OHOS::sptr<V1_0::MockIDevice> sp = OHOS::sptr<V1_0::MockIDevice>(new (std::nothrow) V1_0::MockIDev…
937 …OHOS::sptr<V1_0::MockIDevice> sp = OHOS::sptr<V1_0::MockIDevice>(new (std::nothrow) V1_0::MockIDev…
975 …OHOS::sptr<V1_0::MockIDevice> sp = OHOS::sptr<V1_0::MockIDevice>(new (std::nothrow) V1_0::MockIDev…
1013 …OHOS::sptr<V1_0::MockIDevice> sp = OHOS::sptr<V1_0::MockIDevice>(new (std::nothrow) V1_0::MockIDev…
[all …]
/ohos5.0/foundation/ai/neural_network_runtime/test/unittest/components/v1_0/neural_network_core_test/
H A Dneural_network_core_test.cpp157 std::shared_ptr<MockIDevice> device = std::make_shared<MockIDevice>(); in Creator4()
555 std::shared_ptr<MockIDevice> device = std::make_shared<MockIDevice>();
1529 std::shared_ptr<MockIDevice> device = std::make_shared<MockIDevice>();
1556 std::shared_ptr<MockIDevice> device = std::make_shared<MockIDevice>();
1583 std::shared_ptr<MockIDevice> device = std::make_shared<MockIDevice>();
1612 std::shared_ptr<MockIDevice> device = std::make_shared<MockIDevice>();
1628 std::shared_ptr<MockIDevice> device = std::make_shared<MockIDevice>();
1656 std::shared_ptr<MockIDevice> device = std::make_shared<MockIDevice>();
1672 std::shared_ptr<MockIDevice> device = std::make_shared<MockIDevice>();
1701 std::shared_ptr<MockIDevice> device = std::make_shared<MockIDevice>();
[all …]
/ohos5.0/foundation/ai/neural_network_runtime/test/unittest/components/nn_compiled_cache/
H A Dnn_compiled_cache_test.cpp39 class MockIDevice : public Device { class
119 std::shared_ptr<MockIDevice> device = std::make_shared<MockIDevice>(); in Creator()
121 EXPECT_CALL(*((MockIDevice *) device.get()), GetDeviceStatus(::testing::_)) in Creator()
129 EXPECT_CALL(*((MockIDevice *) device.get()), GetDeviceName(::testing::_)) in Creator()
132 EXPECT_CALL(*((MockIDevice *) device.get()), GetVendorName(::testing::_)) in Creator()
135 EXPECT_CALL(*((MockIDevice *) device.get()), GetVersion(::testing::_)) in Creator()
183 std::shared_ptr<MockIDevice> device = std::make_shared<MockIDevice>(); in Creator2()
193 EXPECT_CALL(*((MockIDevice *) device.get()), GetDeviceName(::testing::_)) in Creator2()
196 EXPECT_CALL(*((MockIDevice *) device.get()), GetVendorName(::testing::_)) in Creator2()
199 EXPECT_CALL(*((MockIDevice *) device.get()), GetVersion(::testing::_)) in Creator2()
[all …]
/ohos5.0/foundation/ai/neural_network_runtime/test/unittest/components/nn_tensor/
H A Dnn_tensor_test.cpp45 class MockIDevice : public Device { class
109 std::shared_ptr<Device> device = std::make_shared<MockIDevice>(); in GetDevice()
244 std::shared_ptr<MockIDevice> device = std::make_shared<MockIDevice>(); in Creator()
254 EXPECT_CALL(*((MockIDevice *) device.get()), GetDeviceName(::testing::_)) in Creator()
257 EXPECT_CALL(*((MockIDevice *) device.get()), GetVendorName(::testing::_)) in Creator()
260 EXPECT_CALL(*((MockIDevice *) device.get()), GetVersion(::testing::_)) in Creator()
411 std::shared_ptr<MockIDevice> device = std::make_shared<MockIDevice>(); in Creator3()
421 EXPECT_CALL(*((MockIDevice *) device.get()), GetDeviceName(::testing::_)) in Creator3()
427 EXPECT_CALL(*((MockIDevice *) device.get()), GetVersion(::testing::_)) in Creator3()
476 std::shared_ptr<MockIDevice> device = std::make_shared<MockIDevice>(); in Creator4()
[all …]
/ohos5.0/foundation/ai/neural_network_runtime/test/unittest/common/v1_0/
H A Dmock_idevice.cpp33 sptr<INnrtDevice> mockIDevice = sptr<MockIDevice>(new (std::nothrow) MockIDevice()); in Get()
H A Dmock_idevice.h29 class MockIDevice : public INnrtDevice {
/ohos5.0/foundation/ai/neural_network_runtime/test/unittest/common/v2_0/
H A Dmock_idevice.cpp33 sptr<INnrtDevice> mockIDevice = sptr<MockIDevice>(new (std::nothrow) MockIDevice()); in Get()
H A Dmock_idevice.h29 class MockIDevice : public INnrtDevice {
/ohos5.0/foundation/ai/neural_network_runtime/test/unittest/components/nn_executor/
H A Dnn_executor_test.cpp136 std::shared_ptr<MockIDevice> device = std::make_shared<MockIDevice>();
928 std::shared_ptr<MockIDevice> device = std::make_shared<MockIDevice>();
989 std::shared_ptr<MockIDevice> device = std::make_shared<MockIDevice>();
1049 std::shared_ptr<MockIDevice> device = std::make_shared<MockIDevice>();
1156 std::shared_ptr<MockIDevice> device = std::make_shared<MockIDevice>();
1639 std::shared_ptr<MockIDevice> device = std::make_shared<MockIDevice>();
1686 std::shared_ptr<MockIDevice> device = std::make_shared<MockIDevice>();
1796 std::shared_ptr<MockIDevice> device = std::make_shared<MockIDevice>();
1903 std::shared_ptr<MockIDevice> device = std::make_shared<MockIDevice>();
1950 std::shared_ptr<MockIDevice> device = std::make_shared<MockIDevice>();
[all …]
/ohos5.0/foundation/ai/neural_network_runtime/test/unittest/common/v2_1/
H A Dmock_idevice.h29 class MockIDevice : public INnrtDevice {
/ohos5.0/foundation/ai/neural_network_runtime/test/unittest/components/v1_0/neural_network_runtime_test/
H A Dneural_network_runtime_test.cpp265 class MockIDevice : public Device { class
1836 std::shared_ptr<MockIDevice> device = std::make_shared<MockIDevice>();
1857 …EXPECT_CALL(*((MockIDevice *) device.get()), AllocateTensorBuffer(length, m_inputTensorDescs[0].fi…
2016 std::shared_ptr<MockIDevice> device = std::make_shared<MockIDevice>();
2037 …EXPECT_CALL(*((MockIDevice *) device.get()), AllocateTensorBuffer(length, m_outputTensorDescs[0].f…