diff --git a/test/unittest/BUILD.gn b/test/unittest/BUILD.gn index 24be0572900..5cf60ae781a 100644 --- a/test/unittest/BUILD.gn +++ b/test/unittest/BUILD.gn @@ -133,6 +133,7 @@ ohos_source_set("ace_components_base") { "$ace_root/frameworks/core/components_ng/base/view_abstract.cpp", "$ace_root/frameworks/core/components_ng/base/view_abstract_model_ng.cpp", "$ace_root/frameworks/core/components_ng/base/view_advanced_register.cpp", + "$ace_root/frameworks/core/components_ng/base/navigation_register.cpp", "$ace_root/frameworks/core/components_ng/base/view_full_update_model_ng.cpp", "$ace_root/frameworks/core/components_ng/base/view_partial_update_model_ng.cpp", "$ace_root/frameworks/core/components_ng/base/view_stack_processor.cpp", diff --git a/test/unittest/core/pattern/navigation/navigation_test_ng.cpp b/test/unittest/core/pattern/navigation/navigation_test_ng.cpp index 5de0dccf162..47dec622f00 100755 --- a/test/unittest/core/pattern/navigation/navigation_test_ng.cpp +++ b/test/unittest/core/pattern/navigation/navigation_test_ng.cpp @@ -36,7 +36,6 @@ #include "test/mock/core/common/mock_theme_manager.h" #include "test/mock/core/pipeline/mock_pipeline_context.h" #include "test/mock/core/common/mock_container.h" -#include "core/components_ng/base/navigation_register.h" using namespace testing; using namespace testing::ext;