Home
last modified time | relevance | path

Searched refs:mockIDevice (Results 1 – 4 of 4) sorted by relevance

/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() local
34 if (mockIDevice == nullptr) { in Get()
37 return mockIDevice; in Get()
/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() local
34 if (mockIDevice == nullptr) { in Get()
37 return mockIDevice; in Get()
/ohos5.0/foundation/ai/neural_network_runtime/test/unittest/components/v1_0/device_registrar/
H A Ddevice_registrar_test.cpp195 auto mockIDevice = OHOS::NeuralNetworkRuntime::CreateSharedPtr<MockIDeviceImp>(); in Get() local
196 if (!mockIDevice) { in Get()
202 EXPECT_CALL(*mockIDevice, GetDeviceName(::testing::_)) in Get()
206 EXPECT_CALL(*mockIDevice, GetVendorName(::testing::_)) in Get()
210 EXPECT_CALL(*mockIDevice, GetDeviceStatus(::testing::_)) in Get()
212 return mockIDevice; in Get()
/ohos5.0/foundation/ai/neural_network_runtime/test/unittest/components/v2_0/device_registrar/
H A Ddevice_registrar_test.cpp195 auto mockIDevice = OHOS::NeuralNetworkRuntime::CreateSharedPtr<MockIDeviceImp>(); in Get() local
196 if (!mockIDevice) { in Get()
202 EXPECT_CALL(*mockIDevice, GetDeviceName(::testing::_)) in Get()
206 EXPECT_CALL(*mockIDevice, GetVendorName(::testing::_)) in Get()
210 EXPECT_CALL(*mockIDevice, GetDeviceStatus(::testing::_)) in Get()
212 return mockIDevice; in Get()