mirror of
https://gitee.com/openharmony/xts_dcts
synced 2024-11-23 07:39:59 +00:00
commit
d56abe5e63
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2021-2024 Huawei Device Co., Ltd.
|
||||
* Copyright (c) 2024 Huawei Device Co., Ltd.
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2021-2024 Huawei Device Co., Ltd.
|
||||
* Copyright (c) 2024 Huawei Device Co., Ltd.
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Copyright (C) 2021-2024 Huawei Device Co., Ltd.
|
||||
# Copyright (C) 2024 Huawei Device Co., Ltd.
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2021-2024 Huawei Device Co., Ltd.
|
||||
* Copyright (c) 2024 Huawei Device Co., Ltd.
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
@ -119,13 +119,13 @@ SocketInfo socketStreamInfo = {
|
||||
};
|
||||
|
||||
QosTV info_wifi[] = {
|
||||
{.qos = QOS_TYPE_MIN_BW, .value = 10 * 1024 * 4024, },
|
||||
{.qos = QOS_TYPE_MIN_BW, .value = 10 * 1024 * 1024, },
|
||||
{.qos = QOS_TYPE_MIN_LATENCY, .value = 800, },
|
||||
{.qos = QOS_TYPE_MAX_LATENCY, .value = 800, },
|
||||
};
|
||||
|
||||
QosTV info_p2p[] = {
|
||||
{.qos = QOS_TYPE_MIN_BW, .value = 160 * 1024 * 4024, },
|
||||
{.qos = QOS_TYPE_MIN_BW, .value = 160 * 1024 * 1024, },
|
||||
{.qos = QOS_TYPE_MIN_LATENCY, .value = 1600, },
|
||||
{.qos = QOS_TYPE_MAX_LATENCY, .value = 1600, },
|
||||
};
|
||||
|
@ -1,4 +1,4 @@
|
||||
# Copyright (C) 2021-2024 Huawei Device Co., Ltd.
|
||||
# Copyright (C) 2024 Huawei Device Co., Ltd.
|
||||
# Licensed under the Apache License, Version 2.0 (the "License");
|
||||
# you may not use this file except in compliance with the License.
|
||||
# You may obtain a copy of the License at
|
||||
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2021-2024 Huawei Device Co., Ltd.
|
||||
* Copyright (c) 2024 Huawei Device Co., Ltd.
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
@ -44,9 +44,10 @@ void SocketTestServer ::TearDown() {}
|
||||
void SocketTestServer ::SetUpTestCase()
|
||||
{
|
||||
LOG("SetUpTestCase");
|
||||
uint64_t tokenId = OHOS::Security::AccessToken::AccessTokenKit::GetNativeTokenId("dhardware");
|
||||
SetSelfTokenID(tokenId);
|
||||
sleep(1);
|
||||
AddPermission();
|
||||
sleep(ONE_SECOND);
|
||||
system("pidof accesstoken_service | xargs kill -9");
|
||||
sleep(ONE_SECOND);
|
||||
TestSetUp();
|
||||
SetupCallback();
|
||||
int ret = RegNodeDeviceStateCb(DEF_PKG_NAME, g_nodeStateCallback);
|
||||
|
Loading…
Reference in New Issue
Block a user