| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
fix(test): isolate test service DB to protect real notificationdb Make GetAnsNotificationRdbMgrInstance() a weak symbol and override it in a single shared test mock (frameworks/test/moduletest/mock) so the in-process service constructed by tests operates on an isolated temp DB (/data/local/tmp/ans_rdb_test_<pid>/notificationdb_test.db) instead of the real notificationdb.db. All affected test targets reference the single mock via absolute path (no duplicate files). Root cause: tests that call ClearNotificationInRestoreFactorySettings() invoke rdbDataManager_->Destroy() which deletes the DB file. Without an RDB mock, the real notificationdb.db is deleted on device, wiping real data. Scope: all tests calling ClearNotificationInRestoreFactorySettings without an RDB mock - ans_module_test (services/test/moduletest), 10 UT targets in services/ans/test/unittest (permission_filter, notification_service, live_view, slot, utils, snooze_delay, service_publish, preferences, ringtone, geofence), aggregation_test, badge_manager_test, plus the publish/slot moduletest. Review fixes: DestroyTestRdb now resets the static instance and removes the temp dir (rmdir); mkdir checks errno==EEXIST. Empty NtfRdbHook is intentional (nullptr-safe per docs, avoids pulling hisysevent-dependent production hooks into tests; hooks are DFX/observational and do not affect CRUD). Verified on device: slot MST 12/12 pass both runs; real notificationdb.db mtime unchanged; full unittest 99.5% pass (3255/3273), 18 failures in unmodified binaries (pre-existing). Co-Authored-By: Agent Signed-off-by: CheerfulRicky <yuegang7@h-partners.com> Change-Id: I7e076d07003d6e30813e0f0f72e7f6ad38b8186d Signed-off-by: CheerfulRicky <yuegang7@h-partners.com> | 17 天前 | |
删除Blob继承Parcel的Marshalling接口 Signed-off-by: htt1997 <hutao105@huawei.com> | 3 年前 | |
modify kv mock test Signed-off-by: ding_dong_dong <dingdongdong4@huawei.com> | 1 年前 | |
处理ans失败用例1 Signed-off-by: baozeyu <baozeyu1@huawei.com> Change-Id: Ieccd3120e0654f99ed91ea0f359f9b817ec06af4 | 2 年前 | |
fix(ans): fix heap-use-after-free in singleton DCLP and notificationList_ race 1. NotificationPreferences::GetInstance() and SystemSoundHelper::GetInstance(): replace broken DCLP with Meyer's singleton (C++11 thread-safe static local). The DCLP had unprotected shared_ptr reads causing data race when static instance_ was destroyed during process exit while ffrt worker threads called GetInstance(). 2. ClearRingtoneByApplication / ClearOverTimeRingToneInfo: - Remove 5-second delay (DEL_TASK_DELAY) from Submit calls. The delay caused SelfClean()'s drain to not wait for delayed tasks, leaving them pending after process exit. - Remove redundant std::bind wrapper, pass lambda directly. - Use Submit(func) without delay parameter. 3. serviceprivateutilsa_fuzzer: wrap direct DeleteAllByUserStopped() call with notificationSvrQueue_.SyncSubmit() to serialize with async tasks from OnUserRemoved/OnUserStopped, preventing concurrent read/write race on notificationList_ (list iterator use-after-free). 4. Fix empty if block in mock_ans_rdb_mgr_builder.cpp (cpplint). Co-Authored-By: Agent Signed-off-by: CheerfulRicky <yuegang7@h-partners.com> Change-Id: I8197f195c73f6cf2ea90e5a68c2afdea00d73ac0 | 15 天前 | |
修复mst crash Signed-off-by: x00524330 <xujianhua9@huawei.com> Change-Id: I1c2ac1074656d3b36212af3714e9ff79a3cea9ad | 2 年前 | |
fix version_script for libans Signed-off-by: cheerful_ricky <yuegang7@huawei.com> | 5 个月前 | |
IssueNo: I5QF22 Description: delete unused bundlemgr api Sig:SIG_ApplicaitonFramework Feature or Bugfix:Feature Binary Source:No Signed-off-by: xsz233 <xushizhe@huawei.com> | 3 年前 | |
notification directory modify Signed-off-by: zero-cyc <chenlien@huawei.com> Change-Id: I5c8cb4ec680df5ad2728f721eb91d910d2353f7c | 4 年前 | |
notification directory modify Signed-off-by: zero-cyc <chenlien@huawei.com> Change-Id: I5c8cb4ec680df5ad2728f721eb91d910d2353f7c | 4 年前 | |
notification directory modify Signed-off-by: zero-cyc <chenlien@huawei.com> Change-Id: I5c8cb4ec680df5ad2728f721eb91d910d2353f7c | 4 年前 | |
新增taskName用于标识消息循环里的任务名 Signed-off-by: liweifeng <liweifeng2@huawei.com> Change-Id: I3f9c8fc6bd25e4ca0d100f3e747dec34b62d56e4 | 2 年前 | |
ut modify Signed-off-by: fangJinliang1 <fangjinliang1@huawei.com> Change-Id: I65400a5bd8cced8b6771dc0236727b8ad4ed56fe Signed-off-by: fangJinliang1 <fangjinliang1@huawei.com> | 4 年前 | |
替换std::mutex Signed-off-by: songbao1 <luojingsong@h-partners.com> | 1 年前 | |
fix tdd code Signed-off-by: liuyanzhi <liuyanzhi3@huawei.com> Change-Id: I6da2eeeefd57275584791343c66edaf0b047a6e1 | 2 年前 |
| 文件 | 最后提交记录 | 最后更新时间 |
|---|---|---|
| 17 天前 | ||
| 3 年前 | ||
| 1 年前 | ||
| 2 年前 | ||
| 15 天前 | ||
| 2 年前 | ||
| 5 个月前 | ||
| 3 年前 | ||
| 4 年前 | ||
| 4 年前 | ||
| 4 年前 | ||
| 2 年前 | ||
| 4 年前 | ||
| 1 年前 | ||
| 2 年前 |