From b9a613c366c16fa4ac3565893250ca0a782f0ce4 Mon Sep 17 00:00:00 2001 From: near330i Date: Mon, 31 Jul 2023 17:09:58 +0800 Subject: [PATCH 1/4] =?UTF-8?q?ylong=5Fhttp=20GN=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0SDV=E6=B5=8B=E8=AF=95=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: near330i --- ylong_http_client/BUILD.gn | 72 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 72 insertions(+) diff --git a/ylong_http_client/BUILD.gn b/ylong_http_client/BUILD.gn index 5f73d07..2dfb7ee 100644 --- a/ylong_http_client/BUILD.gn +++ b/ylong_http_client/BUILD.gn @@ -90,3 +90,75 @@ ohos_rust_unittest("rust_ylong_http_client_unit_test") { "--cfg=feature=\"tokio_base\"", ] } + +ohos_rust_systemtest("rust_ylong_http_client_sync_http_c_ssl") { + module_out_path = "commonlibrary/rust/ylong_http" + sources = [ + "tests/sdv_sync_http_c_ssl.rs" + ] + deps = [ ":ylong_http_client" ] + + rustflags = [ + "--cfg=feature=\"default\"", + "--cfg=feature=\"async\"", + "--cfg=feature=\"http1_1\"", + "--cfg=feature=\"c_openssl_3_0\"", + "--cfg=feature=\"__tls\"", + "--cfg=feature=\"__c_openssl\"", + "--cfg=feature=\"tokio_base\"", + ] +} + +ohos_rust_systemtest("rust_ylong_http_client_async_http_c_ssl") { + module_out_path = "commonlibrary/rust/ylong_http" + sources = [ + "tests/sdv_async_http_c_ssl.rs" + ] + deps = [ ":ylong_http_client" ] + + rustflags = [ + "--cfg=feature=\"default\"", + "--cfg=feature=\"async\"", + "--cfg=feature=\"http1_1\"", + "--cfg=feature=\"c_openssl_3_0\"", + "--cfg=feature=\"__tls\"", + "--cfg=feature=\"__c_openssl\"", + "--cfg=feature=\"tokio_base\"", + ] +} + +ohos_rust_systemtest("rust_ylong_http_client_async_http") { + module_out_path = "commonlibrary/rust/ylong_http" + sources = [ + "tests/sdv_async_http.rs" + ] + deps = [ ":ylong_http_client" ] + + rustflags = [ + "--cfg=feature=\"default\"", + "--cfg=feature=\"async\"", + "--cfg=feature=\"http1_1\"", + "--cfg=feature=\"c_openssl_3_0\"", + "--cfg=feature=\"__tls\"", + "--cfg=feature=\"__c_openssl\"", + "--cfg=feature=\"tokio_base\"", + ] +} + +ohos_rust_systemtest("rust_ylong_http_client_sync_http") { + module_out_path = "commonlibrary/rust/ylong_http" + sources = [ + "tests/sdv_sync_http.rs" + ] + deps = [] + + rustflags = [ + "--cfg=feature=\"default\"", + "--cfg=feature=\"async\"", + "--cfg=feature=\"http1_1\"", + "--cfg=feature=\"c_openssl_3_0\"", + "--cfg=feature=\"__tls\"", + "--cfg=feature=\"__c_openssl\"", + "--cfg=feature=\"tokio_base\"", + ] +} \ No newline at end of file -- Gitee From c73aa7413f77c1f8b2b969f8d78d6dfb53307002 Mon Sep 17 00:00:00 2001 From: near330i Date: Mon, 31 Jul 2023 19:12:07 +0800 Subject: [PATCH 2/4] =?UTF-8?q?ylong=5Fhttp=20GN=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0SDV=E6=B5=8B=E8=AF=95=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: near330i --- ylong_http_client/BUILD.gn | 18 +++++------------- 1 file changed, 5 insertions(+), 13 deletions(-) diff --git a/ylong_http_client/BUILD.gn b/ylong_http_client/BUILD.gn index 2dfb7ee..899fca4 100644 --- a/ylong_http_client/BUILD.gn +++ b/ylong_http_client/BUILD.gn @@ -93,9 +93,7 @@ ohos_rust_unittest("rust_ylong_http_client_unit_test") { ohos_rust_systemtest("rust_ylong_http_client_sync_http_c_ssl") { module_out_path = "commonlibrary/rust/ylong_http" - sources = [ - "tests/sdv_sync_http_c_ssl.rs" - ] + sources = [ "tests/sdv_sync_http_c_ssl.rs" ] deps = [ ":ylong_http_client" ] rustflags = [ @@ -111,9 +109,7 @@ ohos_rust_systemtest("rust_ylong_http_client_sync_http_c_ssl") { ohos_rust_systemtest("rust_ylong_http_client_async_http_c_ssl") { module_out_path = "commonlibrary/rust/ylong_http" - sources = [ - "tests/sdv_async_http_c_ssl.rs" - ] + sources = [ "tests/sdv_async_http_c_ssl.rs" ] deps = [ ":ylong_http_client" ] rustflags = [ @@ -129,9 +125,7 @@ ohos_rust_systemtest("rust_ylong_http_client_async_http_c_ssl") { ohos_rust_systemtest("rust_ylong_http_client_async_http") { module_out_path = "commonlibrary/rust/ylong_http" - sources = [ - "tests/sdv_async_http.rs" - ] + sources = [ "tests/sdv_async_http.rs" ] deps = [ ":ylong_http_client" ] rustflags = [ @@ -147,10 +141,8 @@ ohos_rust_systemtest("rust_ylong_http_client_async_http") { ohos_rust_systemtest("rust_ylong_http_client_sync_http") { module_out_path = "commonlibrary/rust/ylong_http" - sources = [ - "tests/sdv_sync_http.rs" - ] - deps = [] + sources = [ "tests/sdv_sync_http.rs" ] + deps = [ ":ylong_http_client" ] rustflags = [ "--cfg=feature=\"default\"", -- Gitee From 5116e02686251cfd239561e75094c8b395f7c2a3 Mon Sep 17 00:00:00 2001 From: near330i Date: Mon, 31 Jul 2023 19:25:21 +0800 Subject: [PATCH 3/4] =?UTF-8?q?ylong=5Fhttp=20GN=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0SDV=E6=B5=8B=E8=AF=95=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: near330i --- ylong_http_client/BUILD.gn | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ylong_http_client/BUILD.gn b/ylong_http_client/BUILD.gn index 899fca4..50e7331 100644 --- a/ylong_http_client/BUILD.gn +++ b/ylong_http_client/BUILD.gn @@ -153,4 +153,4 @@ ohos_rust_systemtest("rust_ylong_http_client_sync_http") { "--cfg=feature=\"__c_openssl\"", "--cfg=feature=\"tokio_base\"", ] -} \ No newline at end of file +} -- Gitee From 985368e94437cad2dbc4982e353ccc0cf68764c7 Mon Sep 17 00:00:00 2001 From: near330i Date: Mon, 31 Jul 2023 19:27:36 +0800 Subject: [PATCH 4/4] =?UTF-8?q?ylong=5Fhttp=20GN=E6=96=87=E4=BB=B6?= =?UTF-8?q?=E6=B7=BB=E5=8A=A0SDV=E6=B5=8B=E8=AF=95=E4=BF=A1=E6=81=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: near330i --- ylong_http_client/BUILD.gn | 1 + 1 file changed, 1 insertion(+) diff --git a/ylong_http_client/BUILD.gn b/ylong_http_client/BUILD.gn index 50e7331..814a915 100644 --- a/ylong_http_client/BUILD.gn +++ b/ylong_http_client/BUILD.gn @@ -154,3 +154,4 @@ ohos_rust_systemtest("rust_ylong_http_client_sync_http") { "--cfg=feature=\"tokio_base\"", ] } + -- Gitee