Home
last modified time | relevance | path

Searched refs:MockUsbImpl (Results 1 – 12 of 12) sorted by relevance

/base/usb/usb_manager/test/native/mock/src/
Dusb_impl_mock.cpp39 MockUsbImpl::MockUsbImpl() {} in MockUsbImpl() function in OHOS::USB::MockUsbImpl
41 MockUsbImpl::~MockUsbImpl() {} in ~MockUsbImpl()
43 UsbDevice MockUsbImpl::FindDeviceInfo(std::vector<UsbDevice> &devi) in FindDeviceInfo()
56 int32_t MockUsbImpl::GetRawDescriptor(const UsbDev &dev, std::vector<uint8_t> &decriptor) in GetRawDescriptor()
65 int32_t MockUsbImpl::GetStringDescriptor(const UsbDev &dev, uint8_t descId, std::vector<uint8_t> &d… in GetStringDescriptor()
75 int32_t MockUsbImpl::QueryPort(int32_t &portId, int32_t &powerRole, int32_t &dataRole, int32_t &mod… in QueryPort()
85 int32_t MockUsbImpl::BindUsbdSubscriber(const sptr<IUsbdSubscriber> &subscriber) in BindUsbdSubscriber()
91 int32_t MockUsbImpl::UnbindUsbdSubscriber(const sptr<IUsbdSubscriber> &subscriber) in UnbindUsbdSubscriber()
98 int32_t MockUsbImpl::SetPortRole(int32_t portId, int32_t powerRole, int32_t dataRole) in SetPortRole()
129 int32_t MockUsbImpl::SubscriberDeviceEvent(const USBDeviceInfo &info) in SubscriberDeviceEvent()
Dusb_event_mock_test.cpp48 sptr<MockUsbImpl> UsbEventMockTest::mockUsbImpl_ = nullptr;
74 mockUsbImpl_ = DelayedSpSingleton<MockUsbImpl>::GetInstance(); in SetUpTestCase()
94 DelayedSpSingleton<MockUsbImpl>::DestroyInstance(); in TearDownTestCase()
Dusb_core_mock_test.cpp53 sptr<MockUsbImpl> UsbCoreMockTest::mockUsbImpl_ = nullptr;
87 mockUsbImpl_ = DelayedSpSingleton<MockUsbImpl>::GetInstance(); in SetUpTestCase()
116 DelayedSpSingleton<MockUsbImpl>::DestroyInstance(); in TearDownTestCase()
Dusb_request_mock_test.cpp47 sptr<MockUsbImpl> UsbRequestMockTest::mockUsbImpl_ = nullptr;
59 mockUsbImpl_ = DelayedSpSingleton<MockUsbImpl>::GetInstance(); in SetUpTestCase()
84 UsbDevice device = MockUsbImpl::FindDeviceInfo(devList); in SetUpTestCase()
115 DelayedSpSingleton<MockUsbImpl>::DestroyInstance(); in TearDownTestCase()
Dusb_bulkcallback_mock_test.cpp49 sptr<MockUsbImpl> UsbBulkcallbackMockTest::mockUsbImpl_ = nullptr;
91 mockUsbImpl_ = DelayedSpSingleton<MockUsbImpl>::GetInstance(); in SetUpTestCase()
116 UsbDevice device = MockUsbImpl::FindDeviceInfo(devList); in SetUpTestCase()
147 DelayedSpSingleton<MockUsbImpl>::DestroyInstance(); in TearDownTestCase()
Dusb_device_pipe_mock_test.cpp71 sptr<MockUsbImpl> UsbDevicePipeMockTest::mockUsbImpl_ = nullptr;
83 mockUsbImpl_ = DelayedSpSingleton<MockUsbImpl>::GetInstance(); in SetUpTestCase()
108 device_ = MockUsbImpl::FindDeviceInfo(devList); in SetUpTestCase()
133 DelayedSpSingleton<MockUsbImpl>::DestroyInstance(); in TearDownTestCase()
151 UsbDevice device = MockUsbImpl::FindDeviceInfo(devList);
/base/usb/usb_manager/test/native/mock/include/
Dusb_device_pipe_mock_test.h36 static sptr<MockUsbImpl> mockUsbImpl_;
Dusb_core_mock_test.h34 static sptr<MockUsbImpl> mockUsbImpl_;
Dusb_request_mock_test.h37 static sptr<MockUsbImpl> mockUsbImpl_;
Dusb_event_mock_test.h34 static sptr<MockUsbImpl> mockUsbImpl_;
Dusb_bulkcallback_mock_test.h37 static sptr<MockUsbImpl> mockUsbImpl_;
Dusb_impl_mock.h49 class MockUsbImpl : public IUsbInterface {
50 DECLARE_DELAYED_SP_SINGLETON(MockUsbImpl);