From 90b5ad4e4e6987b4e22a3abc6ab73263d48e4d9c Mon Sep 17 00:00:00 2001 From: zhangzezhong Date: Thu, 12 Jun 2025 21:53:48 +0800 Subject: [PATCH] =?UTF-8?q?ets=20delegator=20=E5=85=A5=E5=8F=A3=E4=BF=AE?= =?UTF-8?q?=E5=A4=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: zhangzezhong --- .../native/appkit/ability_delegator/iability_delegator.cpp | 1 + frameworks/native/appkit/ability_delegator/test_runner.cpp | 3 +++ test/unittest/cj_test_runner_test/BUILD.gn | 2 ++ 3 files changed, 6 insertions(+) diff --git a/frameworks/native/appkit/ability_delegator/iability_delegator.cpp b/frameworks/native/appkit/ability_delegator/iability_delegator.cpp index c04df963af5..ffa02a33622 100644 --- a/frameworks/native/appkit/ability_delegator/iability_delegator.cpp +++ b/frameworks/native/appkit/ability_delegator/iability_delegator.cpp @@ -31,6 +31,7 @@ std::shared_ptr IAbilityDelegator::Create(const std::unique_p switch (runtime->GetLanguage()) { case AbilityRuntime::Runtime::Language::JS: + case AbilityRuntime::Runtime::Language::ETS: return AbilityDelegator::Create(context, std::move(runner), observer); #ifdef CJ_FRONTEND case AbilityRuntime::Runtime::Language::CJ: diff --git a/frameworks/native/appkit/ability_delegator/test_runner.cpp b/frameworks/native/appkit/ability_delegator/test_runner.cpp index 617133065be..840ae45846a 100644 --- a/frameworks/native/appkit/ability_delegator/test_runner.cpp +++ b/frameworks/native/appkit/ability_delegator/test_runner.cpp @@ -19,6 +19,7 @@ #ifdef CJ_FRONTEND #include "runner_runtime/cj_test_runner.h" #endif +#include "runner_runtime/ets_test_runner.h" #include "runner_runtime/js_test_runner.h" #include "runtime.h" #include "sys_mgr_client.h" @@ -64,6 +65,8 @@ std::unique_ptr TestRunner::Create(const std::unique_ptr(); } diff --git a/test/unittest/cj_test_runner_test/BUILD.gn b/test/unittest/cj_test_runner_test/BUILD.gn index 7c6ef3b90f8..fb98dfcc477 100644 --- a/test/unittest/cj_test_runner_test/BUILD.gn +++ b/test/unittest/cj_test_runner_test/BUILD.gn @@ -41,6 +41,7 @@ ohos_unittest("cj_test_runner_test") { "${ability_runtime_native_path}/appkit/ability_delegator/iability_monitor.cpp", "${ability_runtime_native_path}/appkit/ability_delegator/iability_stage_monitor.cpp", "${ability_runtime_native_path}/appkit/ability_delegator/runner_runtime/cj_test_runner_object.cpp", + "${ability_runtime_native_path}/appkit/ability_delegator/runner_runtime/ets_test_runner.cpp", "${ability_runtime_native_path}/appkit/ability_delegator/runner_runtime/js_test_runner.cpp", "${ability_runtime_native_path}/appkit/ability_delegator/shell_cmd_result.cpp", "${ability_runtime_native_path}/appkit/ability_delegator/test_runner.cpp", @@ -97,6 +98,7 @@ ohos_unittest("cj_test_runner_test") { "napi:ace_napi", "napi:cj_bind_native", "resource_management:global_resmgr", + "runtime_core:ani", "samgr:samgr_proxy", ] -- Gitee