mirror of
https://gitee.com/openharmony/arkui_ace_engine
synced 2024-11-27 01:03:08 +00:00
move unittest cases to test/unittest
Signed-off-by: liyujie <liyujie43@huawei.com> Change-Id: I748a092363ba4fcb61c8ca8449910355542e60d3
This commit is contained in:
parent
6486525071
commit
3605241164
72
BUILD.gn
72
BUILD.gn
@ -109,75 +109,3 @@ config("ace_test_config") {
|
||||
cflags_cc += [ "-fvisibility-inlines-hidden" ]
|
||||
ldflags = [ "-Wl,-gc-sections" ]
|
||||
}
|
||||
|
||||
# continuous optimization
|
||||
config("ace_unittest_config") {
|
||||
visibility = [ ":*" ]
|
||||
include_dirs = [
|
||||
"$ace_root",
|
||||
"$ace_root/frameworks",
|
||||
"$root_out_dir/arkui/framework",
|
||||
]
|
||||
cflags_cc = []
|
||||
defines = []
|
||||
|
||||
if (is_standard_system && !use_mingw_win && !use_mac && !use_linux) {
|
||||
include_dirs += [
|
||||
"//base/global/resource_management/frameworks/resmgr/include",
|
||||
"//base/global/resource_management/interfaces/inner_api/include",
|
||||
]
|
||||
|
||||
cflags_cc += [
|
||||
"-Wno-thread-safety-attributes",
|
||||
"-Wno-thread-safety-analysis",
|
||||
"-Wno-non-c-typedef-for-linkage",
|
||||
]
|
||||
defines += [ "OHOS_STANDARD_SYSTEM" ]
|
||||
}
|
||||
|
||||
cflags = [
|
||||
"-fvisibility=hidden",
|
||||
"-fdata-sections",
|
||||
"-ffunction-sections",
|
||||
]
|
||||
|
||||
cflags_cc += [ "-fvisibility-inlines-hidden" ]
|
||||
ldflags = [ "-Wl,-gc-sections" ]
|
||||
|
||||
if (ace_engine_feature_enable_coverage) {
|
||||
cflags += [ "--coverage" ]
|
||||
ldflags += [ "--coverage" ]
|
||||
}
|
||||
|
||||
defines += [ "ACE_UNITTEST" ]
|
||||
}
|
||||
|
||||
ohos_source_set("ace_test_log") {
|
||||
sources = [
|
||||
"$ace_root/adapter/ohos/osal/ace_trace.cpp",
|
||||
"$ace_root/adapter/ohos/osal/log_wrapper.cpp",
|
||||
"$ace_root/frameworks/base/log/ace_trace.cpp",
|
||||
]
|
||||
|
||||
deps = [ "//third_party/bounds_checking_function:libsec_shared" ]
|
||||
|
||||
external_deps = [
|
||||
"hitrace_native:hitrace_meter",
|
||||
"hiviewdfx_hilog_native:libhilog",
|
||||
]
|
||||
|
||||
configs = [ ":ace_unittest_config" ]
|
||||
}
|
||||
|
||||
ohos_source_set("ace_unittest_log") {
|
||||
sources = [ "$ace_root/adapter/ohos/osal/log_wrapper.cpp" ]
|
||||
external_deps = [ "hiviewdfx_hilog_native:libhilog" ]
|
||||
configs = [ ":ace_unittest_config" ]
|
||||
}
|
||||
|
||||
config("ace_test_coverage_config") {
|
||||
if (ace_engine_feature_enable_coverage) {
|
||||
cflags = [ "--coverage" ]
|
||||
ldflags = [ "--coverage" ]
|
||||
}
|
||||
}
|
||||
|
@ -21,7 +21,7 @@
|
||||
],
|
||||
"rom": "25600KB",
|
||||
"ram": "102400KB",
|
||||
"hisysevent_config":[
|
||||
"hisysevent_config": [
|
||||
"//foundation/arkui/ace_engine/adapter/ohos/build/hisysevent.yaml"
|
||||
],
|
||||
"deps": {
|
||||
@ -71,34 +71,32 @@
|
||||
"inner_kits": [
|
||||
{
|
||||
"header": {
|
||||
"header_base": "//foundation/arkui/ace_engine/interfaces/inner_api/ace/",
|
||||
"header_files": [
|
||||
"ui_content.h",
|
||||
"viewport_config.h"
|
||||
]
|
||||
"header_base": "//foundation/arkui/ace_engine/interfaces/inner_api/ace/",
|
||||
"header_files": [
|
||||
"ui_content.h",
|
||||
"viewport_config.h"
|
||||
]
|
||||
},
|
||||
"name": "//foundation/arkui/ace_engine/interfaces/inner_api/ace:ace_uicontent"
|
||||
},
|
||||
{
|
||||
"header": {
|
||||
"header_base": "//foundation/arkui/ace_engine/interfaces/inner_api/form_render/include",
|
||||
"header_files": [
|
||||
"form_renderer_group.h"
|
||||
]
|
||||
"header_base": "//foundation/arkui/ace_engine/interfaces/inner_api/form_render/include",
|
||||
"header_files": [
|
||||
"form_renderer_group.h"
|
||||
]
|
||||
},
|
||||
"name": "//foundation/arkui/ace_engine/interfaces/inner_api/form_render:ace_form_render"
|
||||
}
|
||||
],
|
||||
"test": [
|
||||
"//foundation/arkui/ace_engine/frameworks/base/test:unittest",
|
||||
"//foundation/arkui/ace_engine/test/unittest:unittest",
|
||||
"//foundation/arkui/ace_engine/frameworks/bridge/test:unittest",
|
||||
"//foundation/arkui/ace_engine/frameworks/core/accessibility/test:unittest",
|
||||
"//foundation/arkui/ace_engine/frameworks/core/pipeline_ng/test:unittest",
|
||||
"//foundation/arkui/ace_engine/frameworks/core/common/test:unittest",
|
||||
"//foundation/arkui/ace_engine/frameworks/core/components_ng/test:unittest",
|
||||
"//foundation/arkui/ace_engine/interfaces/test:unittest",
|
||||
"//foundation/arkui/ace_engine/test/fuzztest:fuzztest"
|
||||
]
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
@ -27,7 +27,7 @@ RefPtr<DragWindow> DragWindow::CreateDragWindow(
|
||||
}
|
||||
|
||||
RefPtr<DragWindow> DragWindow::CreateTextDragWindow(
|
||||
const std::string& windowName, int32_t x, int32_t y, uint32_t width, uint32_t height)
|
||||
const std::string& /* windowName */, int32_t /* x */, int32_t /* y */, uint32_t /* width */, uint32_t /* height */)
|
||||
{
|
||||
static RefPtr<DragWindow> dragWindow = AceType::MakeRefPtr<MockDragWindow>();
|
||||
return dragWindow;
|
||||
|
@ -1,56 +0,0 @@
|
||||
# Copyright (c) 2021 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
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
import("//build/test.gni")
|
||||
import("//foundation/arkui/ace_engine/ace_config.gni")
|
||||
|
||||
if (is_standard_system) {
|
||||
module_output_path = "ace_engine/frameworkbasicability/jsonutil"
|
||||
} else {
|
||||
module_output_path = "ace_engine_full/frameworkbasicability/jsonutil"
|
||||
}
|
||||
|
||||
ohos_unittest("JsonUtilsTest") {
|
||||
module_out_path = module_output_path
|
||||
|
||||
sources = [ "json_util_test.cpp" ]
|
||||
|
||||
configs = [
|
||||
":config_json_creator_test",
|
||||
"$ace_root:ace_test_config",
|
||||
]
|
||||
|
||||
deps = [
|
||||
"$ace_root/frameworks/base:ace_base_ohos",
|
||||
"//third_party/googletest:gtest_main",
|
||||
]
|
||||
|
||||
external_deps = [ "c_utils:utils" ]
|
||||
|
||||
part_name = ace_engine_part
|
||||
}
|
||||
|
||||
config("config_json_creator_test") {
|
||||
visibility = [ ":*" ]
|
||||
include_dirs = [
|
||||
"//commonlibrary/c_utils/base/include",
|
||||
"$ace_root",
|
||||
]
|
||||
}
|
||||
|
||||
group("unittest") {
|
||||
testonly = true
|
||||
deps = []
|
||||
|
||||
deps += [ ":JsonUtilsTest" ]
|
||||
}
|
@ -1,66 +0,0 @@
|
||||
# Copyright (c) 2022 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
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
import("//build/test.gni")
|
||||
import("//foundation/arkui/ace_engine/ace_config.gni")
|
||||
|
||||
if (is_standard_system) {
|
||||
module_output_path = "ace_engine/frameworkbasicability/subwindow"
|
||||
} else {
|
||||
module_output_path = "ace_engine_full/frameworkbasicability/subwindow"
|
||||
}
|
||||
|
||||
ohos_unittest("SubwindowManagerTest") {
|
||||
module_out_path = module_output_path
|
||||
|
||||
sources = [
|
||||
"//foundation/arkui/ace_engine/frameworks/base/test/mock/mock_subwindow_ohos.cpp",
|
||||
"//foundation/arkui/ace_engine/frameworks/core/common/test/mock/mock_container.cpp",
|
||||
"subwindow_manager_test.cpp",
|
||||
]
|
||||
|
||||
configs = [
|
||||
":config_json_creator_test",
|
||||
"$ace_root:ace_test_config",
|
||||
"$ace_root:ace_test_coverage_config",
|
||||
]
|
||||
|
||||
include_dirs = [
|
||||
"$ability_runtime_inner_api_path/runtime/include/",
|
||||
"$ability_runtime_napi_path/featureAbility",
|
||||
"//foundation/arkui/napi/interfaces/kits",
|
||||
"//foundation/arkui/napi/native_engine",
|
||||
"//foundation/window/window_manager/interfaces/innerkits",
|
||||
"//third_party/node/src",
|
||||
]
|
||||
|
||||
deps = [
|
||||
"$ace_root/adapter/ohos/osal:ace_osal_ohos",
|
||||
"$ace_root/frameworks/base:ace_base_ohos",
|
||||
"//third_party/googletest:gtest_main",
|
||||
]
|
||||
|
||||
part_name = ace_engine_part
|
||||
}
|
||||
|
||||
config("config_json_creator_test") {
|
||||
visibility = [ ":*" ]
|
||||
include_dirs = [ "$ace_root" ]
|
||||
}
|
||||
|
||||
group("unittest") {
|
||||
testonly = true
|
||||
deps = []
|
||||
|
||||
deps += [ ":SubwindowManagerTest" ]
|
||||
}
|
@ -1,167 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) 2022 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
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <memory>
|
||||
|
||||
#include "gtest/gtest.h"
|
||||
|
||||
#include "base/memory/referenced.h"
|
||||
#include "base/subwindow/subwindow_manager.h"
|
||||
#include "base/test/mock/mock_container.h"
|
||||
#include "base/test/mock/mock_subwindow_ohos.h"
|
||||
|
||||
using namespace testing;
|
||||
using namespace testing::ext;
|
||||
|
||||
namespace OHOS::Ace {
|
||||
namespace {
|
||||
const std::string TEST_STRING = "";
|
||||
const int32_t TEST_INT_TEAM_ONE = 1;
|
||||
const int32_t TEST_INT_TEAM_TWO = 2;
|
||||
const int32_t TEST_INT_TEAM_THREE = 3;
|
||||
const bool TEST_BOOL = true;
|
||||
} // namespace
|
||||
|
||||
class SubwindowManagerTest : public testing::Test {
|
||||
public:
|
||||
static void SetUpTestCase();
|
||||
static void TearDownTestCase();
|
||||
void SetUp() override;
|
||||
void TearDown() override;
|
||||
};
|
||||
|
||||
void SubwindowManagerTest::SetUpTestCase()
|
||||
{
|
||||
GTEST_LOG_(INFO) << "SubwindowManagerTest SetUpTestCase";
|
||||
}
|
||||
|
||||
void SubwindowManagerTest::TearDownTestCase()
|
||||
{
|
||||
GTEST_LOG_(INFO) << "SubwindowManagerTest TearDownTestCase";
|
||||
}
|
||||
|
||||
void SubwindowManagerTest::SetUp()
|
||||
{
|
||||
GTEST_LOG_(INFO) << "SubwindowManagerTest SetUp";
|
||||
}
|
||||
|
||||
void SubwindowManagerTest::TearDown()
|
||||
{
|
||||
GTEST_LOG_(INFO) << "SubwindowManagerTest TearDown";
|
||||
}
|
||||
|
||||
/**
|
||||
* @tc.name: Subwindow_Manager_ShowToast_001
|
||||
* @tc.desc: Call ShowToast interface when Subwindow is null.
|
||||
* @tc.type: FUNC
|
||||
* @tc.require: RM017
|
||||
* @tc.author: Wutm
|
||||
*/
|
||||
HWTEST_F(SubwindowManagerTest, Subwindow_Manager_ShowToast_001, TestSize.Level1)
|
||||
{
|
||||
Container::SetCurrentId(TEST_INT_TEAM_ONE);
|
||||
std::shared_ptr<SubwindowManager> subwindow = SubwindowManager::GetInstance();
|
||||
subwindow->ShowToast(TEST_STRING, TEST_INT_TEAM_ONE, TEST_STRING);
|
||||
auto resultPtr = subwindow->GetDialogSubwindow(TEST_INT_TEAM_ONE);
|
||||
ASSERT_TRUE(resultPtr != nullptr);
|
||||
}
|
||||
|
||||
/**
|
||||
* @tc.name: Subwindow_Manager_ShowToast_002
|
||||
* @tc.desc: Call ShowToast interface when Subwindow is not null.
|
||||
* @tc.type: FUNC
|
||||
* @tc.require: RM017
|
||||
* @tc.author: Wutm
|
||||
*/
|
||||
HWTEST_F(SubwindowManagerTest, Subwindow_Manager_ShowToast_002, TestSize.Level1)
|
||||
{
|
||||
std::shared_ptr<SubwindowManager> subwindow = SubwindowManager::GetInstance();
|
||||
subwindow->ShowToast(TEST_STRING, TEST_INT_TEAM_ONE, TEST_STRING);
|
||||
auto resultPtr = subwindow->GetDialogSubwindow(TEST_INT_TEAM_ONE);
|
||||
ASSERT_TRUE(resultPtr != nullptr);
|
||||
}
|
||||
|
||||
/**
|
||||
* @tc.name: Subwindow_Manager_ShowDialog_001
|
||||
* @tc.desc: Call ShowDialog interface when Subwindow is null.
|
||||
* @tc.type: FUNC
|
||||
* @tc.require: RM017
|
||||
* @tc.author: Wutm
|
||||
*/
|
||||
HWTEST_F(SubwindowManagerTest, Subwindow_Manager_ShowDialog_001, TestSize.Level1)
|
||||
{
|
||||
Container::SetCurrentId(TEST_INT_TEAM_TWO);
|
||||
std::shared_ptr<SubwindowManager> subwindow = SubwindowManager::GetInstance();
|
||||
std::vector<ButtonInfo> buttons;
|
||||
std::set<std::string> callbacks;
|
||||
auto callback = [](int32_t callbackType, int32_t successType) {};
|
||||
subwindow->ShowDialog(TEST_STRING, TEST_STRING, buttons, TEST_BOOL, callback, callbacks);
|
||||
auto resultPtr = subwindow->GetDialogSubwindow(TEST_INT_TEAM_TWO);
|
||||
ASSERT_TRUE(resultPtr != nullptr);
|
||||
}
|
||||
|
||||
/**
|
||||
* @tc.name: Subwindow_Manager_ShowDialog_002
|
||||
* @tc.desc: Call ShowDialog interface when Subwindow is not null.
|
||||
* @tc.type: FUNC
|
||||
* @tc.require: RM017
|
||||
* @tc.author: Wutm
|
||||
*/
|
||||
HWTEST_F(SubwindowManagerTest, Subwindow_Manager_ShowDialog_002, TestSize.Level1)
|
||||
{
|
||||
std::shared_ptr<SubwindowManager> subwindow = SubwindowManager::GetInstance();
|
||||
std::vector<ButtonInfo> buttons;
|
||||
std::set<std::string> callbacks;
|
||||
auto callback = [](int32_t callbackType, int32_t successType) {};
|
||||
subwindow->ShowDialog(TEST_STRING, TEST_STRING, buttons, TEST_BOOL, callback, callbacks);
|
||||
auto resultPtr = subwindow->GetDialogSubwindow(TEST_INT_TEAM_TWO);
|
||||
ASSERT_TRUE(resultPtr != nullptr);
|
||||
}
|
||||
|
||||
/**
|
||||
* @tc.name: Subwindow_Manager_ShowActionMenu_001
|
||||
* @tc.desc: Call ShowActionMenu interface when Subwindow is null.
|
||||
* @tc.type: FUNC
|
||||
* @tc.require: RM017
|
||||
* @tc.author: Wutm
|
||||
*/
|
||||
HWTEST_F(SubwindowManagerTest, Subwindow_Manager_ShowActionMenu_001, TestSize.Level1)
|
||||
{
|
||||
Container::SetCurrentId(TEST_INT_TEAM_THREE);
|
||||
std::shared_ptr<SubwindowManager> subwindow = SubwindowManager::GetInstance();
|
||||
std::vector<ButtonInfo> buttons;
|
||||
auto callback = [](int32_t callbackType, int32_t successType) {};
|
||||
subwindow->ShowActionMenu(TEST_STRING, buttons, callback);
|
||||
auto resultPtr = subwindow->GetDialogSubwindow(TEST_INT_TEAM_THREE);
|
||||
ASSERT_TRUE(resultPtr != nullptr);
|
||||
}
|
||||
|
||||
/**
|
||||
* @tc.name: Subwindow_Manager_ShowActionMenu_002
|
||||
* @tc.desc: Call ShowActionMenu interface when Subwindow is null.
|
||||
* @tc.type: FUNC
|
||||
* @tc.require: RM017
|
||||
* @tc.author: Wutm
|
||||
*/
|
||||
HWTEST_F(SubwindowManagerTest, Subwindow_Manager_ShowActionMenu_002, TestSize.Level1)
|
||||
{
|
||||
std::shared_ptr<SubwindowManager> subwindow = SubwindowManager::GetInstance();
|
||||
std::vector<ButtonInfo> buttons;
|
||||
auto callback = [](int32_t callbackType, int32_t successType) {};
|
||||
subwindow->ShowActionMenu(TEST_STRING, buttons, callback);
|
||||
auto resultPtr = subwindow->GetDialogSubwindow(TEST_INT_TEAM_THREE);
|
||||
ASSERT_TRUE(resultPtr != nullptr);
|
||||
}
|
||||
} // namespace OHOS::Ace
|
@ -1,43 +0,0 @@
|
||||
# Copyright (c) 2021 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
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
import("//build/test.gni")
|
||||
import("//foundation/arkui/ace_engine/ace_config.gni")
|
||||
|
||||
if (is_standard_system) {
|
||||
module_output_path = "ace_engine/frameworkbasicability/executor"
|
||||
} else {
|
||||
module_output_path = "ace_engine_full/frameworkbasicability/executor"
|
||||
}
|
||||
|
||||
ohos_unittest("TaskExecutorsTest") {
|
||||
module_out_path = module_output_path
|
||||
|
||||
sources = [ "task_executor_test.cpp" ]
|
||||
|
||||
configs = [ "$ace_root:ace_test_config" ]
|
||||
|
||||
deps = [
|
||||
"$ace_flutter_engine_root:third_party_flutter_engine_ohos",
|
||||
"$ace_flutter_engine_root/icu:ace_libicu_ohos",
|
||||
"$ace_root/build:ace_ohos_unittest_base",
|
||||
]
|
||||
|
||||
part_name = ace_engine_part
|
||||
}
|
||||
|
||||
group("unittest") {
|
||||
testonly = true
|
||||
|
||||
deps = [ ":TaskExecutorsTest" ]
|
||||
}
|
@ -1,265 +0,0 @@
|
||||
/*
|
||||
* Copyright (c) 2021-2022 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
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include "flutter/common/task_runners.h"
|
||||
#include "flutter/fml/task_runner.h"
|
||||
#include "gtest/gtest.h"
|
||||
|
||||
#include "base/thread/background_task_executor.h"
|
||||
#include "base/thread/task_executor.h"
|
||||
#include "core/common/flutter/flutter_task_executor.h"
|
||||
|
||||
using namespace testing;
|
||||
using namespace testing::ext;
|
||||
|
||||
namespace OHOS::Ace {
|
||||
namespace {
|
||||
|
||||
const std::string UITASK = "ui task has executed";
|
||||
const std::string UISYNCTASK = "ui sync task has executed";
|
||||
const std::string PLATFORMTASK = "platform task has executed";
|
||||
const std::string PLATFORMSYNCTASK = "platform sync task has executed";
|
||||
const std::string IOTASK = "io task has executed";
|
||||
const std::string IOSYNCTASK = "io sync task has executed";
|
||||
const std::string JSTASK = "js task has executed";
|
||||
const std::string JSSYNCTASK = "js sync task has executed";
|
||||
const std::string BACKGROUNDTASK = "background task has executed";
|
||||
const std::string BACKGROUNDSYNCTASK = "background sync task has executed";
|
||||
const std::string LABEL = "task executor test";
|
||||
const std::string THREADFIRST = "thread_1";
|
||||
const std::string THREADSECOND = "thread_2";
|
||||
const std::string THREADTHIRD = "thread_3";
|
||||
const std::string THREADFOURTH = "thread_4";
|
||||
const uint32_t DELAYTIME = 5;
|
||||
|
||||
} // namespace
|
||||
|
||||
class TaskExecutorsTest : public testing::Test {
|
||||
public:
|
||||
static void SetUpTestCase();
|
||||
static void TearDownTestCase();
|
||||
void SetUp();
|
||||
void TearDown();
|
||||
void InitTaskExecutor();
|
||||
void GetString(const std::string& task, std::promise<std::string>&& taskPromise);
|
||||
|
||||
protected:
|
||||
RefPtr<TaskExecutor> taskExecutor_;
|
||||
std::string label_ = LABEL;
|
||||
std::unique_ptr<fml::Thread> ThreadFirst_ = std::make_unique<fml::Thread>(THREADFIRST);
|
||||
std::unique_ptr<fml::Thread> ThreadSecond_ = std::make_unique<fml::Thread>(THREADSECOND);
|
||||
std::unique_ptr<fml::Thread> ThreadThird_ = std::make_unique<fml::Thread>(THREADTHIRD);
|
||||
std::unique_ptr<fml::Thread> ThreadFourth_ = std::make_unique<fml::Thread>(THREADFOURTH);
|
||||
fml::RefPtr<fml::TaskRunner> platform_ = ThreadFirst_->GetTaskRunner();
|
||||
fml::RefPtr<fml::TaskRunner> gpu_ = ThreadSecond_->GetTaskRunner();
|
||||
fml::RefPtr<fml::TaskRunner> ui_ = ThreadThird_->GetTaskRunner();
|
||||
fml::RefPtr<fml::TaskRunner> io_ = ThreadFourth_->GetTaskRunner();
|
||||
};
|
||||
|
||||
void TaskExecutorsTest::SetUpTestCase() {}
|
||||
|
||||
void TaskExecutorsTest::TearDownTestCase() {}
|
||||
|
||||
void TaskExecutorsTest::SetUp()
|
||||
{
|
||||
InitTaskExecutor();
|
||||
}
|
||||
|
||||
void TaskExecutorsTest::TearDown() {}
|
||||
|
||||
void TaskExecutorsTest::InitTaskExecutor()
|
||||
{
|
||||
std::promise<void> promiseInit;
|
||||
std::future<void> futureInit = promiseInit.get_future();
|
||||
flutter::TaskRunners taskRunner(label_, platform_, gpu_, ui_, io_);
|
||||
auto flutterTaskExecutor = Referenced::MakeRefPtr<FlutterTaskExecutor>();
|
||||
|
||||
platform_->PostTask([&promiseInit, flutterTaskExecutor]() {
|
||||
flutterTaskExecutor->InitPlatformThread();
|
||||
promiseInit.set_value();
|
||||
});
|
||||
|
||||
flutterTaskExecutor->InitJsThread();
|
||||
flutterTaskExecutor->InitOtherThreads(taskRunner);
|
||||
futureInit.wait();
|
||||
|
||||
taskExecutor_ = flutterTaskExecutor;
|
||||
}
|
||||
|
||||
void TaskExecutorsTest::GetString(const std::string& task, std::promise<std::string>&& taskPromise)
|
||||
{
|
||||
taskPromise.set_value(task);
|
||||
}
|
||||
|
||||
/**
|
||||
* @tc.name: TaskExecutorsTest001
|
||||
* @tc.desc: test synchronous and asynchronous execution of the UI thread
|
||||
* @tc.type: FUNC
|
||||
*/
|
||||
HWTEST_F(TaskExecutorsTest, TaskExecutorsTest001, TestSize.Level0)
|
||||
{
|
||||
/**
|
||||
* @tc.steps: step1. set the synchronous task.
|
||||
* @tc.expected: step1. task gets executed.
|
||||
*/
|
||||
std::string uiTask;
|
||||
taskExecutor_->PostSyncTask([&uiTask]() { uiTask = UISYNCTASK; }, TaskExecutor::TaskType::UI);
|
||||
ASSERT_TRUE(uiTask == UISYNCTASK);
|
||||
|
||||
/**
|
||||
* @tc.steps: step2. set asynchronous task.
|
||||
* @tc.expected: step2. task gets executed.
|
||||
*/
|
||||
std::promise<std::string> taskPromise;
|
||||
std::future<std::string> taskFuture = taskPromise.get_future();
|
||||
taskExecutor_->PostDelayedTask([this, &taskPromise]() { this->GetString(UITASK, std::move(taskPromise)); },
|
||||
TaskExecutor::TaskType::UI, DELAYTIME);
|
||||
ASSERT_TRUE(taskFuture.get() == UITASK);
|
||||
|
||||
/**
|
||||
* @tc.steps: step3. set empty task.
|
||||
* @tc.expected: step3. result return failed.
|
||||
*/
|
||||
ASSERT_FALSE(taskExecutor_->PostTask(nullptr, TaskExecutor::TaskType::UI));
|
||||
}
|
||||
|
||||
/**
|
||||
* @tc.name: TaskExecutorsTest002
|
||||
* @tc.desc: test synchronous and asynchronous execution of the PLATFORM thread
|
||||
* @tc.type: FUNC
|
||||
*/
|
||||
HWTEST_F(TaskExecutorsTest, TaskExecutorsTest002, TestSize.Level0)
|
||||
{
|
||||
/**
|
||||
* @tc.steps: step1. set the synchronous task.
|
||||
* @tc.expected: step1. task gets executed.
|
||||
*/
|
||||
std::string platformTask;
|
||||
taskExecutor_->PostSyncTask(
|
||||
[&platformTask]() { platformTask = PLATFORMSYNCTASK; }, TaskExecutor::TaskType::PLATFORM);
|
||||
ASSERT_TRUE(platformTask == PLATFORMSYNCTASK);
|
||||
|
||||
/**
|
||||
* @tc.steps: step2. set asynchronous task.
|
||||
* @tc.expected: step2. task gets executed.
|
||||
*/
|
||||
std::promise<std::string> taskPromise;
|
||||
std::future<std::string> taskFuture = taskPromise.get_future();
|
||||
taskExecutor_->PostDelayedTask([this, &taskPromise]() { this->GetString(PLATFORMTASK, std::move(taskPromise)); },
|
||||
TaskExecutor::TaskType::PLATFORM, DELAYTIME);
|
||||
ASSERT_TRUE(taskFuture.get() == PLATFORMTASK);
|
||||
|
||||
/**
|
||||
* @tc.steps: step3. set empty task.
|
||||
* @tc.expected: step3. result return failed.
|
||||
*/
|
||||
ASSERT_FALSE(taskExecutor_->PostTask(nullptr, TaskExecutor::TaskType::PLATFORM));
|
||||
}
|
||||
|
||||
/**
|
||||
* @tc.name: TaskExecutorsTest003
|
||||
* @tc.desc: test synchronous and asynchronous execution of the IO thread
|
||||
* @tc.type: FUNC
|
||||
*/
|
||||
HWTEST_F(TaskExecutorsTest, TaskExecutorsTest003, TestSize.Level0)
|
||||
{
|
||||
/**
|
||||
* @tc.steps: step1. set the synchronous task.
|
||||
* @tc.expected: step1. task gets executed.
|
||||
*/
|
||||
std::string ioTask;
|
||||
taskExecutor_->PostSyncTask([&ioTask]() { ioTask = IOSYNCTASK; }, TaskExecutor::TaskType::IO);
|
||||
ASSERT_TRUE(ioTask == IOSYNCTASK);
|
||||
|
||||
/**
|
||||
* @tc.steps: step2. set asynchronous task.
|
||||
* @tc.expected: step2. task gets executed.
|
||||
*/
|
||||
std::promise<std::string> taskPromise;
|
||||
std::future<std::string> taskFuture = taskPromise.get_future();
|
||||
taskExecutor_->PostDelayedTask([this, &taskPromise]() { this->GetString(IOTASK, std::move(taskPromise)); },
|
||||
TaskExecutor::TaskType::IO, DELAYTIME);
|
||||
ASSERT_TRUE(taskFuture.get() == IOTASK);
|
||||
|
||||
/**
|
||||
* @tc.steps: step3. set empty task.
|
||||
* @tc.expected: step3. result return failed.
|
||||
*/
|
||||
ASSERT_FALSE(taskExecutor_->PostTask(nullptr, TaskExecutor::TaskType::IO));
|
||||
}
|
||||
|
||||
/**
|
||||
* @tc.name: TaskExecutorsTest004
|
||||
* @tc.desc: test synchronous and asynchronous execution of the JS thread
|
||||
* @tc.type: FUNC
|
||||
*/
|
||||
HWTEST_F(TaskExecutorsTest, TaskExecutorsTest004, TestSize.Level0)
|
||||
{
|
||||
/**
|
||||
* @tc.steps: step1. set the synchronous task.
|
||||
* @tc.expected: step1. task gets executed.
|
||||
*/
|
||||
std::string jsTask;
|
||||
taskExecutor_->PostSyncTask([&jsTask]() { jsTask = JSSYNCTASK; }, TaskExecutor::TaskType::JS);
|
||||
ASSERT_TRUE(jsTask == JSSYNCTASK);
|
||||
|
||||
/**
|
||||
* @tc.steps: step2. set asynchronous task.
|
||||
* @tc.expected: step2. task gets executed.
|
||||
*/
|
||||
std::promise<std::string> taskPromise;
|
||||
std::future<std::string> taskFuture = taskPromise.get_future();
|
||||
taskExecutor_->PostDelayedTask([this, &taskPromise]() { this->GetString(JSTASK, std::move(taskPromise)); },
|
||||
TaskExecutor::TaskType::JS, DELAYTIME);
|
||||
ASSERT_TRUE(taskFuture.get() == JSTASK);
|
||||
|
||||
/**
|
||||
* @tc.steps: step3. set empty task.
|
||||
* @tc.expected: step3. result return failed.
|
||||
*/
|
||||
ASSERT_FALSE(taskExecutor_->PostTask(nullptr, TaskExecutor::TaskType::JS));
|
||||
}
|
||||
|
||||
/**
|
||||
* @tc.name: TaskExecutorsTest005
|
||||
* @tc.desc: test synchronous and asynchronous execution of the BACKGROUND thread
|
||||
* @tc.type: FUNC
|
||||
*/
|
||||
HWTEST_F(TaskExecutorsTest, TaskExecutorsTest005, TestSize.Level0)
|
||||
{
|
||||
/**
|
||||
* @tc.steps: step1. set the synchronous task.
|
||||
* @tc.expected: step1. result return failed.
|
||||
*/
|
||||
ASSERT_FALSE(taskExecutor_->PostSyncTask([]() {}, TaskExecutor::TaskType::BACKGROUND));
|
||||
|
||||
/**
|
||||
* @tc.steps: step2. set asynchronous task.
|
||||
* @tc.expected: step2. task gets executed.
|
||||
*/
|
||||
std::promise<std::string> taskPromise;
|
||||
std::future<std::string> taskFuture = taskPromise.get_future();
|
||||
taskExecutor_->PostTask([this, &taskPromise]() { this->GetString(BACKGROUNDTASK, std::move(taskPromise)); },
|
||||
TaskExecutor::TaskType::BACKGROUND);
|
||||
ASSERT_TRUE(taskFuture.get() == BACKGROUNDTASK);
|
||||
|
||||
/**
|
||||
* @tc.steps: step3. set empty task.
|
||||
* @tc.expected: step3. result return failed.
|
||||
*/
|
||||
ASSERT_FALSE(taskExecutor_->PostTask(nullptr, TaskExecutor::TaskType::BACKGROUND));
|
||||
}
|
||||
|
||||
} // namespace OHOS::Ace
|
@ -1,62 +0,0 @@
|
||||
# Copyright (c) 2022 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
|
||||
#
|
||||
# http://www.apache.org/licenses/LICENSE-2.0
|
||||
#
|
||||
# Unless required by applicable law or agreed to in writing, software
|
||||
# distributed under the License is distributed on an "AS IS" BASIS,
|
||||
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
# See the License for the specific language governing permissions and
|
||||
# limitations under the License.
|
||||
|
||||
import("//build/test.gni")
|
||||
import("//foundation/arkui/ace_engine/ace_config.gni")
|
||||
|
||||
if (is_standard_system) {
|
||||
module_output_path = "ace_engine/frameworkbasicability/utils"
|
||||
} else {
|
||||
module_output_path = "ace_engine_full/frameworkbasicability/utils"
|
||||
}
|
||||
|
||||
ohos_unittest("BaseUtilsTest") {
|
||||
module_out_path = module_output_path
|
||||
|
||||
sources = [ "utils_test.cpp" ]
|
||||
|
||||
configs = [
|
||||
":utils_test",
|
||||
"$ace_root:ace_test_config",
|
||||
]
|
||||
configs += [
|
||||
"$ace_root:ace_test_coverage_config",
|
||||
"//third_party/curl:curl_config",
|
||||
]
|
||||
|
||||
deps = [
|
||||
"$ace_root/build:ace_ohos_unittest_base",
|
||||
"$ace_root/frameworks/base:ace_base_ohos",
|
||||
"//third_party/googletest:gmock_main",
|
||||
"//third_party/googletest:gtest_main",
|
||||
]
|
||||
|
||||
external_deps = [ "c_utils:utils" ]
|
||||
|
||||
part_name = ace_engine_part
|
||||
}
|
||||
|
||||
config("utils_test") {
|
||||
visibility = [ ":*" ]
|
||||
include_dirs = [
|
||||
"//commonlibrary/c_utils/base/include",
|
||||
"$ace_root",
|
||||
]
|
||||
}
|
||||
|
||||
group("unittest") {
|
||||
testonly = true
|
||||
deps = []
|
||||
|
||||
deps += [ ":BaseUtilsTest" ]
|
||||
}
|
@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright (c) 2022-2022 Huawei Device Co., Ltd.
|
||||
* Copyright (c) 2022-2023 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
|
||||
|
@ -14,12 +14,12 @@
|
||||
*/
|
||||
|
||||
#include "gtest/gtest.h"
|
||||
|
||||
#define private public
|
||||
#include "test/mock/core/common/mock_container.h"
|
||||
#include "base/utils/system_properties.h"
|
||||
#include "bridge/common/plugin_adapter/plugin_bridge.h"
|
||||
#include "core/common/ace_engine.h"
|
||||
#include "core/common/container.h"
|
||||
#include "core/common/test/mock/mock_container.h"
|
||||
|
||||
using namespace testing;
|
||||
using namespace testing::ext;
|
||||
|
@ -14,11 +14,11 @@
|
||||
*/
|
||||
|
||||
#include "gtest/gtest.h"
|
||||
#include "test/mock/core/common/mock_container.h"
|
||||
|
||||
#include "base/memory/ace_type.h"
|
||||
#include "bridge/common/manifest/manifest_parser.h"
|
||||
#include "core/common/ace_engine.h"
|
||||
#include "core/common/test/mock/mock_container.h"
|
||||
#include "core/components/test/mock/mock_resource_adapter.h"
|
||||
#include "core/components_ng/test/mock/theme/mock_theme_manager.h"
|
||||
#include "core/pipeline_ng/test/mock/mock_interface.h"
|
||||
|
@ -81,10 +81,7 @@ ohos_unittest("js_inspector_test") {
|
||||
":config_js_inspector_test",
|
||||
"$ace_root:ace_config",
|
||||
]
|
||||
configs += [
|
||||
"$ace_root:ace_test_coverage_config",
|
||||
"//third_party/curl:curl_config",
|
||||
]
|
||||
configs += [ "//third_party/curl:curl_config" ]
|
||||
}
|
||||
|
||||
config("config_js_inspector_test") {
|
||||
|
@ -12,7 +12,7 @@
|
||||
# limitations under the License.
|
||||
|
||||
import("//build/test.gni")
|
||||
import("//foundation/arkui/ace_engine/ace_unittest.gni")
|
||||
import("//foundation/arkui/ace_engine/test/unittest/ace_unittest.gni")
|
||||
|
||||
module_output_path = "ace_engine/backenduicomponent/clipboard"
|
||||
|
||||
@ -27,13 +27,10 @@ ohos_unittest("ClipboardTest") {
|
||||
"$ace_root/frameworks/core/common/clipboard/clipboard_proxy.cpp",
|
||||
|
||||
#mock
|
||||
"$ace_root/frameworks/core/common/test/mock/mock_container.cpp",
|
||||
"$ace_root/test/mock/core/common/mock_container.cpp",
|
||||
]
|
||||
|
||||
configs = [
|
||||
"$ace_root:ace_unittest_config",
|
||||
"$ace_root:ace_test_coverage_config",
|
||||
]
|
||||
configs = [ "$ace_root/test/unittest:ace_unittest_config" ]
|
||||
|
||||
deps = [
|
||||
"$ace_root/adapter/ohos/osal:ace_osal_ohos",
|
||||
|
@ -12,7 +12,7 @@
|
||||
# limitations under the License.
|
||||
|
||||
import("//build/test.gni")
|
||||
import("//foundation/arkui/ace_engine/ace_unittest.gni")
|
||||
import("//foundation/arkui/ace_engine/test/unittest/ace_unittest.gni")
|
||||
|
||||
module_output_path = "ace_engine/backenduicomponent/environment"
|
||||
|
||||
@ -28,13 +28,10 @@ ohos_unittest("EnvironmentTest") {
|
||||
"$ace_root/frameworks/core/common/environment/environment_proxy.cpp",
|
||||
|
||||
#mock
|
||||
"$ace_root/frameworks/core/common/test/mock/mock_container.cpp",
|
||||
"$ace_root/test/mock/core/common/mock_container.cpp",
|
||||
]
|
||||
|
||||
configs = [
|
||||
"$ace_root:ace_unittest_config",
|
||||
"$ace_root:ace_test_coverage_config",
|
||||
]
|
||||
configs = [ "$ace_root/test/unittest:ace_unittest_config" ]
|
||||
|
||||
deps = [
|
||||
"$ace_root/adapter/ohos/osal:ace_osal_ohos",
|
||||
|
@ -12,7 +12,7 @@
|
||||
# limitations under the License.
|
||||
|
||||
import("//build/test.gni")
|
||||
import("//foundation/arkui/ace_engine/ace_unittest.gni")
|
||||
import("//foundation/arkui/ace_engine/test/unittest/ace_unittest.gni")
|
||||
|
||||
module_output_path = "ace_engine/backenduicomponent/register"
|
||||
|
||||
@ -29,13 +29,10 @@ ohos_unittest("RegisterTest") {
|
||||
"$ace_root/frameworks/core/common/register/hdc_jdwp.cpp",
|
||||
|
||||
#mock
|
||||
"$ace_root/frameworks/core/common/test/mock/mock_container.cpp",
|
||||
"$ace_root/test/mock/core/common/mock_container.cpp",
|
||||
]
|
||||
|
||||
configs = [
|
||||
"$ace_root:ace_unittest_config",
|
||||
"$ace_root:ace_test_coverage_config",
|
||||
]
|
||||
configs = [ "$ace_root/test/unittest:ace_unittest_config" ]
|
||||
|
||||
deps = [
|
||||
"$ace_root/adapter/ohos/osal:ace_osal_ohos",
|
||||
|
@ -12,7 +12,7 @@
|
||||
# limitations under the License.
|
||||
|
||||
import("//build/test.gni")
|
||||
import("//foundation/arkui/ace_engine/ace_unittest.gni")
|
||||
import("//foundation/arkui/ace_engine/test/unittest/ace_unittest.gni")
|
||||
|
||||
module_output_path = "ace_engine/backenduicomponent/storage"
|
||||
|
||||
@ -28,13 +28,10 @@ ohos_unittest("StorageTest") {
|
||||
"$ace_root/frameworks/core/common/storage/storage_proxy.cpp",
|
||||
|
||||
#mock
|
||||
"$ace_root/frameworks/core/common/test/mock/mock_container.cpp",
|
||||
"$ace_root/test/mock/core/common/mock_container.cpp",
|
||||
]
|
||||
|
||||
configs = [
|
||||
"$ace_root:ace_unittest_config",
|
||||
"$ace_root:ace_test_coverage_config",
|
||||
]
|
||||
configs = [ "$ace_root/test/unittest:ace_unittest_config" ]
|
||||
|
||||
deps = [
|
||||
"$ace_root/adapter/ohos/osal:ace_osal_ohos",
|
||||
|
@ -63,7 +63,6 @@ ohos_unittest("frame_node_test_ng") {
|
||||
|
||||
# mock
|
||||
"$ace_root/frameworks/base/test/mock/mock_system_properties.cpp",
|
||||
"$ace_root/frameworks/core/common/test/mock/mock_container.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/animation/mock_geometry_transition.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/render/mock_drawing_convertor.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/render/mock_render_context.cpp",
|
||||
@ -71,19 +70,18 @@ ohos_unittest("frame_node_test_ng") {
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_element_register.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_base.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_context.cpp",
|
||||
"$ace_root/test/mock/core/common/mock_container.cpp",
|
||||
|
||||
# self
|
||||
"frame_node_test_ng.cpp",
|
||||
]
|
||||
|
||||
deps = [
|
||||
"$ace_root:ace_test_log",
|
||||
"$ace_root/test/unittest:ace_unittest_log",
|
||||
"$ace_root/test/unittest:ace_unittest_trace",
|
||||
"$cjson_root:cjson",
|
||||
"//third_party/googletest:gmock_main",
|
||||
]
|
||||
|
||||
configs = [
|
||||
"$ace_root:ace_test_coverage_config",
|
||||
"$ace_root:ace_unittest_config",
|
||||
]
|
||||
configs = [ "$ace_root/test/unittest:ace_unittest_config" ]
|
||||
}
|
||||
|
@ -62,7 +62,6 @@ ohos_unittest("geometry_node_test_ng") {
|
||||
|
||||
# mock
|
||||
"$ace_root/frameworks/base/test/mock/mock_system_properties.cpp",
|
||||
"$ace_root/frameworks/core/common/test/mock/mock_container.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/animation/mock_geometry_transition.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/render/mock_drawing_convertor.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/render/mock_render_context.cpp",
|
||||
@ -70,19 +69,18 @@ ohos_unittest("geometry_node_test_ng") {
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_element_register.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_base.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_context.cpp",
|
||||
"$ace_root/test/mock/core/common/mock_container.cpp",
|
||||
|
||||
# self
|
||||
"geometry_node_test_ng.cpp",
|
||||
]
|
||||
|
||||
deps = [
|
||||
"$ace_root:ace_test_log",
|
||||
"$ace_root/test/unittest:ace_unittest_log",
|
||||
"$ace_root/test/unittest:ace_unittest_trace",
|
||||
"$cjson_root:cjson",
|
||||
"//third_party/googletest:gmock_main",
|
||||
]
|
||||
|
||||
configs = [
|
||||
"$ace_root:ace_test_coverage_config",
|
||||
"$ace_root:ace_unittest_config",
|
||||
]
|
||||
configs = [ "$ace_root/test/unittest:ace_unittest_config" ]
|
||||
}
|
||||
|
@ -63,7 +63,6 @@ ohos_unittest("inspector_test_ng") {
|
||||
|
||||
# mock
|
||||
"$ace_root/frameworks/base/test/mock/mock_system_properties.cpp",
|
||||
"$ace_root/frameworks/core/common/test/mock/mock_container.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/animation/mock_geometry_transition.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/render/mock_drawing_convertor.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/render/mock_render_context.cpp",
|
||||
@ -71,19 +70,18 @@ ohos_unittest("inspector_test_ng") {
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_element_register.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_base.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_context.cpp",
|
||||
"$ace_root/test/mock/core/common/mock_container.cpp",
|
||||
|
||||
# self
|
||||
"inspector_test_ng.cpp",
|
||||
]
|
||||
|
||||
deps = [
|
||||
"$ace_root:ace_test_log",
|
||||
"$ace_root/test/unittest:ace_unittest_log",
|
||||
"$ace_root/test/unittest:ace_unittest_trace",
|
||||
"$cjson_root:cjson",
|
||||
"//third_party/googletest:gmock_main",
|
||||
]
|
||||
|
||||
configs = [
|
||||
"$ace_root:ace_test_coverage_config",
|
||||
"$ace_root:ace_unittest_config",
|
||||
]
|
||||
configs = [ "$ace_root/test/unittest:ace_unittest_config" ]
|
||||
}
|
||||
|
@ -62,7 +62,6 @@ ohos_unittest("ui_node_test_ng") {
|
||||
|
||||
# mock
|
||||
"$ace_root/frameworks/base/test/mock/mock_system_properties.cpp",
|
||||
"$ace_root/frameworks/core/common/test/mock/mock_container.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/animation/mock_geometry_transition.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/render/mock_drawing_convertor.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/render/mock_render_context.cpp",
|
||||
@ -70,19 +69,18 @@ ohos_unittest("ui_node_test_ng") {
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_element_register.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_base.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_context.cpp",
|
||||
"$ace_root/test/mock/core/common/mock_container.cpp",
|
||||
|
||||
# self
|
||||
"ui_node_test_ng.cpp",
|
||||
]
|
||||
|
||||
deps = [
|
||||
"$ace_root:ace_test_log",
|
||||
"$ace_root/test/unittest:ace_unittest_log",
|
||||
"$ace_root/test/unittest:ace_unittest_trace",
|
||||
"$cjson_root:cjson",
|
||||
"//third_party/googletest:gmock_main",
|
||||
]
|
||||
|
||||
configs = [
|
||||
"$ace_root:ace_test_coverage_config",
|
||||
"$ace_root:ace_unittest_config",
|
||||
]
|
||||
configs = [ "$ace_root/test/unittest:ace_unittest_config" ]
|
||||
}
|
||||
|
@ -62,7 +62,6 @@ ohos_unittest("view_stack_processor_test_ng") {
|
||||
|
||||
# mock
|
||||
"$ace_root/frameworks/base/test/mock/mock_system_properties.cpp",
|
||||
"$ace_root/frameworks/core/common/test/mock/mock_container.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/animation/mock_geometry_transition.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/render/mock_drawing_convertor.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/render/mock_render_context.cpp",
|
||||
@ -70,19 +69,18 @@ ohos_unittest("view_stack_processor_test_ng") {
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_element_register.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_base.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_context.cpp",
|
||||
"$ace_root/test/mock/core/common/mock_container.cpp",
|
||||
|
||||
# self
|
||||
"view_stack_processor_test_ng.cpp",
|
||||
]
|
||||
|
||||
deps = [
|
||||
"$ace_root:ace_test_log",
|
||||
"$ace_root/test/unittest:ace_unittest_log",
|
||||
"$ace_root/test/unittest:ace_unittest_trace",
|
||||
"$cjson_root:cjson",
|
||||
"//third_party/googletest:gmock_main",
|
||||
]
|
||||
|
||||
configs = [
|
||||
"$ace_root:ace_test_coverage_config",
|
||||
"$ace_root:ace_unittest_config",
|
||||
]
|
||||
configs = [ "$ace_root/test/unittest:ace_unittest_config" ]
|
||||
}
|
||||
|
@ -43,7 +43,6 @@ ohos_unittest("click_event_test_ng") {
|
||||
"$ace_root/frameworks/core/components_v2/inspector/inspector_constants.cpp",
|
||||
|
||||
# mock
|
||||
"$ace_root/frameworks/core/common/test/mock/mock_container.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/animation/mock_geometry_transition.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/gesture/recognizers/mock_click_recognizer.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/gesture/recognizers/mock_exclusive_recognizer.cpp",
|
||||
@ -57,21 +56,20 @@ ohos_unittest("click_event_test_ng") {
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_element_register.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_base.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_context.cpp",
|
||||
"$ace_root/test/mock/core/common/mock_container.cpp",
|
||||
|
||||
# self
|
||||
"click_event_test_ng.cpp",
|
||||
]
|
||||
|
||||
deps = [
|
||||
"$ace_root:ace_test_log",
|
||||
"$ace_root/test/unittest:ace_unittest_log",
|
||||
"$ace_root/test/unittest:ace_unittest_trace",
|
||||
"$cjson_root:cjson",
|
||||
"//third_party/googletest:gmock_main",
|
||||
]
|
||||
|
||||
configs = [
|
||||
"$ace_root:ace_test_coverage_config",
|
||||
"$ace_root:ace_unittest_config",
|
||||
]
|
||||
configs = [ "$ace_root/test/unittest:ace_unittest_config" ]
|
||||
|
||||
include_dirs =
|
||||
[ "//foundation/graphic/graphic_2d/rosen/modules/2d_graphics/include" ]
|
||||
|
@ -44,7 +44,6 @@ ohos_unittest("drag_event_test_ng") {
|
||||
"$ace_root/frameworks/core/components_v2/inspector/inspector_constants.cpp",
|
||||
|
||||
# mock
|
||||
"$ace_root/frameworks/core/common/test/mock/mock_container.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/animation/mock_geometry_transition.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/gesture/recognizers/mock_gesture_recognizer.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/gesture/recognizers/mock_long_press_recognizer.cpp",
|
||||
@ -58,21 +57,20 @@ ohos_unittest("drag_event_test_ng") {
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_element_register.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_base.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_context.cpp",
|
||||
"$ace_root/test/mock/core/common/mock_container.cpp",
|
||||
|
||||
# self
|
||||
"drag_event_test_ng.cpp",
|
||||
]
|
||||
|
||||
deps = [
|
||||
"$ace_root:ace_test_log",
|
||||
"$ace_root/test/unittest:ace_unittest_log",
|
||||
"$ace_root/test/unittest:ace_unittest_trace",
|
||||
"$cjson_root:cjson",
|
||||
"//third_party/googletest:gmock_main",
|
||||
]
|
||||
|
||||
configs = [
|
||||
"$ace_root:ace_test_coverage_config",
|
||||
"$ace_root:ace_unittest_config",
|
||||
]
|
||||
configs = [ "$ace_root/test/unittest:ace_unittest_config" ]
|
||||
|
||||
include_dirs =
|
||||
[ "//foundation/graphic/graphic_2d/rosen/modules/2d_graphics/include" ]
|
||||
|
@ -42,7 +42,6 @@ ohos_unittest("event_hub_test_ng") {
|
||||
"$ace_root/frameworks/core/components_v2/inspector/inspector_constants.cpp",
|
||||
|
||||
# mock
|
||||
"$ace_root/frameworks/core/common/test/mock/mock_container.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/animation/mock_geometry_transition.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/gesture/recognizers/mock_exclusive_recognizer.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/gesture/recognizers/mock_gesture_recognizer.cpp",
|
||||
@ -56,21 +55,20 @@ ohos_unittest("event_hub_test_ng") {
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_element_register.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_base.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_context.cpp",
|
||||
"$ace_root/test/mock/core/common/mock_container.cpp",
|
||||
|
||||
# self
|
||||
"event_hub_test_ng.cpp",
|
||||
]
|
||||
|
||||
deps = [
|
||||
"$ace_root:ace_test_log",
|
||||
"$ace_root/test/unittest:ace_unittest_log",
|
||||
"$ace_root/test/unittest:ace_unittest_trace",
|
||||
"$cjson_root:cjson",
|
||||
"//third_party/googletest:gmock_main",
|
||||
]
|
||||
|
||||
configs = [
|
||||
"$ace_root:ace_test_coverage_config",
|
||||
"$ace_root:ace_unittest_config",
|
||||
]
|
||||
configs = [ "$ace_root/test/unittest:ace_unittest_config" ]
|
||||
|
||||
include_dirs =
|
||||
[ "//foundation/graphic/graphic_2d/rosen/modules/2d_graphics/include" ]
|
||||
|
@ -41,7 +41,6 @@ ohos_unittest("focus_hub_test_ng") {
|
||||
|
||||
# mock
|
||||
"$ace_root/frameworks/core/common/test/mock/mock_ace_application_info.cpp",
|
||||
"$ace_root/frameworks/core/common/test/mock/mock_container.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/animation/mock_geometry_transition.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/gesture/recognizers/mock_exclusive_recognizer.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/gesture/recognizers/mock_gesture_recognizer.cpp",
|
||||
@ -59,19 +58,18 @@ ohos_unittest("focus_hub_test_ng") {
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_element_register.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_base.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_context.cpp",
|
||||
"$ace_root/test/mock/core/common/mock_container.cpp",
|
||||
|
||||
# self
|
||||
"focus_hub_test_ng.cpp",
|
||||
]
|
||||
|
||||
deps = [
|
||||
"$ace_root:ace_test_log",
|
||||
"$ace_root/test/unittest:ace_unittest_log",
|
||||
"$ace_root/test/unittest:ace_unittest_trace",
|
||||
"$cjson_root:cjson",
|
||||
"//third_party/googletest:gmock_main",
|
||||
]
|
||||
|
||||
configs = [
|
||||
"$ace_root:ace_test_coverage_config",
|
||||
"$ace_root:ace_unittest_config",
|
||||
]
|
||||
configs = [ "$ace_root/test/unittest:ace_unittest_config" ]
|
||||
}
|
||||
|
@ -13,8 +13,6 @@
|
||||
|
||||
import("//build/test.gni")
|
||||
import("//foundation/arkui/ace_engine/ace_config.gni")
|
||||
import(
|
||||
"//foundation/arkui/ace_engine/frameworks/core/components_ng/components.gni")
|
||||
|
||||
ohos_unittest("gesture_event_hub_test_ng") {
|
||||
module_out_path = "$test_output_path/event/gesture_event_hub"
|
||||
@ -55,7 +53,6 @@ ohos_unittest("gesture_event_hub_test_ng") {
|
||||
"$ace_root/frameworks/base/test/mock/mock_drag_window.cpp",
|
||||
"$ace_root/frameworks/base/test/mock/mock_pixel_map.cpp",
|
||||
"$ace_root/frameworks/core/common/test/mock/mock_clipboard.cpp",
|
||||
"$ace_root/frameworks/core/common/test/mock/mock_container.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/animation/mock_geometry_transition.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/base/mock_frame_node.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/base/mock_ui_node.cpp",
|
||||
@ -72,6 +69,7 @@ ohos_unittest("gesture_event_hub_test_ng") {
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_element_register.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_base.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_context.cpp",
|
||||
"$ace_root/test/mock/core/common/mock_container.cpp",
|
||||
|
||||
# self mock
|
||||
"$ace_root/frameworks/core/components_ng/test/event/mock/mock_click_event.cpp",
|
||||
@ -86,7 +84,8 @@ ohos_unittest("gesture_event_hub_test_ng") {
|
||||
]
|
||||
|
||||
deps = [
|
||||
"$ace_root:ace_test_log",
|
||||
"$ace_root/test/unittest:ace_unittest_log",
|
||||
"$ace_root/test/unittest:ace_unittest_trace",
|
||||
"$cjson_root:cjson",
|
||||
"//foundation/graphic/graphic_2d/rosen/modules/2d_graphics:2d_graphics",
|
||||
"//third_party/googletest:gmock_main",
|
||||
@ -105,7 +104,6 @@ ohos_unittest("gesture_event_hub_test_ng") {
|
||||
}
|
||||
|
||||
configs = [
|
||||
"$ace_root:ace_test_coverage_config",
|
||||
"$ace_root:ace_test_config",
|
||||
"$ace_root:ace_config",
|
||||
"//commonlibrary/c_utils/base:utils_config",
|
||||
|
@ -42,7 +42,6 @@ ohos_unittest("input_event_hub_test_ng") {
|
||||
"$ace_root/frameworks/core/components_v2/inspector/inspector_constants.cpp",
|
||||
|
||||
# mock
|
||||
"$ace_root/frameworks/core/common/test/mock/mock_container.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/animation/mock_geometry_transition.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/gesture/recognizers/mock_exclusive_recognizer.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/gesture/recognizers/mock_gesture_recognizer.cpp",
|
||||
@ -55,21 +54,20 @@ ohos_unittest("input_event_hub_test_ng") {
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_element_register.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_base.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_context.cpp",
|
||||
"$ace_root/test/mock/core/common/mock_container.cpp",
|
||||
|
||||
# self
|
||||
"input_event_hub_test_ng.cpp",
|
||||
]
|
||||
|
||||
deps = [
|
||||
"$ace_root:ace_test_log",
|
||||
"$ace_root/test/unittest:ace_unittest_log",
|
||||
"$ace_root/test/unittest:ace_unittest_trace",
|
||||
"$cjson_root:cjson",
|
||||
"//third_party/googletest:gmock_main",
|
||||
]
|
||||
|
||||
configs = [
|
||||
"$ace_root:ace_test_coverage_config",
|
||||
"$ace_root:ace_unittest_config",
|
||||
]
|
||||
configs = [ "$ace_root/test/unittest:ace_unittest_config" ]
|
||||
|
||||
include_dirs =
|
||||
[ "//foundation/graphic/graphic_2d/rosen/modules/2d_graphics/include" ]
|
||||
|
@ -43,7 +43,6 @@ ohos_unittest("long_press_event_test_ng") {
|
||||
"$ace_root/frameworks/core/components_v2/inspector/inspector_constants.cpp",
|
||||
|
||||
# mock
|
||||
"$ace_root/frameworks/core/common/test/mock/mock_container.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/animation/mock_geometry_transition.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/gesture/recognizers/mock_exclusive_recognizer.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/gesture/recognizers/mock_gesture_recognizer.cpp",
|
||||
@ -57,21 +56,20 @@ ohos_unittest("long_press_event_test_ng") {
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_element_register.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_base.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_context.cpp",
|
||||
"$ace_root/test/mock/core/common/mock_container.cpp",
|
||||
|
||||
# self
|
||||
"long_press_event_test_ng.cpp",
|
||||
]
|
||||
|
||||
deps = [
|
||||
"$ace_root:ace_test_log",
|
||||
"$ace_root/test/unittest:ace_unittest_log",
|
||||
"$ace_root/test/unittest:ace_unittest_trace",
|
||||
"$cjson_root:cjson",
|
||||
"//third_party/googletest:gmock_main",
|
||||
]
|
||||
|
||||
configs = [
|
||||
"$ace_root:ace_test_coverage_config",
|
||||
"$ace_root:ace_unittest_config",
|
||||
]
|
||||
configs = [ "$ace_root/test/unittest:ace_unittest_config" ]
|
||||
|
||||
include_dirs =
|
||||
[ "//foundation/graphic/graphic_2d/rosen/modules/2d_graphics/include" ]
|
||||
|
@ -44,7 +44,6 @@ ohos_unittest("pan_event_test_ng") {
|
||||
"$ace_root/frameworks/core/components_v2/inspector/inspector_constants.cpp",
|
||||
|
||||
# mock
|
||||
"$ace_root/frameworks/core/common/test/mock/mock_container.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/animation/mock_geometry_transition.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/gesture/recognizers/mock_exclusive_recognizer.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/gesture/recognizers/mock_gesture_recognizer.cpp",
|
||||
@ -58,21 +57,20 @@ ohos_unittest("pan_event_test_ng") {
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_element_register.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_base.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_context.cpp",
|
||||
"$ace_root/test/mock/core/common/mock_container.cpp",
|
||||
|
||||
# self
|
||||
"pan_event_test_ng.cpp",
|
||||
]
|
||||
|
||||
deps = [
|
||||
"$ace_root:ace_test_log",
|
||||
"$ace_root/test/unittest:ace_unittest_log",
|
||||
"$ace_root/test/unittest:ace_unittest_trace",
|
||||
"$cjson_root:cjson",
|
||||
"//third_party/googletest:gmock_main",
|
||||
]
|
||||
|
||||
configs = [
|
||||
"$ace_root:ace_test_coverage_config",
|
||||
"$ace_root:ace_unittest_config",
|
||||
]
|
||||
configs = [ "$ace_root/test/unittest:ace_unittest_config" ]
|
||||
|
||||
include_dirs =
|
||||
[ "//foundation/graphic/graphic_2d/rosen/modules/2d_graphics/include" ]
|
||||
|
@ -44,7 +44,6 @@ ohos_unittest("scrollable_event_test_ng") {
|
||||
"$ace_root/frameworks/core/components_v2/inspector/inspector_constants.cpp",
|
||||
|
||||
# mock
|
||||
"$ace_root/frameworks/core/common/test/mock/mock_container.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/animation/mock_geometry_transition.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/gesture/recognizers/mock_exclusive_recognizer.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/gesture/recognizers/mock_gesture_recognizer.cpp",
|
||||
@ -58,6 +57,7 @@ ohos_unittest("scrollable_event_test_ng") {
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_element_register.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_base.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_context.cpp",
|
||||
"$ace_root/test/mock/core/common/mock_container.cpp",
|
||||
"mock_scrollable.cpp",
|
||||
|
||||
# self
|
||||
@ -65,15 +65,13 @@ ohos_unittest("scrollable_event_test_ng") {
|
||||
]
|
||||
|
||||
deps = [
|
||||
"$ace_root:ace_test_log",
|
||||
"$ace_root/test/unittest:ace_unittest_log",
|
||||
"$ace_root/test/unittest:ace_unittest_trace",
|
||||
"$cjson_root:cjson",
|
||||
"//third_party/googletest:gmock_main",
|
||||
]
|
||||
|
||||
configs = [
|
||||
"$ace_root:ace_test_coverage_config",
|
||||
"$ace_root:ace_unittest_config",
|
||||
]
|
||||
configs = [ "$ace_root/test/unittest:ace_unittest_config" ]
|
||||
|
||||
include_dirs =
|
||||
[ "//foundation/graphic/graphic_2d/rosen/modules/2d_graphics/include" ]
|
||||
|
@ -43,7 +43,6 @@ ohos_unittest("touch_event_test_ng") {
|
||||
"$ace_root/frameworks/core/components_v2/inspector/inspector_constants.cpp",
|
||||
|
||||
# mock
|
||||
"$ace_root/frameworks/core/common/test/mock/mock_container.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/animation/mock_geometry_transition.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/layout/mock_box_layout_algorithm.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/layout/mock_layout_property.cpp",
|
||||
@ -52,6 +51,7 @@ ohos_unittest("touch_event_test_ng") {
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_element_register.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_base.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_context.cpp",
|
||||
"$ace_root/test/mock/core/common/mock_container.cpp",
|
||||
|
||||
# self
|
||||
"touch_event_test_ng.cpp",
|
||||
@ -64,10 +64,7 @@ ohos_unittest("touch_event_test_ng") {
|
||||
"//third_party/googletest:gmock_main",
|
||||
]
|
||||
|
||||
configs = [
|
||||
"$ace_root:ace_test_coverage_config",
|
||||
"$ace_root:ace_unittest_config",
|
||||
]
|
||||
configs = [ "$ace_root/test/unittest:ace_unittest_config" ]
|
||||
|
||||
include_dirs =
|
||||
[ "//foundation/graphic/graphic_2d/rosen/modules/2d_graphics/include" ]
|
||||
|
@ -12,7 +12,7 @@
|
||||
# limitations under the License.
|
||||
|
||||
import("//build/test.gni")
|
||||
import("//foundation/arkui/ace_engine/ace_unittest.gni")
|
||||
import("//foundation/arkui/ace_engine/test/unittest/ace_unittest.gni")
|
||||
|
||||
ohos_unittest("image_provider_test_ng") {
|
||||
module_out_path = "$image_test_output_path/"
|
||||
@ -30,7 +30,6 @@ ohos_unittest("image_provider_test_ng") {
|
||||
"$ace_root/frameworks/core/components_ng/image_provider/svg_image_object.cpp",
|
||||
|
||||
# mock
|
||||
"$ace_root/frameworks/core/common/test/mock/mock_container.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/image_provider/mock_flutter_image_provider.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/image_provider/mock_image_cache.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/image_provider/mock_image_loader.cpp",
|
||||
@ -42,6 +41,7 @@ ohos_unittest("image_provider_test_ng") {
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/render/mock_pixmap_image.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/render/mock_skia_canvas_image.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/render/mock_svg_canvas_image.cpp",
|
||||
"$ace_root/test/mock/core/common/mock_container.cpp",
|
||||
|
||||
# test
|
||||
"image_provider_test_ng.cpp",
|
||||
|
@ -37,10 +37,7 @@ ohos_unittest("flex_layout_test_ng") {
|
||||
":config_flex_layout_test",
|
||||
"$ace_root:ace_config",
|
||||
]
|
||||
configs += [
|
||||
"$ace_root:ace_test_coverage_config",
|
||||
"//third_party/curl:curl_config",
|
||||
]
|
||||
configs += [ "//third_party/curl:curl_config" ]
|
||||
}
|
||||
|
||||
config("config_flex_layout_test") {
|
||||
|
@ -38,10 +38,7 @@ ohos_unittest("panel_layout_test_ng") {
|
||||
":config_panel_layout_test",
|
||||
"$ace_root:ace_config",
|
||||
]
|
||||
configs += [
|
||||
"$ace_root:ace_test_coverage_config",
|
||||
"//third_party/curl:curl_config",
|
||||
]
|
||||
configs += [ "//third_party/curl:curl_config" ]
|
||||
}
|
||||
|
||||
config("config_panel_layout_test") {
|
||||
|
@ -49,7 +49,6 @@ ohos_unittest("drag_drop_manager_test_ng") {
|
||||
"$ace_root/frameworks/base/test/mock/mock_drag_window.cpp",
|
||||
"$ace_root/frameworks/base/test/mock/mock_pixel_map.cpp",
|
||||
"$ace_root/frameworks/core/common/test/mock/mock_clipboard.cpp",
|
||||
"$ace_root/frameworks/core/common/test/mock/mock_container.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/base/mock_frame_node.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/base/mock_ui_node.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/layout/mock_box_layout_algorithm.cpp",
|
||||
@ -68,6 +67,7 @@ ohos_unittest("drag_drop_manager_test_ng") {
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_element_register.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_base.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_context.cpp",
|
||||
"$ace_root/test/mock/core/common/mock_container.cpp",
|
||||
|
||||
# self
|
||||
"drag_drop_manager_test_ng.cpp",
|
||||
@ -96,7 +96,6 @@ ohos_unittest("drag_drop_manager_test_ng") {
|
||||
}
|
||||
|
||||
configs = [
|
||||
"$ace_root:ace_test_coverage_config",
|
||||
"$ace_root:ace_test_config",
|
||||
"$ace_root:ace_config",
|
||||
"$ace_flutter_engine_root/skia:skia_config",
|
||||
|
@ -44,7 +44,6 @@ ohos_unittest("drag_drop_proxy_test_ng") {
|
||||
"$ace_root/frameworks/base/test/mock/mock_drag_window.cpp",
|
||||
"$ace_root/frameworks/base/test/mock/mock_pixel_map.cpp",
|
||||
"$ace_root/frameworks/core/common/test/mock/mock_clipboard.cpp",
|
||||
"$ace_root/frameworks/core/common/test/mock/mock_container.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/base/mock_frame_node.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/base/mock_ui_node.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/layout/mock_box_layout_algorithm.cpp",
|
||||
@ -55,6 +54,7 @@ ohos_unittest("drag_drop_proxy_test_ng") {
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_element_register.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_base.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_context.cpp",
|
||||
"$ace_root/test/mock/core/common/mock_container.cpp",
|
||||
|
||||
# self
|
||||
"drag_drop_proxy_test_ng.cpp",
|
||||
@ -70,7 +70,6 @@ ohos_unittest("drag_drop_proxy_test_ng") {
|
||||
]
|
||||
|
||||
configs = [
|
||||
"$ace_root:ace_test_coverage_config",
|
||||
"$ace_root:ace_test_config",
|
||||
"$ace_root:ace_config",
|
||||
"$ace_flutter_engine_root/skia:skia_config",
|
||||
|
@ -32,7 +32,6 @@ ohos_unittest("full_screen_manager_test_ng") {
|
||||
"$ace_root/frameworks/core/components_ng/property/measure_utils.cpp",
|
||||
|
||||
# mock
|
||||
"$ace_root/frameworks/core/common/test/mock/mock_container.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/base/mock_frame_node.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/base/mock_ui_node.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/layout/mock_box_layout_algorithm.cpp",
|
||||
@ -41,6 +40,7 @@ ohos_unittest("full_screen_manager_test_ng") {
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/render/mock_render_context_creator.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_base.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_context.cpp",
|
||||
"$ace_root/test/mock/core/common/mock_container.cpp",
|
||||
|
||||
# self
|
||||
"full_screen_manager_test_ng.cpp",
|
||||
@ -54,7 +54,6 @@ ohos_unittest("full_screen_manager_test_ng") {
|
||||
]
|
||||
|
||||
configs = [
|
||||
"$ace_root:ace_test_coverage_config",
|
||||
"$ace_root:ace_test_config",
|
||||
"$ace_root:ace_config",
|
||||
]
|
||||
|
@ -40,7 +40,6 @@ ohos_unittest("select_overlay_manager_test_ng") {
|
||||
"$ace_root/frameworks/core/components_ng/property/measure_utils.cpp",
|
||||
|
||||
# mock
|
||||
"$ace_root/frameworks/core/common/test/mock/mock_container.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/base/mock_frame_node.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/base/mock_ui_node.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/layout/mock_box_layout_algorithm.cpp",
|
||||
@ -51,6 +50,7 @@ ohos_unittest("select_overlay_manager_test_ng") {
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/render/mock_render_context_creator.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_base.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_context.cpp",
|
||||
"$ace_root/test/mock/core/common/mock_container.cpp",
|
||||
|
||||
# self
|
||||
"select_overlay_manager_test_ng.cpp",
|
||||
@ -66,7 +66,6 @@ ohos_unittest("select_overlay_manager_test_ng") {
|
||||
]
|
||||
|
||||
configs = [
|
||||
"$ace_root:ace_test_coverage_config",
|
||||
"$ace_root:ace_test_config",
|
||||
"$ace_root:ace_config",
|
||||
"$ace_flutter_engine_root/skia:skia_config",
|
||||
|
@ -39,7 +39,6 @@ ohos_unittest("select_overlay_proxy_test_ng") {
|
||||
"$ace_root/frameworks/core/components_ng/property/measure_utils.cpp",
|
||||
|
||||
# mock
|
||||
"$ace_root/frameworks/core/common/test/mock/mock_container.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/base/mock_frame_node.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/base/mock_ui_node.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/layout/mock_box_layout_algorithm.cpp",
|
||||
@ -51,6 +50,7 @@ ohos_unittest("select_overlay_proxy_test_ng") {
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/render/mock_render_context_creator.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_base.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_context.cpp",
|
||||
"$ace_root/test/mock/core/common/mock_container.cpp",
|
||||
|
||||
# self
|
||||
"select_overlay_proxy_test_ng.cpp",
|
||||
@ -66,7 +66,6 @@ ohos_unittest("select_overlay_proxy_test_ng") {
|
||||
]
|
||||
|
||||
configs = [
|
||||
"$ace_root:ace_test_coverage_config",
|
||||
"$ace_root:ace_test_config",
|
||||
"$ace_root:ace_config",
|
||||
"$ace_flutter_engine_root/skia:skia_config",
|
||||
|
@ -45,7 +45,6 @@ ohos_unittest("shared_overlay_manager_test_ng") {
|
||||
# mock
|
||||
"$ace_root/frameworks/core/animation/test/mock/mock_animator.cpp",
|
||||
"$ace_root/frameworks/core/animation/test/mock/mock_scheduler.cpp",
|
||||
"$ace_root/frameworks/core/common/test/mock/mock_container.cpp",
|
||||
"$ace_root/frameworks/core/components/common/properties/test/mock/mock_motion_path_evaluator.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/animation/mock_geometry_transition.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/base/mock_dump_log.cpp",
|
||||
@ -59,19 +58,20 @@ ohos_unittest("shared_overlay_manager_test_ng") {
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_element_register.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_base.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_context.cpp",
|
||||
"$ace_root/test/mock/core/common/mock_container.cpp",
|
||||
|
||||
# self
|
||||
"shared_overlay_manager_test_ng.cpp",
|
||||
]
|
||||
|
||||
deps = [
|
||||
"$ace_root:ace_test_log",
|
||||
"$ace_root/test/unittest:ace_unittest_log",
|
||||
"$ace_root/test/unittest:ace_unittest_trace",
|
||||
"$cjson_root:cjson",
|
||||
"//third_party/googletest:gmock_main",
|
||||
]
|
||||
|
||||
configs = [
|
||||
"$ace_root:ace_test_coverage_config",
|
||||
"$ace_root:ace_test_config",
|
||||
"$ace_root:ace_config",
|
||||
]
|
||||
|
@ -108,7 +108,7 @@ ohos_unittest("ability_component_pattern_test_ng") {
|
||||
|
||||
configs = [
|
||||
"$ace_root:ace_test_config",
|
||||
"$ace_root:ace_test_coverage_config",
|
||||
|
||||
"$ace_root:ace_config",
|
||||
"$ace_flutter_engine_root:flutter_config",
|
||||
"$ace_flutter_engine_root/skia:skia_config",
|
||||
|
@ -12,7 +12,7 @@
|
||||
# limitations under the License.
|
||||
|
||||
import("//build/test.gni")
|
||||
import("//foundation/arkui/ace_engine/ace_unittest.gni")
|
||||
import("//foundation/arkui/ace_engine/test/unittest/ace_unittest.gni")
|
||||
|
||||
ohos_unittest("badge_pattern_test_ng") {
|
||||
module_out_path = "$pattern_test_output_path/badge"
|
||||
|
@ -12,7 +12,7 @@
|
||||
# limitations under the License.
|
||||
|
||||
import("//build/test.gni")
|
||||
import("//foundation/arkui/ace_engine/ace_unittest.gni")
|
||||
import("//foundation/arkui/ace_engine/test/unittest/ace_unittest.gni")
|
||||
|
||||
ohos_unittest("blank_pattern_test_ng") {
|
||||
module_out_path = "$pattern_test_output_path/blank"
|
||||
|
@ -12,7 +12,7 @@
|
||||
# limitations under the License.
|
||||
|
||||
import("//build/test.gni")
|
||||
import("//foundation/arkui/ace_engine/ace_unittest.gni")
|
||||
import("//foundation/arkui/ace_engine/test/unittest/ace_unittest.gni")
|
||||
|
||||
ohos_unittest("bubble_pattern_test_ng") {
|
||||
module_out_path = "$pattern_test_output_path/bubble"
|
||||
@ -42,7 +42,7 @@ ohos_unittest("bubble_pattern_test_ng") {
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/pattern/flex/mock_flex_layout_algorithm.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/pattern/text/mock_text_layout_algorithm.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/pattern/text/mock_text_pattern.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/unittest/mock_overlay_manager.cpp",
|
||||
"$ace_root/test/unittest/core/pipeline/mock_overlay_manager.cpp",
|
||||
|
||||
# self
|
||||
"$ace_root/frameworks/core/components_ng/pattern/bubble/bubble_layout_algorithm.cpp",
|
||||
|
@ -12,7 +12,7 @@
|
||||
# limitations under the License.
|
||||
|
||||
import("//build/test.gni")
|
||||
import("//foundation/arkui/ace_engine/ace_unittest.gni")
|
||||
import("//foundation/arkui/ace_engine/test/unittest/ace_unittest.gni")
|
||||
|
||||
ohos_unittest("button_pattern_test_ng") {
|
||||
module_out_path = "$pattern_test_output_path/button"
|
||||
|
@ -31,8 +31,6 @@ ohos_unittest("calendar_pattern_test_ng") {
|
||||
":config_calendar_test",
|
||||
"$ace_root:ace_config",
|
||||
]
|
||||
|
||||
configs += [ "$ace_root:ace_test_coverage_config" ]
|
||||
}
|
||||
|
||||
config("config_calendar_test") {
|
||||
|
@ -97,7 +97,6 @@ ohos_unittest("checkbox_pattern_test_ng") {
|
||||
"$ace_root/frameworks/base/test/mock/mock_system_properties.cpp",
|
||||
"$ace_root/frameworks/core/animation/test/mock/mock_animator.cpp",
|
||||
"$ace_root/frameworks/core/common/test/mock/mock_ace_application_info.cpp",
|
||||
"$ace_root/frameworks/core/common/test/mock/mock_container.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/animation/mock_geometry_transition.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/render/mock_drawing_convertor.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/render/mock_render_context.cpp",
|
||||
@ -105,6 +104,7 @@ ohos_unittest("checkbox_pattern_test_ng") {
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_element_register.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_base.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_context.cpp",
|
||||
"$ace_root/test/mock/core/common/mock_container.cpp",
|
||||
|
||||
# self
|
||||
"$ace_root/frameworks/core/components_ng/pattern/checkbox/checkbox_layout_algorithm.cpp",
|
||||
@ -123,13 +123,11 @@ ohos_unittest("checkbox_pattern_test_ng") {
|
||||
]
|
||||
|
||||
deps = [
|
||||
"$ace_root:ace_test_log",
|
||||
"$ace_root/test/unittest:ace_unittest_log",
|
||||
"$ace_root/test/unittest:ace_unittest_trace",
|
||||
"$cjson_root:cjson_static",
|
||||
"//third_party/googletest:gmock_main",
|
||||
]
|
||||
|
||||
configs = [
|
||||
"$ace_root:ace_unittest_config",
|
||||
"$ace_root:ace_test_coverage_config",
|
||||
]
|
||||
configs = [ "$ace_root/test/unittest:ace_unittest_config" ]
|
||||
}
|
||||
|
@ -97,7 +97,6 @@ ohos_unittest("checkboxgroup_pattern_test_ng") {
|
||||
"$ace_root/frameworks/base/test/mock/mock_system_properties.cpp",
|
||||
"$ace_root/frameworks/core/animation/test/mock/mock_animator.cpp",
|
||||
"$ace_root/frameworks/core/common/test/mock/mock_ace_application_info.cpp",
|
||||
"$ace_root/frameworks/core/common/test/mock/mock_container.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/animation/mock_geometry_transition.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/render/mock_drawing_convertor.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/render/mock_render_context.cpp",
|
||||
@ -105,6 +104,7 @@ ohos_unittest("checkboxgroup_pattern_test_ng") {
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_element_register.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_base.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_context.cpp",
|
||||
"$ace_root/test/mock/core/common/mock_container.cpp",
|
||||
|
||||
# self
|
||||
"$ace_root/frameworks/core/components_ng/pattern/checkbox/checkbox_layout_algorithm.cpp",
|
||||
@ -123,13 +123,11 @@ ohos_unittest("checkboxgroup_pattern_test_ng") {
|
||||
]
|
||||
|
||||
deps = [
|
||||
"$ace_root:ace_test_log",
|
||||
"$ace_root/test/unittest:ace_unittest_log",
|
||||
"$ace_root/test/unittest:ace_unittest_trace",
|
||||
"$cjson_root:cjson_static",
|
||||
"//third_party/googletest:gmock_main",
|
||||
]
|
||||
|
||||
configs = [
|
||||
"$ace_root:ace_unittest_config",
|
||||
"$ace_root:ace_test_coverage_config",
|
||||
]
|
||||
configs = [ "$ace_root/test/unittest:ace_unittest_config" ]
|
||||
}
|
||||
|
@ -31,10 +31,7 @@ ohos_unittest("common_view_test_ng") {
|
||||
":config_commmon_view_test",
|
||||
"$ace_root:ace_config",
|
||||
]
|
||||
configs += [
|
||||
"$ace_root:ace_test_coverage_config",
|
||||
"//third_party/curl:curl_config",
|
||||
]
|
||||
configs += [ "//third_party/curl:curl_config" ]
|
||||
}
|
||||
|
||||
config("config_commmon_view_test") {
|
||||
|
@ -146,7 +146,6 @@ ohos_unittest("container_modal_test_ng") {
|
||||
"$ace_root/frameworks/core/animation/cubic_curve.cpp",
|
||||
"$ace_root/frameworks/core/animation/curves.cpp",
|
||||
"$ace_root/frameworks/core/common/test/mock/mock_ace_application_info.cpp",
|
||||
"$ace_root/frameworks/core/common/test/mock/mock_container.cpp",
|
||||
"$ace_root/frameworks/core/components/theme/theme_constants.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/pattern/image/image_layout_algorithm.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/pattern/image/image_model_ng.cpp",
|
||||
@ -185,6 +184,7 @@ ohos_unittest("container_modal_test_ng") {
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_element_register.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_base.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_context.cpp",
|
||||
"$ace_root/test/mock/core/common/mock_container.cpp",
|
||||
|
||||
# self
|
||||
"$ace_root/frameworks/core/components_ng/pattern/container_modal/container_modal_pattern.cpp",
|
||||
@ -206,7 +206,7 @@ ohos_unittest("container_modal_test_ng") {
|
||||
|
||||
configs = [
|
||||
"$ace_root:ace_config",
|
||||
"$ace_root:ace_test_coverage_config",
|
||||
|
||||
"$ace_root:ace_test_config",
|
||||
"$ace_flutter_engine_root:flutter_config",
|
||||
"$ace_flutter_engine_root/skia:skia_config",
|
||||
|
@ -96,7 +96,6 @@ ohos_unittest("counter_pattern_test_ng") {
|
||||
"$ace_root/frameworks/core/animation/test/mock/mock_animator.cpp",
|
||||
"$ace_root/frameworks/core/animation/test/mock/mock_scheduler.cpp",
|
||||
"$ace_root/frameworks/core/common/test/mock/mock_ace_application_info.cpp",
|
||||
"$ace_root/frameworks/core/common/test/mock/mock_container.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/animation/mock_geometry_transition.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/base/mock_dump_log.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/base/mock_localization.cpp",
|
||||
@ -109,6 +108,7 @@ ohos_unittest("counter_pattern_test_ng") {
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_element_register.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_base.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_context.cpp",
|
||||
"$ace_root/test/mock/core/common/mock_container.cpp",
|
||||
|
||||
# self
|
||||
"$ace_root//frameworks/core/components_ng/pattern/counter/counter_node.cpp",
|
||||
@ -119,14 +119,15 @@ ohos_unittest("counter_pattern_test_ng") {
|
||||
]
|
||||
|
||||
deps = [
|
||||
"$ace_root:ace_test_log",
|
||||
"$ace_root/test/unittest:ace_unittest_log",
|
||||
"$ace_root/test/unittest:ace_unittest_trace",
|
||||
"$cjson_root:cjson",
|
||||
"//third_party/googletest:gmock_main",
|
||||
]
|
||||
|
||||
configs = [
|
||||
"$ace_root:ace_unittest_config",
|
||||
"$ace_root:ace_test_coverage_config",
|
||||
"$ace_root/test/unittest:ace_unittest_config",
|
||||
|
||||
"//commonlibrary/c_utils/base:utils_config",
|
||||
]
|
||||
}
|
||||
|
@ -37,8 +37,6 @@ ohos_unittest("custom_paint_pattern_test_ng") {
|
||||
":config_custom_paint_test",
|
||||
"$ace_root:ace_config",
|
||||
]
|
||||
|
||||
configs += [ "$ace_root:ace_test_coverage_config" ]
|
||||
}
|
||||
|
||||
config("config_custom_paint_test") {
|
||||
|
@ -17,11 +17,11 @@
|
||||
#include <sys/types.h>
|
||||
|
||||
#include "gtest/gtest.h"
|
||||
#include "test/mock/core/common/mock_container.h"
|
||||
|
||||
#include "base/memory/ace_type.h"
|
||||
#include "base/memory/referenced.h"
|
||||
#include "core/common/ace_engine.h"
|
||||
#include "core/common/test/mock/mock_container.h"
|
||||
#include "core/components_ng/base/frame_node.h"
|
||||
#include "core/components_ng/base/view_stack_processor.h"
|
||||
#include "core/components_ng/pattern/flex/flex_layout_algorithm.h"
|
||||
|
@ -21,17 +21,14 @@
|
||||
#define private public
|
||||
#define protected public
|
||||
|
||||
#include "test/mock/core/common/mock_container.h"
|
||||
|
||||
#include "base/memory/ace_type.h"
|
||||
#include "base/memory/referenced.h"
|
||||
#include "core/common/ace_engine.h"
|
||||
#include "core/common/test/mock/mock_container.h"
|
||||
#include "core/components/common/properties/color.h"
|
||||
#include "core/components_ng/base/frame_node.h"
|
||||
#include "core/components_ng/base/view_stack_processor.h"
|
||||
#include "core/components_ng/test/pattern/custom_paint/common_constants.h"
|
||||
#include "core/components_v2/inspector/inspector_constants.h"
|
||||
#include "core/pipeline_ng/test/mock/mock_interface.h"
|
||||
#include "core/pipeline_ng/test/mock/mock_pipeline_base.h"
|
||||
#include "core/components_ng/layout/layout_wrapper.h"
|
||||
#include "core/components_ng/pattern/custom_paint/canvas_paint_method.h"
|
||||
#include "core/components_ng/pattern/custom_paint/custom_paint_event_hub.h"
|
||||
@ -39,6 +36,10 @@
|
||||
#include "core/components_ng/pattern/custom_paint/custom_paint_paint_method.h"
|
||||
#include "core/components_ng/pattern/custom_paint/custom_paint_pattern.h"
|
||||
#include "core/components_ng/pattern/custom_paint/custom_paint_view.h"
|
||||
#include "core/components_ng/test/pattern/custom_paint/common_constants.h"
|
||||
#include "core/components_v2/inspector/inspector_constants.h"
|
||||
#include "core/pipeline_ng/test/mock/mock_interface.h"
|
||||
#include "core/pipeline_ng/test/mock/mock_pipeline_base.h"
|
||||
|
||||
using namespace testing;
|
||||
using namespace testing::ext;
|
||||
|
@ -18,11 +18,11 @@
|
||||
|
||||
#include "gtest/gtest.h"
|
||||
#include "include/core/SkColorFilter.h"
|
||||
#include "test/mock/core/common/mock_container.h"
|
||||
|
||||
#include "base/memory/ace_type.h"
|
||||
#include "base/memory/referenced.h"
|
||||
#include "core/common/ace_engine.h"
|
||||
#include "core/common/test/mock/mock_container.h"
|
||||
#include "core/components_ng/base/frame_node.h"
|
||||
#include "core/components_ng/base/view_stack_processor.h"
|
||||
#include "core/components_ng/test/pattern/custom_paint/common_constants.h"
|
||||
|
@ -17,11 +17,11 @@
|
||||
#include <optional>
|
||||
|
||||
#include "gtest/gtest.h"
|
||||
#include "test/mock/core/common/mock_container.h"
|
||||
|
||||
#include "base/memory/ace_type.h"
|
||||
#include "base/memory/referenced.h"
|
||||
#include "core/common/ace_engine.h"
|
||||
#include "core/common/test/mock/mock_container.h"
|
||||
#include "core/components_ng/base/frame_node.h"
|
||||
#include "core/components_ng/base/view_stack_processor.h"
|
||||
#include "core/components_ng/test/pattern/custom_paint/common_constants.h"
|
||||
|
@ -12,7 +12,7 @@
|
||||
# limitations under the License.
|
||||
|
||||
import("//build/test.gni")
|
||||
import("//foundation/arkui/ace_engine/ace_unittest.gni")
|
||||
import("//foundation/arkui/ace_engine/test/unittest/ace_unittest.gni")
|
||||
|
||||
ohos_unittest("data_panel_pattern_test_ng") {
|
||||
module_out_path = "$pattern_test_output_path/data_panel"
|
||||
|
@ -12,7 +12,7 @@
|
||||
# limitations under the License.
|
||||
|
||||
import("//build/test.gni")
|
||||
import("//foundation/arkui/ace_engine/ace_unittest.gni")
|
||||
import("//foundation/arkui/ace_engine/test/unittest/ace_unittest.gni")
|
||||
|
||||
ohos_unittest("divider_pattern_test_ng") {
|
||||
module_out_path = "$pattern_test_output_path/divider"
|
||||
|
@ -12,7 +12,7 @@
|
||||
# limitations under the License.
|
||||
|
||||
import("//build/test.gni")
|
||||
import("//foundation/arkui/ace_engine/ace_unittest.gni")
|
||||
import("//foundation/arkui/ace_engine/test/unittest/ace_unittest.gni")
|
||||
|
||||
ohos_unittest("form_pattern_test_ng") {
|
||||
module_out_path = "$pattern_test_output_path/form"
|
||||
|
@ -12,7 +12,7 @@
|
||||
# limitations under the License.
|
||||
|
||||
import("//build/test.gni")
|
||||
import("//foundation/arkui/ace_engine/ace_unittest.gni")
|
||||
import("//foundation/arkui/ace_engine/test/unittest/ace_unittest.gni")
|
||||
|
||||
ohos_unittest("gauge_pattern_test_ng") {
|
||||
module_out_path = "$pattern_test_output_path/gauge"
|
||||
|
@ -12,7 +12,7 @@
|
||||
# limitations under the License.
|
||||
|
||||
import("//build/test.gni")
|
||||
import("//foundation/arkui/ace_engine/ace_unittest.gni")
|
||||
import("//foundation/arkui/ace_engine/test/unittest/ace_unittest.gni")
|
||||
|
||||
ohos_unittest("grid_pattern_test_ng") {
|
||||
module_out_path = "$pattern_test_output_path/grid"
|
||||
|
@ -12,7 +12,7 @@
|
||||
# limitations under the License.
|
||||
|
||||
import("//build/test.gni")
|
||||
import("//foundation/arkui/ace_engine/ace_unittest.gni")
|
||||
import("//foundation/arkui/ace_engine/test/unittest/ace_unittest.gni")
|
||||
|
||||
ohos_unittest("grid_col_pattern_test_ng") {
|
||||
module_out_path = "$pattern_test_output_path/grid_col"
|
||||
|
@ -12,7 +12,7 @@
|
||||
# limitations under the License.
|
||||
|
||||
import("//build/test.gni")
|
||||
import("//foundation/arkui/ace_engine/ace_unittest.gni")
|
||||
import("//foundation/arkui/ace_engine/test/unittest/ace_unittest.gni")
|
||||
|
||||
ohos_unittest("image_pattern_test_ng") {
|
||||
module_out_path = "$pattern_test_output_path/image"
|
||||
|
@ -56,7 +56,6 @@ ohos_unittest("image_animator_pattern_test") {
|
||||
# mock
|
||||
"$ace_root/frameworks/base/test/mock/mock_system_properties.cpp",
|
||||
"$ace_root/frameworks/core/common/test/mock/mock_ace_application_info.cpp",
|
||||
"$ace_root/frameworks/core/common/test/mock/mock_container.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/base/mock_frame_node.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/base/mock_ui_node.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/base/mock_view_stack_processor.cpp",
|
||||
@ -70,6 +69,7 @@ ohos_unittest("image_animator_pattern_test") {
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_element_register.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_base.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_context.cpp",
|
||||
"$ace_root/test/mock/core/common/mock_container.cpp",
|
||||
|
||||
# self
|
||||
"image_animator_view_test_ng.cpp",
|
||||
@ -77,7 +77,8 @@ ohos_unittest("image_animator_pattern_test") {
|
||||
|
||||
deps = [
|
||||
"$ace_flutter_engine_root/skia:ace_skia_ohos",
|
||||
"$ace_root:ace_test_log",
|
||||
"$ace_root/test/unittest:ace_unittest_log",
|
||||
"$ace_root/test/unittest:ace_unittest_trace",
|
||||
"$cjson_root:cjson",
|
||||
"//foundation/graphic/graphic_2d/rosen/modules/2d_graphics:2d_graphics",
|
||||
"//foundation/graphic/graphic_2d/rosen/modules/render_service_client:librender_service_client",
|
||||
@ -85,8 +86,8 @@ ohos_unittest("image_animator_pattern_test") {
|
||||
]
|
||||
|
||||
configs = [
|
||||
"$ace_root:ace_unittest_config",
|
||||
"$ace_root:ace_test_coverage_config",
|
||||
"$ace_root/test/unittest:ace_unittest_config",
|
||||
|
||||
"$ace_root:ace_config",
|
||||
"$ace_flutter_engine_root:flutter_config",
|
||||
"$ace_flutter_engine_root/skia:skia_config",
|
||||
|
@ -78,7 +78,6 @@ ohos_unittest("linear_layout_pattern_test_ng") {
|
||||
# mock
|
||||
"$ace_root/frameworks/base/test/mock/mock_system_properties.cpp",
|
||||
"$ace_root/frameworks/core/common/test/mock/mock_ace_application_info.cpp",
|
||||
"$ace_root/frameworks/core/common/test/mock/mock_container.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/animation/mock_geometry_transition.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/base/mock_localization.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/render/mock_drawing_convertor.cpp",
|
||||
@ -87,6 +86,7 @@ ohos_unittest("linear_layout_pattern_test_ng") {
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_element_register.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_base.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_context.cpp",
|
||||
"$ace_root/test/mock/core/common/mock_container.cpp",
|
||||
|
||||
# self
|
||||
"$ace_root/frameworks/core/components_ng/pattern/linear_layout/column_model_ng.cpp",
|
||||
@ -97,13 +97,11 @@ ohos_unittest("linear_layout_pattern_test_ng") {
|
||||
]
|
||||
|
||||
deps = [
|
||||
"$ace_root:ace_test_log",
|
||||
"$ace_root/test/unittest:ace_unittest_log",
|
||||
"$ace_root/test/unittest:ace_unittest_trace",
|
||||
"$cjson_root:cjson_static",
|
||||
"//third_party/googletest:gmock_main",
|
||||
]
|
||||
|
||||
configs = [
|
||||
"$ace_root:ace_unittest_config",
|
||||
"$ace_root:ace_test_coverage_config",
|
||||
]
|
||||
configs = [ "$ace_root/test/unittest:ace_unittest_config" ]
|
||||
}
|
||||
|
@ -12,7 +12,7 @@
|
||||
# limitations under the License.
|
||||
|
||||
import("//build/test.gni")
|
||||
import("//foundation/arkui/ace_engine/ace_unittest.gni")
|
||||
import("//foundation/arkui/ace_engine/test/unittest/ace_unittest.gni")
|
||||
|
||||
ohos_unittest("linear_split_pattern_test_ng") {
|
||||
module_out_path = "$pattern_test_output_path/linear_split"
|
||||
|
@ -92,7 +92,6 @@ common_sources = [
|
||||
"$ace_root/frameworks/core/animation/test/mock/mock_animator.cpp",
|
||||
"$ace_root/frameworks/core/animation/test/mock/mock_scheduler.cpp",
|
||||
"$ace_root/frameworks/core/common/test/mock/mock_ace_application_info.cpp",
|
||||
"$ace_root/frameworks/core/common/test/mock/mock_container.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/event/mock/mock_drag_event.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/event/mock/mock_long_press_event.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/event/mock/mock_pan_event.cpp",
|
||||
@ -113,7 +112,8 @@ common_sources = [
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_element_register.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_base.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_context.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/unittest/mock_drag_drop_manager.cpp",
|
||||
"$ace_root/test/mock/core/common/mock_container.cpp",
|
||||
"$ace_root/test/unittest/core/pipeline/mock_drag_drop_manager.cpp",
|
||||
|
||||
# scroll
|
||||
"$ace_root/frameworks/core/components_ng/pattern/scroll/effect/scroll_fade_controller.cpp",
|
||||
@ -161,15 +161,13 @@ ohos_unittest("list_pattern_test_ng") {
|
||||
sources = test_sources + common_sources
|
||||
|
||||
deps = [
|
||||
"$ace_root:ace_test_log",
|
||||
"$ace_root/test/unittest:ace_unittest_log",
|
||||
"$ace_root/test/unittest:ace_unittest_trace",
|
||||
"$cjson_root:cjson_static",
|
||||
"//third_party/googletest:gmock_main",
|
||||
]
|
||||
|
||||
configs = [
|
||||
"$ace_root:ace_unittest_config",
|
||||
"$ace_root:ace_test_coverage_config",
|
||||
]
|
||||
configs = [ "$ace_root/test/unittest:ace_unittest_config" ]
|
||||
}
|
||||
|
||||
ohos_unittest("list_test_ng") {
|
||||
@ -180,13 +178,11 @@ ohos_unittest("list_test_ng") {
|
||||
sources = common_sources + test_sources
|
||||
|
||||
deps = [
|
||||
"$ace_root:ace_test_log",
|
||||
"$ace_root/test/unittest:ace_unittest_log",
|
||||
"$ace_root/test/unittest:ace_unittest_trace",
|
||||
"$cjson_root:cjson_static",
|
||||
"//third_party/googletest:gmock_main",
|
||||
]
|
||||
|
||||
configs = [
|
||||
"$ace_root:ace_unittest_config",
|
||||
"$ace_root:ace_test_coverage_config",
|
||||
]
|
||||
configs = [ "$ace_root/test/unittest:ace_unittest_config" ]
|
||||
}
|
||||
|
@ -84,7 +84,6 @@ ohos_unittest("loading_progress_pattern_test_ng") {
|
||||
|
||||
# mock
|
||||
"$ace_root/frameworks/base/test/mock/mock_system_properties.cpp",
|
||||
"$ace_root/frameworks/core/common/test/mock/mock_container.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/animation/mock_geometry_transition.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/render/mock_animation_utils.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/render/mock_drawing_convertor.cpp",
|
||||
@ -94,6 +93,7 @@ ohos_unittest("loading_progress_pattern_test_ng") {
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_element_register.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_base.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_context.cpp",
|
||||
"$ace_root/test/mock/core/common/mock_container.cpp",
|
||||
|
||||
# self
|
||||
"$ace_root/frameworks/core/components_ng/pattern/loading_progress/loading_progress_layout_algorithm.cpp",
|
||||
@ -104,13 +104,11 @@ ohos_unittest("loading_progress_pattern_test_ng") {
|
||||
]
|
||||
|
||||
deps = [
|
||||
"$ace_root:ace_test_log",
|
||||
"$ace_root/test/unittest:ace_unittest_log",
|
||||
"$ace_root/test/unittest:ace_unittest_trace",
|
||||
"$cjson_root:cjson",
|
||||
"//third_party/googletest:gmock_main",
|
||||
]
|
||||
|
||||
configs = [
|
||||
"$ace_root:ace_test_coverage_config",
|
||||
"$ace_root:ace_unittest_config",
|
||||
]
|
||||
configs = [ "$ace_root/test/unittest:ace_unittest_config" ]
|
||||
}
|
||||
|
@ -117,7 +117,6 @@ ohos_unittest("menu_layout_algorithm_test_ng") {
|
||||
"$ace_root/frameworks/core/animation/test/mock/mock_animator.cpp",
|
||||
"$ace_root/frameworks/core/animation/test/mock/mock_scheduler.cpp",
|
||||
"$ace_root/frameworks/core/common/test/mock/mock_ace_application_info.cpp",
|
||||
"$ace_root/frameworks/core/common/test/mock/mock_container.cpp",
|
||||
"$ace_root/frameworks/core/components/test/unittest/mock/mock_icon_theme.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/animation/mock_geometry_transition.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/base/mock_dump_log.cpp",
|
||||
@ -137,7 +136,8 @@ ohos_unittest("menu_layout_algorithm_test_ng") {
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_element_register.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_base.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_context.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/unittest/mock_overlay_manager.cpp",
|
||||
"$ace_root/test/mock/core/common/mock_container.cpp",
|
||||
"$ace_root/test/unittest/core/pipeline/mock_overlay_manager.cpp",
|
||||
|
||||
# self
|
||||
"$ace_root/frameworks/core/components_ng/pattern/menu/menu_layout_algorithm.cpp",
|
||||
@ -151,14 +151,15 @@ ohos_unittest("menu_layout_algorithm_test_ng") {
|
||||
]
|
||||
|
||||
deps = [
|
||||
"$ace_root:ace_test_log",
|
||||
"$ace_root/test/unittest:ace_unittest_log",
|
||||
"$ace_root/test/unittest:ace_unittest_trace",
|
||||
"$cjson_root:cjson_static",
|
||||
"//third_party/googletest:gmock_main",
|
||||
]
|
||||
|
||||
configs = [
|
||||
"$ace_root:ace_unittest_config",
|
||||
"$ace_root:ace_test_coverage_config",
|
||||
"$ace_root/test/unittest:ace_unittest_config",
|
||||
|
||||
"//commonlibrary/c_utils/base:utils_config",
|
||||
]
|
||||
}
|
||||
|
@ -150,7 +150,6 @@ ohos_unittest("navigation_pattern_test_ng") {
|
||||
"$ace_root/frameworks/base/test/mock/mock_drag_window.cpp",
|
||||
"$ace_root/frameworks/base/test/mock/mock_system_properties.cpp",
|
||||
"$ace_root/frameworks/core/common/test/mock/mock_ace_application_info.cpp",
|
||||
"$ace_root/frameworks/core/common/test/mock/mock_container.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/pattern/navigation/bar_item_layout_algorithm.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/pattern/navigation/bar_item_node.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/pattern/navigation/bar_item_pattern.cpp",
|
||||
@ -181,6 +180,7 @@ ohos_unittest("navigation_pattern_test_ng") {
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_element_register.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_base.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_context.cpp",
|
||||
"$ace_root/test/mock/core/common/mock_container.cpp",
|
||||
|
||||
# NavigationGroupNode
|
||||
"$ace_root/frameworks/base/test/mock/mock_animatable_dimension.cpp",
|
||||
@ -235,7 +235,7 @@ ohos_unittest("navigation_pattern_test_ng") {
|
||||
|
||||
configs = [
|
||||
"$ace_root:ace_config",
|
||||
"$ace_root:ace_test_coverage_config",
|
||||
|
||||
"$ace_root:ace_test_config",
|
||||
"$ace_flutter_engine_root:flutter_config",
|
||||
"$ace_flutter_engine_root/skia:skia_config",
|
||||
|
@ -89,7 +89,8 @@ ohos_unittest("panel_option_test_ng") {
|
||||
deps = [
|
||||
"$ace_flutter_engine_root:third_party_flutter_engine_ohos",
|
||||
"$ace_flutter_engine_root/skia:ace_skia_ohos",
|
||||
"$ace_root:ace_test_log",
|
||||
"$ace_root/test/unittest:ace_unittest_log",
|
||||
"$ace_root/test/unittest:ace_unittest_trace",
|
||||
"$cjson_root:cjson",
|
||||
"//foundation/graphic/graphic_2d/rosen/modules/2d_graphics:2d_graphics",
|
||||
"//foundation/graphic/graphic_2d/rosen/modules/render_service_client:librender_service_client",
|
||||
@ -97,7 +98,6 @@ ohos_unittest("panel_option_test_ng") {
|
||||
]
|
||||
|
||||
configs = [
|
||||
"$ace_root:ace_test_coverage_config",
|
||||
"$ace_root:ace_test_config",
|
||||
"$ace_root:ace_config",
|
||||
"$ace_flutter_engine_root:flutter_config",
|
||||
|
@ -12,7 +12,7 @@
|
||||
# limitations under the License.
|
||||
|
||||
import("//build/test.gni")
|
||||
import("//foundation/arkui/ace_engine/ace_unittest.gni")
|
||||
import("//foundation/arkui/ace_engine/test/unittest/ace_unittest.gni")
|
||||
|
||||
ohos_unittest("overlay_manager_test_ng") {
|
||||
module_out_path = "$pattern_test_output_path/overlay"
|
||||
|
@ -97,7 +97,6 @@ ohos_unittest("patternlock_pattern_test_ng") {
|
||||
"$ace_root/frameworks/base/test/mock/mock_system_properties.cpp",
|
||||
"$ace_root/frameworks/core/animation/test/mock/mock_animator.cpp",
|
||||
"$ace_root/frameworks/core/common/test/mock/mock_ace_application_info.cpp",
|
||||
"$ace_root/frameworks/core/common/test/mock/mock_container.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/animation/mock_geometry_transition.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/base/mock_stage_manager.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/render/mock_drawing_convertor.cpp",
|
||||
@ -106,6 +105,7 @@ ohos_unittest("patternlock_pattern_test_ng") {
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_element_register.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_base.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_context.cpp",
|
||||
"$ace_root/test/mock/core/common/mock_container.cpp",
|
||||
|
||||
# self
|
||||
"$ace_root/frameworks/core/components_ng/pattern/patternlock/patternlock_layout_algorithm.cpp",
|
||||
@ -117,13 +117,11 @@ ohos_unittest("patternlock_pattern_test_ng") {
|
||||
]
|
||||
|
||||
deps = [
|
||||
"$ace_root:ace_test_log",
|
||||
"$ace_root/test/unittest:ace_unittest_log",
|
||||
"$ace_root/test/unittest:ace_unittest_trace",
|
||||
"$cjson_root:cjson",
|
||||
"//third_party/googletest:gmock_main",
|
||||
]
|
||||
|
||||
configs = [
|
||||
"$ace_root:ace_unittest_config",
|
||||
"$ace_root:ace_test_coverage_config",
|
||||
]
|
||||
configs = [ "$ace_root/test/unittest:ace_unittest_config" ]
|
||||
}
|
||||
|
@ -157,7 +157,6 @@ ohos_unittest("picker_pattern_test_ng") {
|
||||
"$ace_root/frameworks/base/test/mock/mock_system_properties.cpp",
|
||||
"$ace_root/frameworks/core/animation/test/mock/mock_animator.cpp",
|
||||
"$ace_root/frameworks/core/common/test/mock/mock_ace_application_info.cpp",
|
||||
"$ace_root/frameworks/core/common/test/mock/mock_container.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/animation/mock_geometry_transition.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/base/mock_localization.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/base/mock_view_stack_processor.cpp",
|
||||
@ -175,6 +174,7 @@ ohos_unittest("picker_pattern_test_ng") {
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_element_register.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_base.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_context.cpp",
|
||||
"$ace_root/test/mock/core/common/mock_container.cpp",
|
||||
|
||||
# self
|
||||
"datepicker_pattern_test_ng.cpp",
|
||||
@ -184,15 +184,13 @@ ohos_unittest("picker_pattern_test_ng") {
|
||||
deps = [
|
||||
"$ace_flutter_engine_root:third_party_flutter_engine_ohos",
|
||||
"$ace_flutter_engine_root/skia:ace_skia_ohos",
|
||||
"$ace_root:ace_test_log",
|
||||
"$ace_root/test/unittest:ace_unittest_log",
|
||||
"$ace_root/test/unittest:ace_unittest_trace",
|
||||
"$cjson_root:cjson",
|
||||
"//foundation/graphic/graphic_2d/rosen/modules/2d_graphics:2d_graphics",
|
||||
"//foundation/graphic/graphic_2d/rosen/modules/render_service_client:librender_service_client",
|
||||
"//third_party/googletest:gmock_main",
|
||||
]
|
||||
|
||||
configs = [
|
||||
"$ace_root:ace_test_coverage_config",
|
||||
"$ace_root:ace_test_config",
|
||||
]
|
||||
configs = [ "$ace_root:ace_test_config" ]
|
||||
}
|
||||
|
@ -12,7 +12,7 @@
|
||||
# limitations under the License.
|
||||
|
||||
import("//build/test.gni")
|
||||
import("//foundation/arkui/ace_engine/ace_unittest.gni")
|
||||
import("//foundation/arkui/ace_engine/test/unittest/ace_unittest.gni")
|
||||
|
||||
ohos_unittest("plugin_pattern_test_ng") {
|
||||
module_out_path = "$pattern_test_output_path/plugin"
|
||||
|
@ -83,7 +83,6 @@ ohos_unittest("progress_pattern_test_ng") {
|
||||
|
||||
# mock
|
||||
"$ace_root/frameworks/base/test/mock/mock_system_properties.cpp",
|
||||
"$ace_root/frameworks/core/common/test/mock/mock_container.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/animation/mock_geometry_transition.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/render/mock_drawing_convertor.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/render/mock_render_context.cpp",
|
||||
@ -91,6 +90,7 @@ ohos_unittest("progress_pattern_test_ng") {
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_element_register.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_base.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_context.cpp",
|
||||
"$ace_root/test/mock/core/common/mock_container.cpp",
|
||||
|
||||
# self
|
||||
"$ace_root/frameworks/core/components_ng/pattern/progress/progress_layout_algorithm.cpp",
|
||||
@ -102,13 +102,11 @@ ohos_unittest("progress_pattern_test_ng") {
|
||||
]
|
||||
|
||||
deps = [
|
||||
"$ace_root:ace_test_log",
|
||||
"$ace_root/test/unittest:ace_unittest_log",
|
||||
"$ace_root/test/unittest:ace_unittest_trace",
|
||||
"$cjson_root:cjson",
|
||||
"//third_party/googletest:gmock_main",
|
||||
]
|
||||
|
||||
configs = [
|
||||
"$ace_root:ace_test_coverage_config",
|
||||
"$ace_root:ace_unittest_config",
|
||||
]
|
||||
configs = [ "$ace_root/test/unittest:ace_unittest_config" ]
|
||||
}
|
||||
|
@ -81,7 +81,6 @@ ohos_unittest("qrcode_pattern_test_ng") {
|
||||
|
||||
# mock
|
||||
"$ace_root/frameworks/base/test/mock/mock_system_properties.cpp",
|
||||
"$ace_root/frameworks/core/common/test/mock/mock_container.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/animation/mock_geometry_transition.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/render/mock_drawing_convertor.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/render/mock_render_context.cpp",
|
||||
@ -89,6 +88,7 @@ ohos_unittest("qrcode_pattern_test_ng") {
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_element_register.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_base.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_context.cpp",
|
||||
"$ace_root/test/mock/core/common/mock_container.cpp",
|
||||
|
||||
# self
|
||||
"$ace_root/frameworks/core/components_ng/pattern/qrcode/qrcode_layout_algorithm.cpp",
|
||||
@ -99,15 +99,16 @@ ohos_unittest("qrcode_pattern_test_ng") {
|
||||
]
|
||||
|
||||
deps = [
|
||||
"$ace_root:ace_test_log",
|
||||
"$ace_root/test/unittest:ace_unittest_log",
|
||||
"$ace_root/test/unittest:ace_unittest_trace",
|
||||
"$cjson_root:cjson",
|
||||
"//foundation/arkui/ace_engine/frameworks/core/components/qrcode:qrcodegen",
|
||||
"//third_party/googletest:gmock_main",
|
||||
]
|
||||
|
||||
configs = [
|
||||
"$ace_root:ace_unittest_config",
|
||||
"$ace_root:ace_test_coverage_config",
|
||||
"$ace_root/test/unittest:ace_unittest_config",
|
||||
|
||||
"//commonlibrary/c_utils/base:utils_config",
|
||||
]
|
||||
}
|
||||
|
@ -97,7 +97,6 @@ ohos_unittest("radio_pattern_test_ng") {
|
||||
"$ace_root/frameworks/base/test/mock/mock_system_properties.cpp",
|
||||
"$ace_root/frameworks/core/animation/test/mock/mock_animator.cpp",
|
||||
"$ace_root/frameworks/core/common/test/mock/mock_ace_application_info.cpp",
|
||||
"$ace_root/frameworks/core/common/test/mock/mock_container.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/animation/mock_geometry_transition.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/render/mock_drawing_convertor.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/render/mock_render_context.cpp",
|
||||
@ -105,6 +104,7 @@ ohos_unittest("radio_pattern_test_ng") {
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_element_register.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_base.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_context.cpp",
|
||||
"$ace_root/test/mock/core/common/mock_container.cpp",
|
||||
|
||||
# self
|
||||
"$ace_root/frameworks/core/components_ng/pattern/radio/radio_layout_algorithm.cpp",
|
||||
@ -117,13 +117,11 @@ ohos_unittest("radio_pattern_test_ng") {
|
||||
]
|
||||
|
||||
deps = [
|
||||
"$ace_root:ace_test_log",
|
||||
"$ace_root/test/unittest:ace_unittest_log",
|
||||
"$ace_root/test/unittest:ace_unittest_trace",
|
||||
"$cjson_root:cjson",
|
||||
"//third_party/googletest:gmock_main",
|
||||
]
|
||||
|
||||
configs = [
|
||||
"$ace_root:ace_unittest_config",
|
||||
"$ace_root:ace_test_coverage_config",
|
||||
]
|
||||
configs = [ "$ace_root/test/unittest:ace_unittest_config" ]
|
||||
}
|
||||
|
@ -87,7 +87,6 @@ ohos_unittest("rating_pattern_test_ng") {
|
||||
# mock
|
||||
"$ace_root/frameworks/base/test/mock/mock_system_properties.cpp",
|
||||
"$ace_root/frameworks/core/common/test/mock/mock_ace_application_info.cpp",
|
||||
"$ace_root/frameworks/core/common/test/mock/mock_container.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/animation/mock_geometry_transition.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/gesture/recognizers/mock_click_recognizer.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/gesture/recognizers/mock_exclusive_recognizer.cpp",
|
||||
@ -107,6 +106,7 @@ ohos_unittest("rating_pattern_test_ng") {
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_element_register.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_base.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_context.cpp",
|
||||
"$ace_root/test/mock/core/common/mock_container.cpp",
|
||||
|
||||
# self
|
||||
"$ace_root/frameworks/core/components_ng/pattern/rating/rating_layout_algorithm.cpp",
|
||||
@ -118,13 +118,11 @@ ohos_unittest("rating_pattern_test_ng") {
|
||||
]
|
||||
|
||||
deps = [
|
||||
"$ace_root:ace_test_log",
|
||||
"$ace_root/test/unittest:ace_unittest_log",
|
||||
"$ace_root/test/unittest:ace_unittest_trace",
|
||||
"$cjson_root:cjson",
|
||||
"//third_party/googletest:gmock_main",
|
||||
]
|
||||
|
||||
configs = [
|
||||
"$ace_root:ace_unittest_config",
|
||||
"$ace_root:ace_test_coverage_config",
|
||||
]
|
||||
configs = [ "$ace_root/test/unittest:ace_unittest_config" ]
|
||||
}
|
||||
|
@ -153,7 +153,6 @@ ohos_unittest("refresh_pattern_test_ng") {
|
||||
"$ace_root/frameworks/base/test/mock/mock_drag_window.cpp",
|
||||
"$ace_root/frameworks/base/test/mock/mock_system_properties.cpp",
|
||||
"$ace_root/frameworks/core/common/test/mock/mock_ace_application_info.cpp",
|
||||
"$ace_root/frameworks/core/common/test/mock/mock_container.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/animation/mock_geometry_transition.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/base/mock_localization.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/manager/drag_drop/mock_drag_drop_manager.cpp",
|
||||
@ -166,6 +165,7 @@ ohos_unittest("refresh_pattern_test_ng") {
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_element_register.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_base.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_context.cpp",
|
||||
"$ace_root/test/mock/core/common/mock_container.cpp",
|
||||
|
||||
# self
|
||||
"$ace_root/frameworks/core/components_ng/pattern/refresh/refresh_layout_algorithm.cpp",
|
||||
@ -175,13 +175,11 @@ ohos_unittest("refresh_pattern_test_ng") {
|
||||
]
|
||||
|
||||
deps = [
|
||||
"$ace_root:ace_test_log",
|
||||
"$ace_root/test/unittest:ace_unittest_log",
|
||||
"$ace_root/test/unittest:ace_unittest_trace",
|
||||
"$cjson_root:cjson",
|
||||
"//third_party/googletest:gmock_main",
|
||||
]
|
||||
|
||||
configs = [
|
||||
"$ace_root:ace_unittest_config",
|
||||
"$ace_root:ace_test_coverage_config",
|
||||
]
|
||||
configs = [ "$ace_root/test/unittest:ace_unittest_config" ]
|
||||
}
|
||||
|
@ -116,7 +116,6 @@ ohos_unittest("select_pattern_test_ng") {
|
||||
"$ace_root/frameworks/core/animation/test/mock/mock_animator.cpp",
|
||||
"$ace_root/frameworks/core/animation/test/mock/mock_scheduler.cpp",
|
||||
"$ace_root/frameworks/core/common/test/mock/mock_ace_application_info.cpp",
|
||||
"$ace_root/frameworks/core/common/test/mock/mock_container.cpp",
|
||||
"$ace_root/frameworks/core/components/test/unittest/mock/mock_icon_theme.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/animation/mock_geometry_transition.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/base/mock_dump_log.cpp",
|
||||
@ -136,7 +135,8 @@ ohos_unittest("select_pattern_test_ng") {
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_element_register.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_base.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_context.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/unittest/mock_overlay_manager.cpp",
|
||||
"$ace_root/test/mock/core/common/mock_container.cpp",
|
||||
"$ace_root/test/unittest/core/pipeline/mock_overlay_manager.cpp",
|
||||
|
||||
# self
|
||||
"$ace_root/frameworks/core/components_ng/pattern/select/select_layout_algorithm.cpp",
|
||||
@ -147,14 +147,15 @@ ohos_unittest("select_pattern_test_ng") {
|
||||
]
|
||||
|
||||
deps = [
|
||||
"$ace_root:ace_test_log",
|
||||
"$ace_root/test/unittest:ace_unittest_log",
|
||||
"$ace_root/test/unittest:ace_unittest_trace",
|
||||
"$cjson_root:cjson_static",
|
||||
"//third_party/googletest:gmock_main",
|
||||
]
|
||||
|
||||
configs = [
|
||||
"$ace_root:ace_unittest_config",
|
||||
"$ace_root:ace_test_coverage_config",
|
||||
"$ace_root/test/unittest:ace_unittest_config",
|
||||
|
||||
"//commonlibrary/c_utils/base:utils_config",
|
||||
]
|
||||
}
|
||||
|
@ -12,7 +12,7 @@
|
||||
# limitations under the License.
|
||||
|
||||
import("//build/test.gni")
|
||||
import("//foundation/arkui/ace_engine/ace_unittest.gni")
|
||||
import("//foundation/arkui/ace_engine/test/unittest/ace_unittest.gni")
|
||||
|
||||
ohos_unittest("side_bar_pattern_test_ng") {
|
||||
module_out_path = "$pattern_test_output_path/side_bar"
|
||||
|
@ -128,7 +128,6 @@ ohos_unittest("slider_pattern_test_ng") {
|
||||
"$ace_root/frameworks/base/test/mock/mock_ressched_report.cpp",
|
||||
"$ace_root/frameworks/base/test/mock/mock_system_properties.cpp",
|
||||
"$ace_root/frameworks/core/common/test/mock/mock_ace_application_info.cpp",
|
||||
"$ace_root/frameworks/core/common/test/mock/mock_container.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/animation/mock_geometry_transition.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/base/mock_localization.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/pattern/select_overlay/mock_select_overlay_node.cpp",
|
||||
@ -143,6 +142,7 @@ ohos_unittest("slider_pattern_test_ng") {
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_element_register.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_base.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_context.cpp",
|
||||
"$ace_root/test/mock/core/common/mock_container.cpp",
|
||||
|
||||
#self
|
||||
"$ace_root/frameworks/core/components_ng/pattern/slider/slider_accessibility_property.cpp",
|
||||
@ -154,14 +154,12 @@ ohos_unittest("slider_pattern_test_ng") {
|
||||
]
|
||||
|
||||
deps = [
|
||||
"$ace_root:ace_test_log",
|
||||
"$ace_root/test/unittest:ace_unittest_log",
|
||||
"$ace_root/test/unittest:ace_unittest_trace",
|
||||
"$cjson_root:cjson",
|
||||
"//foundation/window/window_manager/wm:libwm",
|
||||
"//third_party/googletest:gmock_main",
|
||||
]
|
||||
|
||||
configs = [
|
||||
"$ace_root:ace_unittest_config",
|
||||
"$ace_root:ace_test_coverage_config",
|
||||
]
|
||||
configs = [ "$ace_root/test/unittest:ace_unittest_config" ]
|
||||
}
|
||||
|
@ -12,7 +12,7 @@
|
||||
# limitations under the License.
|
||||
|
||||
import("//build/test.gni")
|
||||
import("//foundation/arkui/ace_engine/ace_unittest.gni")
|
||||
import("//foundation/arkui/ace_engine/test/unittest/ace_unittest.gni")
|
||||
|
||||
ohos_unittest("stepper_pattern_test_ng") {
|
||||
module_out_path = "$pattern_test_output_path/stepper"
|
||||
|
@ -101,7 +101,6 @@ ohos_unittest("swiper_pattern_test_ng") {
|
||||
"$ace_root/frameworks/base/test/mock/mock_system_properties.cpp",
|
||||
"$ace_root/frameworks/core/animation/test/mock/mock_animator.cpp",
|
||||
"$ace_root/frameworks/core/common/test/mock/mock_ace_application_info.cpp",
|
||||
"$ace_root/frameworks/core/common/test/mock/mock_container.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/event/mock/mock_click_event.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/event/mock/mock_pan_event.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/animation/mock_geometry_transition.cpp",
|
||||
@ -114,6 +113,7 @@ ohos_unittest("swiper_pattern_test_ng") {
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_element_register.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_base.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_context.cpp",
|
||||
"$ace_root/test/mock/core/common/mock_container.cpp",
|
||||
|
||||
# self
|
||||
"$ace_root/frameworks/core/components_ng/pattern/swiper/swiper_layout_algorithm.cpp",
|
||||
@ -129,7 +129,8 @@ ohos_unittest("swiper_pattern_test_ng") {
|
||||
]
|
||||
|
||||
deps = [
|
||||
"$ace_root:ace_test_log",
|
||||
"$ace_root/test/unittest:ace_unittest_log",
|
||||
"$ace_root/test/unittest:ace_unittest_trace",
|
||||
"$cjson_root:cjson",
|
||||
"//third_party/googletest:gmock_main",
|
||||
]
|
||||
@ -157,7 +158,6 @@ ohos_unittest("swiper_pattern_test_ng") {
|
||||
configs = [
|
||||
":config_swiper_indicator_test",
|
||||
"$ace_root:ace_config",
|
||||
"$ace_root:ace_test_coverage_config",
|
||||
]
|
||||
}
|
||||
|
||||
|
@ -145,7 +145,6 @@ ohos_unittest("text_pattern_test_ng") {
|
||||
"$ace_root/frameworks/base/test/mock/mock_drag_window.cpp",
|
||||
"$ace_root/frameworks/base/test/mock/mock_system_properties.cpp",
|
||||
"$ace_root/frameworks/core/common/test/mock/mock_ace_application_info.cpp",
|
||||
"$ace_root/frameworks/core/common/test/mock/mock_container.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/animation/mock_geometry_transition.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/base/mock_localization.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/base/mock_view_stack_processor.cpp",
|
||||
@ -162,6 +161,7 @@ ohos_unittest("text_pattern_test_ng") {
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_element_register.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_base.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_context.cpp",
|
||||
"$ace_root/test/mock/core/common/mock_container.cpp",
|
||||
|
||||
# self
|
||||
"span_pattern_test_ng.cpp",
|
||||
@ -185,7 +185,7 @@ ohos_unittest("text_pattern_test_ng") {
|
||||
|
||||
configs = [
|
||||
"$ace_root:ace_config",
|
||||
"$ace_root:ace_test_coverage_config",
|
||||
|
||||
"$ace_root:ace_test_config",
|
||||
"$ace_flutter_engine_root:flutter_config",
|
||||
"$ace_flutter_engine_root/skia:skia_config",
|
||||
|
@ -42,7 +42,6 @@ ohos_unittest("text_clock_pattern_test_ng") {
|
||||
|
||||
# mock
|
||||
"$ace_root/frameworks/base/test/mock/mock_system_properties.cpp",
|
||||
"$ace_root/frameworks/core/common/test/mock/mock_container.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/base/mock_frame_node.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/base/mock_localization.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/base/mock_ui_node.cpp",
|
||||
@ -55,6 +54,7 @@ ohos_unittest("text_clock_pattern_test_ng") {
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/render/mock_canvas.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/render/mock_render_context_creator.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/render/mock_render_property.cpp",
|
||||
"$ace_root/test/mock/core/common/mock_container.cpp",
|
||||
|
||||
# self
|
||||
"text_clock_pattern_test_ng.cpp",
|
||||
@ -82,7 +82,7 @@ ohos_unittest("text_clock_pattern_test_ng") {
|
||||
configs = [
|
||||
":config_text_clock_test",
|
||||
"$ace_root:ace_config",
|
||||
"$ace_root:ace_test_coverage_config",
|
||||
|
||||
"$ace_root:ace_test_config",
|
||||
]
|
||||
|
||||
|
@ -42,7 +42,6 @@ ohos_unittest("text_timer_pattern_test_ng") {
|
||||
|
||||
# mock
|
||||
"$ace_root/frameworks/base/test/mock/mock_system_properties.cpp",
|
||||
"$ace_root/frameworks/core/common/test/mock/mock_container.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/base/mock_frame_node.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/base/mock_localization.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/base/mock_ui_node.cpp",
|
||||
@ -55,6 +54,7 @@ ohos_unittest("text_timer_pattern_test_ng") {
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/render/mock_canvas.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/render/mock_render_context_creator.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/render/mock_render_property.cpp",
|
||||
"$ace_root/test/mock/core/common/mock_container.cpp",
|
||||
|
||||
# self
|
||||
"text_timer_pattern_test_ng.cpp",
|
||||
@ -82,7 +82,7 @@ ohos_unittest("text_timer_pattern_test_ng") {
|
||||
configs = [
|
||||
":config_text_timer_test",
|
||||
"$ace_root:ace_config",
|
||||
"$ace_root:ace_test_coverage_config",
|
||||
|
||||
"$ace_root:ace_test_config",
|
||||
]
|
||||
|
||||
|
@ -93,7 +93,6 @@ ohos_unittest("toggle_pattern_test_ng") {
|
||||
"$ace_root/frameworks/core/animation/test/mock/mock_animator.cpp",
|
||||
"$ace_root/frameworks/core/animation/test/mock/mock_scheduler.cpp",
|
||||
"$ace_root/frameworks/core/common/test/mock/mock_ace_application_info.cpp",
|
||||
"$ace_root/frameworks/core/common/test/mock/mock_container.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/animation/mock_geometry_transition.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/base/mock_stage_manager.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/render/mock_animation_utils.cpp",
|
||||
@ -103,6 +102,7 @@ ohos_unittest("toggle_pattern_test_ng") {
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_element_register.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_base.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_context.cpp",
|
||||
"$ace_root/test/mock/core/common/mock_container.cpp",
|
||||
|
||||
# self
|
||||
"$ace_root/frameworks/core/components_ng/pattern/button/button_layout_algorithm.cpp",
|
||||
@ -123,14 +123,15 @@ ohos_unittest("toggle_pattern_test_ng") {
|
||||
]
|
||||
|
||||
deps = [
|
||||
"$ace_root:ace_test_log",
|
||||
"$ace_root/test/unittest:ace_unittest_log",
|
||||
"$ace_root/test/unittest:ace_unittest_trace",
|
||||
"$cjson_root:cjson",
|
||||
"//third_party/googletest:gmock_main",
|
||||
]
|
||||
|
||||
configs = [
|
||||
"$ace_root:ace_unittest_config",
|
||||
"$ace_root:ace_test_coverage_config",
|
||||
"$ace_root/test/unittest:ace_unittest_config",
|
||||
|
||||
"//commonlibrary/c_utils/base:utils_config",
|
||||
]
|
||||
}
|
||||
|
@ -160,7 +160,6 @@ ohos_unittest("video_pattern_test_ng") {
|
||||
"$ace_root/frameworks/base/test/mock/mock_drag_window.cpp",
|
||||
"$ace_root/frameworks/base/test/mock/mock_system_properties.cpp",
|
||||
"$ace_root/frameworks/core/common/test/mock/mock_ace_application_info.cpp",
|
||||
"$ace_root/frameworks/core/common/test/mock/mock_container.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/animation/mock_geometry_transition.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/base/mock_localization.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/image_provider/mock_image_loading_context.cpp",
|
||||
@ -182,6 +181,7 @@ ohos_unittest("video_pattern_test_ng") {
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_element_register.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_base.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_context.cpp",
|
||||
"$ace_root/test/mock/core/common/mock_container.cpp",
|
||||
|
||||
# self
|
||||
"$ace_root/frameworks/core/components_ng/pattern/video/video_layout_algorithm.cpp",
|
||||
@ -191,13 +191,11 @@ ohos_unittest("video_pattern_test_ng") {
|
||||
]
|
||||
|
||||
deps = [
|
||||
"$ace_root:ace_test_log",
|
||||
"$ace_root/test/unittest:ace_unittest_log",
|
||||
"$ace_root/test/unittest:ace_unittest_trace",
|
||||
"$cjson_root:cjson",
|
||||
"//third_party/googletest:gmock_main",
|
||||
]
|
||||
|
||||
configs = [
|
||||
"$ace_root:ace_test_coverage_config",
|
||||
"$ace_root:ace_unittest_config",
|
||||
]
|
||||
configs = [ "$ace_root/test/unittest:ace_unittest_config" ]
|
||||
}
|
||||
|
@ -12,7 +12,7 @@
|
||||
# limitations under the License.
|
||||
|
||||
import("//build/test.gni")
|
||||
import("//foundation/arkui/ace_engine/ace_unittest.gni")
|
||||
import("//foundation/arkui/ace_engine/test/unittest/ace_unittest.gni")
|
||||
|
||||
ohos_unittest("xcomponent_pattern_test_ng") {
|
||||
module_out_path = "$pattern_test_output_path/xcomponent"
|
||||
|
@ -31,10 +31,7 @@ ohos_unittest("dialog_property_test_ng") {
|
||||
":config_dialog_test",
|
||||
"$ace_root:ace_config",
|
||||
]
|
||||
configs += [
|
||||
"$ace_root:ace_test_coverage_config",
|
||||
"//third_party/curl:curl_config",
|
||||
]
|
||||
configs += [ "//third_party/curl:curl_config" ]
|
||||
}
|
||||
|
||||
config("config_dialog_test") {
|
||||
|
@ -31,10 +31,7 @@ ohos_unittest("panel_property_test_ng") {
|
||||
":config_panel_test",
|
||||
"$ace_root:ace_config",
|
||||
]
|
||||
configs += [
|
||||
"$ace_root:ace_test_coverage_config",
|
||||
"//third_party/curl:curl_config",
|
||||
]
|
||||
configs += [ "//third_party/curl:curl_config" ]
|
||||
}
|
||||
|
||||
config("config_panel_test") {
|
||||
|
@ -31,10 +31,7 @@ ohos_unittest("swiper_property_test_ng") {
|
||||
":config_swiper_test",
|
||||
"$ace_root:ace_config",
|
||||
]
|
||||
configs += [
|
||||
"$ace_root:ace_test_coverage_config",
|
||||
"//third_party/curl:curl_config",
|
||||
]
|
||||
configs += [ "//third_party/curl:curl_config" ]
|
||||
}
|
||||
|
||||
config("config_swiper_test") {
|
||||
|
@ -67,13 +67,13 @@ ohos_unittest("for_each_syntax_test_ng") {
|
||||
# mock
|
||||
"$ace_root/frameworks/base/test/mock/mock_system_properties.cpp",
|
||||
"$ace_root/frameworks/core/common/test/mock/mock_ace_application_info.cpp",
|
||||
"$ace_root/frameworks/core/common/test/mock/mock_container.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/animation/mock_geometry_transition.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/render/mock_render_context.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/render/mock_render_context_creator.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_element_register.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_base.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_context.cpp",
|
||||
"$ace_root/test/mock/core/common/mock_container.cpp",
|
||||
|
||||
# components_ng_event
|
||||
"$ace_root/frameworks/core/components_ng/event/event_hub.cpp",
|
||||
@ -104,13 +104,11 @@ ohos_unittest("for_each_syntax_test_ng") {
|
||||
]
|
||||
|
||||
deps = [
|
||||
"$ace_root:ace_test_log",
|
||||
"$ace_root/test/unittest:ace_unittest_log",
|
||||
"$ace_root/test/unittest:ace_unittest_trace",
|
||||
"$cjson_root:cjson",
|
||||
"//third_party/googletest:gmock_main",
|
||||
]
|
||||
|
||||
configs = [
|
||||
"$ace_root:ace_unittest_config",
|
||||
"$ace_root:ace_test_coverage_config",
|
||||
]
|
||||
configs = [ "$ace_root/test/unittest:ace_unittest_config" ]
|
||||
}
|
||||
|
@ -57,13 +57,13 @@ ohos_unittest("if_else_syntax_test_ng") {
|
||||
# mock
|
||||
"$ace_root/frameworks/base/test/mock/mock_system_properties.cpp",
|
||||
"$ace_root/frameworks/core/common/test/mock/mock_ace_application_info.cpp",
|
||||
"$ace_root/frameworks/core/common/test/mock/mock_container.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/animation/mock_geometry_transition.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/render/mock_render_context.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/render/mock_render_context_creator.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_element_register.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_base.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_context.cpp",
|
||||
"$ace_root/test/mock/core/common/mock_container.cpp",
|
||||
|
||||
# components_ng_event
|
||||
"$ace_root/frameworks/core/components_ng/event/event_hub.cpp",
|
||||
@ -94,13 +94,11 @@ ohos_unittest("if_else_syntax_test_ng") {
|
||||
]
|
||||
|
||||
deps = [
|
||||
"$ace_root:ace_test_log",
|
||||
"$ace_root/test/unittest:ace_unittest_log",
|
||||
"$ace_root/test/unittest:ace_unittest_trace",
|
||||
"$cjson_root:cjson",
|
||||
"//third_party/googletest:gmock_main",
|
||||
]
|
||||
|
||||
configs = [
|
||||
"$ace_root:ace_unittest_config",
|
||||
"$ace_root:ace_test_coverage_config",
|
||||
]
|
||||
configs = [ "$ace_root/test/unittest:ace_unittest_config" ]
|
||||
}
|
||||
|
@ -58,13 +58,13 @@ ohos_unittest("lazy_for_each_syntax_test_ng") {
|
||||
# mock
|
||||
"$ace_root/frameworks/base/test/mock/mock_system_properties.cpp",
|
||||
"$ace_root/frameworks/core/common/test/mock/mock_ace_application_info.cpp",
|
||||
"$ace_root/frameworks/core/common/test/mock/mock_container.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/animation/mock_geometry_transition.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/render/mock_render_context.cpp",
|
||||
"$ace_root/frameworks/core/components_ng/test/mock/render/mock_render_context_creator.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_element_register.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_base.cpp",
|
||||
"$ace_root/frameworks/core/pipeline_ng/test/mock/mock_pipeline_context.cpp",
|
||||
"$ace_root/test/mock/core/common/mock_container.cpp",
|
||||
|
||||
# components_ng_event
|
||||
"$ace_root/frameworks/core/components_ng/event/event_hub.cpp",
|
||||
@ -96,13 +96,11 @@ ohos_unittest("lazy_for_each_syntax_test_ng") {
|
||||
]
|
||||
|
||||
deps = [
|
||||
"$ace_root:ace_test_log",
|
||||
"$ace_root/test/unittest:ace_unittest_log",
|
||||
"$ace_root/test/unittest:ace_unittest_trace",
|
||||
"$cjson_root:cjson",
|
||||
"//third_party/googletest:gmock_main",
|
||||
]
|
||||
|
||||
configs = [
|
||||
"$ace_root:ace_unittest_config",
|
||||
"$ace_root:ace_test_coverage_config",
|
||||
]
|
||||
configs = [ "$ace_root/test/unittest:ace_unittest_config" ]
|
||||
}
|
||||
|
@ -144,7 +144,6 @@ ohos_unittest("ImageProviderTest") {
|
||||
configs = [
|
||||
":config_image_provider_test",
|
||||
"$ace_root:ace_test_config",
|
||||
"$ace_root:ace_test_coverage_config",
|
||||
]
|
||||
|
||||
deps = [
|
||||
@ -189,7 +188,6 @@ ohos_unittest("ImageCompressorTest") {
|
||||
configs = [
|
||||
":config_image_cache_test",
|
||||
"$ace_root:ace_test_config",
|
||||
"$ace_root:ace_test_coverage_config",
|
||||
]
|
||||
|
||||
deps = [
|
||||
@ -214,7 +212,7 @@ group("unittest") {
|
||||
deps += [
|
||||
# ":ImageCacheTest",
|
||||
# ":ImageProviderTest",
|
||||
":ImageCompressorTest",
|
||||
# ":ImageCompressorTest",
|
||||
]
|
||||
}
|
||||
}
|
||||
|
@ -16,6 +16,4 @@ import("//build/test.gni")
|
||||
group("unittest") {
|
||||
testonly = true
|
||||
deps = []
|
||||
|
||||
#deps += [ "pipeline_context:unittest" ]
|
||||
}
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user