| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
Merge remote-tracking branch 'upstream/master' Signed-off-by: lightycld <yangwei325@h-partners.com> # Conflicts: # framework/test/src/pasteboard_client_test.cpp | 7 天前 | |
fix(test): 适配上游 API 变更并修复测试链接失败 PasteServInterfaceMockTest 等 6 个测试目标编译/链接失败:上游 InputMethodController 新增 userId/validateDefaultIme 形参导致 mock 签名 不匹配;SetCurrentData 改无参版本后测试仍按旧签名调用; pasteboard_dump_helper.cpp 与 mock 内 stub 重复定义;5 个测试目标缺 pasteboard_window_manager.cpp 导致 disposable_manager 引用的 GetFocusWindowId 符号未定义。 - PasteServInterfaceMockTest 适配 GetDefaultInputMethod(userId)、 SendPrivateCommand(validateDefaultIme) 新签名,移除废弃的 GetDfsUriFromLocal mock,SetCurrentData 改无参并直接置 setDistributedMemory_ 字段。 - PasteServInterfaceMockTest 移除 pasteboard_dump_helper.cpp(mock 内 已提供 PasteboardDumpHelper stub,避免重复定义)。 - PasteServGetLocalData/Subscribe/Notify/SetData/GetData 5 个测试目标 补 pasteboard_window_manager.cpp,补齐 GetFocusWindowId 符号。 - OnSubProfileAccountsChangedInner 改为 static(不访问 this 成员)。 本地验证:ninja PasteServInterfaceMockTest/PasteServGetLocalDataTest/ PasteServSubscribeTest/PasteServNotifyTest/PasteServSetDataTest/ PasteServGetDataTest/PasteboardSubProfileSubscriberTest 链接通过; ./build.sh --build-target pasteboard 成功。 Signed-off-by: wwdz123456 <shaojian14@h-partners.com> AI[100%] Human Fixed[0%] Human[0%] AI Adopted[100%] Co-authored-by: opencode (glm-5.2) <ai@local> Change-Id: I9760679080c9bcaea6712c505baa5e64b464f8ba | 20 天前 |