diff --git a/frameworks/native/appkit/ability_delegator/iability_delegator.cpp b/frameworks/native/appkit/ability_delegator/iability_delegator.cpp index c04df963af5bcd6eb0640250231a4dbb809adeef..ffa02a336223d769e659e637db0d8115b24fc33c 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 617133065bee63732ac851bc5754530453667432..840ae45846a0d73b7ed0cfff83b0af84f956535b 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 7c6ef3b90f89e698a1bf35e522d65d798e47fad5..fb98dfcc477cb7eb89d90dc6c140048c2099e26c 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", ]