xiangcong3
|
9f249e1185
|
ROM optimization: two-target architecture, remove libfms_test
- libfms_internal_static: ohos_static_library with all 144 .cpp sources
- libfms: ohos_shared_library thin wrapper, deps=libfms_internal_static
- libfms.map: global section cleared, only local: *; remains
- libfms_test target deleted from BUILD.gn
- 266 test BUILD.gns: :libfms_test -> :libfms_internal_static
- Remove 1014 overlapping source lines from 109 test BUILD.gns (ODR fix)
- Remove 93 unavailable test deps from test/BUILD.gn
- Add libfms_internal_static dep to form_bundle_distributed_mgr_test
- Remove redundant ldflags --exclude-libs=ALL and --whole-archive
- libfms ldflags simplified: [-flto=full, -Wl,--gc-sections]
- ROM: 1,485,336 B (-346,680 B, -18.9%)
Signed-off-by: xiangcong3 <xiangcong4@huawei.com>
AI[100%] Human Fixed[0%] Human[0%] AI Adopted[100%]
Co-authored-by: opencode (glm-5.1) <ai@local>
|
2026-08-05 15:42:19 +08:00 |
|
xiangcong3
|
b487cd5188
|
ROM optimization: three-target architecture with ohos_static_library + --whole-archive
- Add ohos_static_library("libfms_internal_static") with all source files
- Add ohos_shared_library("libfms") for production (version_script + LTO + --gc-sections)
- Add ohos_shared_library("libfms_test") for testing (--whole-archive, no version_script)
- Clear libfms.map global section (59→0 entries), keep local: *;
- Remove 5 redundant :libfms deps from frameworks/js/napi/BUILD.gn
- Update 266 test BUILD.gns: :fms_target/:libfms → :libfms_test
- ROM result: libfms.z.so 1,485,336 B (-346,680 B, -18.9%)
Signed-off-by: xiangcong3 <xiangcong4@huawei.com>
AI[90%] Human Fixed[0%] Human[10%] AI Adopted[100%]
Co-authored-by: opencode (glm-5.1) <ai@local>
|
2026-08-05 15:42:12 +08:00 |
|
finnick-zsp
|
073f8593dd
|
fuzz用例整改
Co-Authored-By: Agent
Signed-off-by: finnick-zsp <zhushupei1@huawei.com>
🤖 AI[100%] 🔧 Human Fixed[0%] 🧑 Human[0%] 👌 AI Adopted[100%]
Co-authored-by: opencode (glm-5.2) <ai@local>
|
2026-06-30 17:31:02 +08:00 |
|
finnick-zsp
|
0e37342a39
|
fuzz用例整改
Co-Authored-By: Agent
Signed-off-by: finnick-zsp <zhushupei1@huawei.com>
🤖 AI[0%] 🔧 Human Fixed[0%] 🧑 Human[100%] 👌 AI Adopted[0%]
|
2026-06-30 14:24:14 +08:00 |
|
xiangcong3
|
26880817a9
|
ROM optimization: FormAbilityConnection继承切换为AbilityConnectionStub 消除IPC Stub重复代码
将FormAbilityConnection从继承ProviderConnectStub改为继承AAFwk::AbilityConnectionStub
两者共享相同的IRemoteStub<IAbilityConnection>基类和接口描述符(ohos.abilityshell.DistributedConnection)
IPC分发逻辑完全一致 AbilityConnectionStub使用unique_ptr管理内存更安全
变更:
- form_ability_connection.h: include和继承声明修改
- BUILD.gn: 增加ability_connect_callback_stub依赖
- 删除ProviderConnectStub源码(provider_connect_stub.h/cpp 128行)及测试
- 删除libfms.map符号导出、测试BUILD.gn引用
- 242个测试BUILD.gn增加ability_connect_callback_stub external_deps
编译验证通过(hb build form_fwk 业务8秒 测试12秒)
Signed-off-by: xiangcong3 <xiangcong4@huawei.com>
🤖 AI[100%] 🔧 Human Fixed[0%] 🧑 Human[0%] 👌 AI Adopted[100%]
Co-authored-by: opencode (Sisyphus) <ai@local>
|
2026-06-25 14:14:38 +08:00 |
|
xiangcong3
|
cb2ba53cc5
|
feat: 为刷新方案新增类补充单元测试用例
4个测试目录生成:
- fms_provider_connection_error_handler_test (23 cases)
- fms_provider_refresh_error_handler_test (25 cases, 仅派生类重写方法)
- fms_retry_policy_test (50 cases)
- fms_form_refresh_connection_test (72 cases, mock方案)
9个fuzzer BUILD.gn最小依赖修正(仅添加必要deps):
- 3个新增source files + libform_common + hicollie(7个fuzzer)
- 移除试错过程中过度添加的libfms/access_token/data_share/relational_store/inner_api
- 保持原文件CRLF/LF行尾格式不变
4个unittest BUILD.gn依赖修正:
- 移除huks:libhukssdk (不必要, 新source files不依赖huks)
- 保留其他standard external_deps (与参考test一致)
mock文件修正:
- mock_form_provider_refresh_error_handler.cpp (base class stubs)
- mock_form_report.cpp (RemoveFormId stub)
Co-Authored-By: Agent
Signed-off-by: xiangcong3 <xiangcong4@huawei.com>
|
2026-06-13 10:40:15 +08:00 |
|
luyangyi
|
2ce9d99aea
|
新增 RefreshCacheMgr、StaggerStrategy 和 BatchRefreshMgr 单元测试,检视意见修改、删除网络刷新权限
- 新增 FmsRefreshCacheMgrTest 单元测试,覆盖 ConsumeInvisibleFlag 方法
- 新增 FmsStaggerStrategyTest 单元测试,覆盖延迟、默认、可见延迟策略
- 新增 FmsBatchRefreshMgrTest 单元测试,覆盖批量刷新管理
- 删除网络刷新权限相关代码
- 优化刷新检查和策略实现
- 补充多场景单元测试
Change-Id: I4d2c8bac28754a2496506a2ea1b2cdd94de15bdf
Signed-off-by: luyangyi <luyangyi2@huawei.com>
Co-Authored-By: Agent <agent@openclaw.ai>
|
2026-04-19 22:54:08 +08:00 |
|
luyangyi
|
9d692c5ed6
|
开放网络连接时触发刷新,新增批量错峰刷新模块
Change-Id: Ie88554dc2dfa4379b62c162e8c4318a5e106a30b
Signed-off-by: luyangyi <luyangyi2@huawei.com>
|
2026-04-03 17:08:18 +08:00 |
|
finnick-zsp
|
d561384aba
|
新增fuzz用例
Co-authored-by:Agent
Signed-off-by: finnick-zsp <zhushupei1@huawei.com>
|
2026-03-26 15:32:11 +08:00 |
|