mirror of
https://github.com/openharmony/notification_distributed_notification_service.git
synced 2026-08-24 15:14:44 -04:00
fe8ae95ff0
Add ans_service_sources_test (ohos_static_library, testonly) that wraps ans_service_sources and automatically provides the mock_ans_rdb_mgr_builder strong override (isolated temp DB). All test targets now depend on ans_service_sources_test instead of ans_service_sources, so new test suites automatically get RDB isolation without manual changes. ans_service_sources_test_config propagates all needed include paths (ans headers, rdb headers, mock headers) to test targets. The mock source (mock_ans_rdb_mgr_builder.cpp) is compiled once into the static lib, avoiding include-path propagation issues with source_set recompilation. Co-Authored-By: Agent Signed-off-by: CheerfulRicky <yuegang7@h-partners.com> Change-Id: Ieafd58f9f1e1433e3381c89a8c105f7191662986 Signed-off-by: CheerfulRicky <yuegang7@h-partners.com>