142103316Sopenharmony_ci/*
242103316Sopenharmony_ci * Copyright (c) 2022 Huawei Device Co., Ltd.
342103316Sopenharmony_ci * Licensed under the Apache License, Version 2.0 (the "License");
442103316Sopenharmony_ci * you may not use this file except in compliance with the License.
542103316Sopenharmony_ci * You may obtain a copy of the License at
642103316Sopenharmony_ci *
742103316Sopenharmony_ci *     http://www.apache.org/licenses/LICENSE-2.0
842103316Sopenharmony_ci *
942103316Sopenharmony_ci * Unless required by applicable law or agreed to in writing, software
1042103316Sopenharmony_ci * distributed under the License is distributed on an "AS IS" BASIS,
1142103316Sopenharmony_ci * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1242103316Sopenharmony_ci * See the License for the specific language governing permissions and
1342103316Sopenharmony_ci * limitations under the License.
1442103316Sopenharmony_ci */
1542103316Sopenharmony_ci
1642103316Sopenharmony_ci#include "usb_callback_test.h"
1742103316Sopenharmony_ci
1842103316Sopenharmony_ci#include <sys/time.h>
1942103316Sopenharmony_ci
2042103316Sopenharmony_ci#include <unistd.h>
2142103316Sopenharmony_ci#include <iostream>
2242103316Sopenharmony_ci#include <vector>
2342103316Sopenharmony_ci
2442103316Sopenharmony_ci#include "ashmem.h"
2542103316Sopenharmony_ci#include "delayed_sp_singleton.h"
2642103316Sopenharmony_ci#include "hilog_wrapper.h"
2742103316Sopenharmony_ci#include "if_system_ability_manager.h"
2842103316Sopenharmony_ci#include "iservice_registry.h"
2942103316Sopenharmony_ci#include "securec.h"
3042103316Sopenharmony_ci#include "system_ability_definition.h"
3142103316Sopenharmony_ci#include "usb_callback_test.h"
3242103316Sopenharmony_ci#include "usb_common_test.h"
3342103316Sopenharmony_ci#include "usb_errors.h"
3442103316Sopenharmony_ci#include "usb_srv_client.h"
3542103316Sopenharmony_ci
3642103316Sopenharmony_ciusing namespace OHOS;
3742103316Sopenharmony_ciusing namespace OHOS::USB;
3842103316Sopenharmony_ciusing namespace std;
3942103316Sopenharmony_ciusing namespace OHOS::USB::Common;
4042103316Sopenharmony_ci
4142103316Sopenharmony_ciint32_t UsbCallbackTest::OnBulkWriteCallback(int32_t status, int32_t actLength)
4242103316Sopenharmony_ci{
4342103316Sopenharmony_ci    USB_HILOGE(MODULE_USB_SERVICE, "yu_test_, status %{public}d, actLength:%{public}d", status, actLength);
4442103316Sopenharmony_ci    return 0;
4542103316Sopenharmony_ci}
4642103316Sopenharmony_ci
4742103316Sopenharmony_ciint32_t UsbCallbackTest::OnBulkReadCallback(int32_t status, int32_t actLength)
4842103316Sopenharmony_ci{
4942103316Sopenharmony_ci    USB_HILOGE(MODULE_USB_SERVICE, "yu_test_, status %{public}d, actLength:%{public}d", status, actLength);
5042103316Sopenharmony_ci    return 0;
5142103316Sopenharmony_ci}