From a9e3dd56fa8973f78522905a6e2d3af1223d987f Mon Sep 17 00:00:00 2001 From: fangJinliang1 Date: Mon, 8 May 2023 17:25:40 +0800 Subject: [PATCH] fix function name Signed-off-by: fangJinliang1 Change-Id: I4b3530d22c10b98379549c68e41515de6c74badb --- .../bundle_manager_helper_branch_test.cpp | 26 ++--- .../mock_service_registry.cpp | 2 +- .../distributed_database_branch_test.cpp | 70 +++++++------- .../mock_distributed_flow_control.cpp | 4 +- .../mock_distributed_kv_data_manager.cpp | 8 +- .../mock_single_kv_store.cpp | 4 +- ...buted_notification_manager_branch_test.cpp | 26 ++--- .../mock_distributed_database.cpp | 8 +- .../distributed_preferences_branch_test.cpp | 22 ++--- .../mock_distributed_preferences_database.cpp | 8 +- .../distributed_preferences_database_test.cpp | 40 ++++---- .../mock_distributed_flow_control.cpp | 4 +- .../mock_distributed_kv_data_manager.cpp | 2 +- .../mock_single_kv_store.cpp | 2 +- ...uted_screen_status_manager_branch_test.cpp | 96 +++++++++---------- .../mock_distributed_flow_control.cpp | 4 +- .../mock_distributed_kv_data_manager.cpp | 6 +- .../mock_single_kv_store.cpp | 2 +- 18 files changed, 167 insertions(+), 167 deletions(-) diff --git a/services/ans/test/unittest/bundle_manager_helper_branch_test/bundle_manager_helper_branch_test.cpp b/services/ans/test/unittest/bundle_manager_helper_branch_test/bundle_manager_helper_branch_test.cpp index 6d94d0df4..c6337f000 100755 --- a/services/ans/test/unittest/bundle_manager_helper_branch_test/bundle_manager_helper_branch_test.cpp +++ b/services/ans/test/unittest/bundle_manager_helper_branch_test/bundle_manager_helper_branch_test.cpp @@ -23,7 +23,7 @@ #undef private #undef protected -extern void mockGetSystemAbilityManager(bool mockRet); +extern void MockGetSystemAbilityManager(bool mockRet); using namespace testing::ext; namespace OHOS { @@ -44,7 +44,7 @@ public: HWTEST_F(BundleManagerHelperBranchTest, BundleManagerHelperTest_00100, Function | SmallTest | Level1) { BundleManagerHelper bundleManagerHelper; - mockGetSystemAbilityManager(false); + MockGetSystemAbilityManager(false); int32_t uid = 1; EXPECT_EQ("", bundleManagerHelper.GetBundleNameByUid(uid)); } @@ -57,7 +57,7 @@ HWTEST_F(BundleManagerHelperBranchTest, BundleManagerHelperTest_00100, Function HWTEST_F(BundleManagerHelperBranchTest, BundleManagerHelper_00200, Function | SmallTest | Level1) { BundleManagerHelper bundleManagerHelper; - mockGetSystemAbilityManager(true); + MockGetSystemAbilityManager(true); int32_t uid = 1; EXPECT_EQ("", bundleManagerHelper.GetBundleNameByUid(uid)); } @@ -70,7 +70,7 @@ HWTEST_F(BundleManagerHelperBranchTest, BundleManagerHelper_00200, Function | Sm HWTEST_F(BundleManagerHelperBranchTest, BundleManagerHelper_00300, Function | SmallTest | Level1) { BundleManagerHelper bundleManagerHelper; - mockGetSystemAbilityManager(false); + MockGetSystemAbilityManager(false); int32_t uid = 1; EXPECT_EQ(false, bundleManagerHelper.IsSystemApp(uid)); } @@ -83,7 +83,7 @@ HWTEST_F(BundleManagerHelperBranchTest, BundleManagerHelper_00300, Function | Sm HWTEST_F(BundleManagerHelperBranchTest, BundleManagerHelper_00400, Function | SmallTest | Level1) { BundleManagerHelper bundleManagerHelper; - mockGetSystemAbilityManager(true); + MockGetSystemAbilityManager(true); int32_t uid = 1; EXPECT_EQ(false, bundleManagerHelper.IsSystemApp(uid)); } @@ -96,7 +96,7 @@ HWTEST_F(BundleManagerHelperBranchTest, BundleManagerHelper_00400, Function | Sm HWTEST_F(BundleManagerHelperBranchTest, BundleManagerHelper_00500, Function | SmallTest | Level1) { BundleManagerHelper bundleManagerHelper; - mockGetSystemAbilityManager(true); + MockGetSystemAbilityManager(true); bundleManagerHelper.Connect(); std::string bundle = "aa"; int32_t userId = 1; @@ -112,7 +112,7 @@ HWTEST_F(BundleManagerHelperBranchTest, BundleManagerHelper_00500, Function | Sm HWTEST_F(BundleManagerHelperBranchTest, BundleManagerHelper_00600, Function | SmallTest | Level1) { BundleManagerHelper bundleManagerHelper; - mockGetSystemAbilityManager(false); + MockGetSystemAbilityManager(false); bundleManagerHelper.Connect(); std::string bundle = "aa"; int32_t userId = 1; @@ -141,7 +141,7 @@ HWTEST_F(BundleManagerHelperBranchTest, BundleManagerHelper_00800, Function | Sm { std::shared_ptr bundleManagerHelper = std::make_shared(); ASSERT_NE(nullptr, bundleManagerHelper); - mockGetSystemAbilityManager(true); + MockGetSystemAbilityManager(true); bundleManagerHelper->Connect(); } @@ -154,7 +154,7 @@ HWTEST_F(BundleManagerHelperBranchTest, BundleManagerHelper_00900, Function | Sm { std::shared_ptr bundleManagerHelper = std::make_shared(); ASSERT_NE(nullptr, bundleManagerHelper); - mockGetSystemAbilityManager(false); + MockGetSystemAbilityManager(false); // test Connect and bundleMgr_ == nullptr bundleManagerHelper->Connect(); } @@ -168,7 +168,7 @@ HWTEST_F(BundleManagerHelperBranchTest, BundleManagerHelper_01000, Function | Sm { std::shared_ptr bundleManagerHelper = std::make_shared(); ASSERT_NE(nullptr, bundleManagerHelper); - mockGetSystemAbilityManager(false); + MockGetSystemAbilityManager(false); bundleManagerHelper->Connect(); // test Connect and bundleMgr_ != nullptr bundleManagerHelper->Connect(); @@ -183,7 +183,7 @@ HWTEST_F(BundleManagerHelperBranchTest, BundleManagerHelper_01100, Function | Sm { std::shared_ptr bundleManagerHelper = std::make_shared(); ASSERT_NE(nullptr, bundleManagerHelper); - mockGetSystemAbilityManager(false); + MockGetSystemAbilityManager(false); bundleManagerHelper->Connect(); bundleManagerHelper->Disconnect(); } @@ -208,7 +208,7 @@ HWTEST_F(BundleManagerHelperBranchTest, BundleManagerHelper_01200, Function | Sm HWTEST_F(BundleManagerHelperBranchTest, BundleManagerHelper_01300, Function | SmallTest | Level1) { BundleManagerHelper bundleManagerHelper; - mockGetSystemAbilityManager(true); + MockGetSystemAbilityManager(true); std::string bundle = "aa"; int32_t userId = 1; EXPECT_EQ(-1, bundleManagerHelper.GetDefaultUidByBundleName(bundle, userId)); @@ -222,7 +222,7 @@ HWTEST_F(BundleManagerHelperBranchTest, BundleManagerHelper_01300, Function | Sm HWTEST_F(BundleManagerHelperBranchTest, BundleManagerHelper_01400, Function | SmallTest | Level1) { BundleManagerHelper bundleManagerHelper; - mockGetSystemAbilityManager(false); + MockGetSystemAbilityManager(false); std::string bundle = "aa"; int32_t userId = 1; EXPECT_EQ(-1, bundleManagerHelper.GetDefaultUidByBundleName(bundle, userId)); diff --git a/services/ans/test/unittest/bundle_manager_helper_branch_test/mock_service_registry.cpp b/services/ans/test/unittest/bundle_manager_helper_branch_test/mock_service_registry.cpp index 9b972cbe6..e6d1d346a 100755 --- a/services/ans/test/unittest/bundle_manager_helper_branch_test/mock_service_registry.cpp +++ b/services/ans/test/unittest/bundle_manager_helper_branch_test/mock_service_registry.cpp @@ -22,7 +22,7 @@ namespace { bool g_mockGetSystemAbilityManagerRet = true; } -void mockGetSystemAbilityManager(bool mockRet) +void MockGetSystemAbilityManager(bool mockRet) { g_mockGetSystemAbilityManagerRet = mockRet; } diff --git a/services/distributed/test/unittest/distributed_database_branch_test/distributed_database_branch_test.cpp b/services/distributed/test/unittest/distributed_database_branch_test/distributed_database_branch_test.cpp index 4ef9d9e1c..9dc2f3425 100755 --- a/services/distributed/test/unittest/distributed_database_branch_test/distributed_database_branch_test.cpp +++ b/services/distributed/test/unittest/distributed_database_branch_test/distributed_database_branch_test.cpp @@ -22,14 +22,14 @@ #include "ans_inner_errors.h" #include "mock_single_kv_store.h" -extern void mockStartWatchDeviceChange(bool mockRet); -extern void mockGetSingleKvStore(bool mockRet); -extern void mockSubscribeKvStore(bool mockRet); -extern void mockKvStoreFlowControl(bool mockRet); -extern void mockRemoveDeviceData(bool mockRet); -extern void mockKvManagerFlowControl(bool mockRet); -extern void mockGetLocalDevice(bool mockRet); -extern void mockGetDeviceList(bool mockRet); +extern void MockStartWatchDeviceChange(bool mockRet); +extern void MockGetSingleKvStore(bool mockRet); +extern void MockSubscribeKvStore(bool mockRet); +extern void MockKvStoreFlowControl(bool mockRet); +extern void MockRemoveDeviceData(bool mockRet); +extern void MockKvManagerFlowControl(bool mockRet); +extern void MockGetLocalDevice(bool mockRet); +extern void MockGetDeviceList(bool mockRet); using namespace testing::ext; using namespace OHOS::DistributedKv; @@ -114,7 +114,7 @@ HWTEST_F(DistributedDatabaseBranchTest, DistributedDatabaseBranchTest_0100, Func { ASSERT_NE(nullptr, database_); database_->kvDataManager_ = nullptr; - mockStartWatchDeviceChange(false); + MockStartWatchDeviceChange(false); EXPECT_EQ(true, database_->CheckKvDataManager()); } @@ -127,7 +127,7 @@ HWTEST_F(DistributedDatabaseBranchTest, DistributedDatabaseBranchTest_0200, Func { ASSERT_NE(nullptr, database_); database_->kvDataManager_ = nullptr; - mockStartWatchDeviceChange(false); + MockStartWatchDeviceChange(false); database_->GetKvStore(); } @@ -140,7 +140,7 @@ HWTEST_F(DistributedDatabaseBranchTest, DistributedDatabaseBranchTest_0300, Func { ASSERT_NE(nullptr, database_); database_->kvDataManager_ = std::make_unique(); - mockGetSingleKvStore(false); + MockGetSingleKvStore(false); database_->GetKvStore(); } @@ -153,7 +153,7 @@ HWTEST_F(DistributedDatabaseBranchTest, DistributedDatabaseBranchTest_0400, Func { ASSERT_NE(nullptr, database_); database_->kvDataManager_ = std::make_unique(); - mockGetSingleKvStore(true); + MockGetSingleKvStore(true); database_->kvStore_ = nullptr; database_->GetKvStore(); } @@ -168,12 +168,12 @@ HWTEST_F(DistributedDatabaseBranchTest, DistributedDatabaseBranchTest_0500, Func ASSERT_NE(nullptr, database_); database_->kvDataManager_ = std::make_unique(); // set GetSingleKvStore is Status::SUCCESS - mockGetSingleKvStore(true); + MockGetSingleKvStore(true); // set kvStore_ is not nullptr std::shared_ptr kvStore = std::make_shared(); database_->kvStore_ = std::static_pointer_cast(kvStore); // set SubscribeKvStore != Status::SUCCESS - mockSubscribeKvStore(false); + MockSubscribeKvStore(false); database_->GetKvStore(); } @@ -209,7 +209,7 @@ HWTEST_F(DistributedDatabaseBranchTest, DistributedDatabaseBranchTest_0800, Func { std::shared_ptr kvStore = std::make_shared(); database_->kvStore_ = std::static_pointer_cast(kvStore); - mockKvStoreFlowControl(false); + MockKvStoreFlowControl(false); std::string key = ""; std::string value = ""; EXPECT_EQ(false, database_->PutToDistributedDB(key, value)); @@ -224,7 +224,7 @@ HWTEST_F(DistributedDatabaseBranchTest, DistributedDatabaseBranchTest_0900, Func { std::shared_ptr kvStore = std::make_shared(); database_->kvStore_ = std::static_pointer_cast(kvStore); - mockKvStoreFlowControl(true); + MockKvStoreFlowControl(true); std::string key = ""; std::string value = ""; EXPECT_EQ(false, database_->PutToDistributedDB(key, value)); @@ -252,7 +252,7 @@ HWTEST_F(DistributedDatabaseBranchTest, DistributedDatabaseBranchTest_1100, Func { std::shared_ptr kvStore = std::make_shared(); database_->kvStore_ = std::static_pointer_cast(kvStore); - mockKvStoreFlowControl(false); + MockKvStoreFlowControl(false); std::string key = ""; std::string value = ""; EXPECT_EQ(false, database_->GetFromDistributedDB(key, value)); @@ -267,7 +267,7 @@ HWTEST_F(DistributedDatabaseBranchTest, DistributedDatabaseBranchTest_1200, Func { std::shared_ptr kvStore = std::make_shared(); database_->kvStore_ = std::static_pointer_cast(kvStore); - mockKvStoreFlowControl(true); + MockKvStoreFlowControl(true); std::string key = ""; std::string value = ""; EXPECT_EQ(false, database_->GetFromDistributedDB(key, value)); @@ -297,7 +297,7 @@ HWTEST_F(DistributedDatabaseBranchTest, DistributedDatabaseBranchTest_1400, Func { std::shared_ptr kvStore = std::make_shared(); database_->kvStore_ = std::static_pointer_cast(kvStore); - mockKvStoreFlowControl(false); + MockKvStoreFlowControl(false); std::string prefixKey = ""; Entry entry; std::vector entries; @@ -314,7 +314,7 @@ HWTEST_F(DistributedDatabaseBranchTest, DistributedDatabaseBranchTest_1500, Func { std::shared_ptr kvStore = std::make_shared(); database_->kvStore_ = std::static_pointer_cast(kvStore); - mockKvStoreFlowControl(true); + MockKvStoreFlowControl(true); std::string prefixKey = ""; Entry entry; std::vector entries; @@ -331,7 +331,7 @@ HWTEST_F(DistributedDatabaseBranchTest, DistributedDatabaseBranchTest_1600, Func { std::shared_ptr kvStore = std::make_shared(); database_->kvStore_ = std::static_pointer_cast(kvStore); - mockKvStoreFlowControl(false); + MockKvStoreFlowControl(false); std::string key = ""; EXPECT_EQ(false, database_->DeleteToDistributedDB(key)); } @@ -345,7 +345,7 @@ HWTEST_F(DistributedDatabaseBranchTest, DistributedDatabaseBranchTest_1700, Func { std::shared_ptr kvStore = std::make_shared(); database_->kvStore_ = std::static_pointer_cast(kvStore); - mockKvStoreFlowControl(true); + MockKvStoreFlowControl(true); std::string key = ""; EXPECT_EQ(false, database_->DeleteToDistributedDB(key)); } @@ -371,7 +371,7 @@ HWTEST_F(DistributedDatabaseBranchTest, DistributedDatabaseBranchTest_1900, Func { std::shared_ptr kvStore = std::make_shared(); database_->kvStore_ = std::static_pointer_cast(kvStore); - mockKvStoreFlowControl(false); + MockKvStoreFlowControl(false); std::string deviceId = ""; EXPECT_EQ(false, database_->ClearDataByDevice(deviceId)); } @@ -385,8 +385,8 @@ HWTEST_F(DistributedDatabaseBranchTest, DistributedDatabaseBranchTest_2000, Func { std::shared_ptr kvStore = std::make_shared(); database_->kvStore_ = std::static_pointer_cast(kvStore); - mockKvStoreFlowControl(true); - mockRemoveDeviceData(false); + MockKvStoreFlowControl(true); + MockRemoveDeviceData(false); std::string deviceId = ""; EXPECT_EQ(false, database_->ClearDataByDevice(deviceId)); } @@ -400,8 +400,8 @@ HWTEST_F(DistributedDatabaseBranchTest, DistributedDatabaseBranchTest_2100, Func { std::shared_ptr kvStore = std::make_shared(); database_->kvStore_ = std::static_pointer_cast(kvStore); - mockKvStoreFlowControl(true); - mockRemoveDeviceData(true); + MockKvStoreFlowControl(true); + MockRemoveDeviceData(true); std::string deviceId = ""; EXPECT_EQ(true, database_->ClearDataByDevice(deviceId)); } @@ -426,7 +426,7 @@ HWTEST_F(DistributedDatabaseBranchTest, DistributedDatabaseBranchTest_2200, Func HWTEST_F(DistributedDatabaseBranchTest, DistributedDatabaseBranchTest_2300, Function | SmallTest | Level1) { database_->kvDataManager_ = std::make_unique(); - mockKvManagerFlowControl(false); + MockKvManagerFlowControl(false); std::string deviceId = ""; EXPECT_EQ(false, database_->GetLocalDeviceId(deviceId)); } @@ -451,7 +451,7 @@ HWTEST_F(DistributedDatabaseBranchTest, DistributedDatabaseBranchTest_2400, Func HWTEST_F(DistributedDatabaseBranchTest, DistributedDatabaseBranchTest_2500, Function | SmallTest | Level1) { database_->kvDataManager_ = std::make_unique(); - mockKvManagerFlowControl(false); + MockKvManagerFlowControl(false); DistributedHardware::DmDeviceInfo localInfo; EXPECT_EQ(false, database_->GetLocalDeviceInfo(localInfo)); } @@ -464,8 +464,8 @@ HWTEST_F(DistributedDatabaseBranchTest, DistributedDatabaseBranchTest_2500, Func HWTEST_F(DistributedDatabaseBranchTest, DistributedDatabaseBranchTest_2600, Function | SmallTest | Level1) { database_->kvDataManager_ = std::make_unique(); - mockKvManagerFlowControl(true); - mockGetLocalDevice(false); + MockKvManagerFlowControl(true); + MockGetLocalDevice(false); DistributedHardware::DmDeviceInfo localInfo; EXPECT_EQ(true, database_->GetLocalDeviceInfo(localInfo)); } @@ -490,7 +490,7 @@ HWTEST_F(DistributedDatabaseBranchTest, DistributedDatabaseBranchTest_2700, Func HWTEST_F(DistributedDatabaseBranchTest, DistributedDatabaseBranchTest_2800, Function | SmallTest | Level1) { database_->kvDataManager_ = std::make_unique(); - mockKvManagerFlowControl(false); + MockKvManagerFlowControl(false); std::vector deviceList; EXPECT_EQ(false, database_->GetDeviceInfoList(deviceList)); } @@ -503,8 +503,8 @@ HWTEST_F(DistributedDatabaseBranchTest, DistributedDatabaseBranchTest_2800, Func HWTEST_F(DistributedDatabaseBranchTest, DistributedDatabaseBranchTest_2900, Function | SmallTest | Level1) { database_->kvDataManager_ = std::make_unique(); - mockKvManagerFlowControl(true); - mockGetDeviceList(false); + MockKvManagerFlowControl(true); + MockGetDeviceList(false); std::vector deviceList; EXPECT_EQ(true, database_->GetDeviceInfoList(deviceList)); } @@ -528,7 +528,7 @@ HWTEST_F(DistributedDatabaseBranchTest, DistributedDatabaseBranchTest_3000, Func HWTEST_F(DistributedDatabaseBranchTest, DistributedDatabaseBranchTest_3100, Function | SmallTest | Level1) { database_->kvDataManager_ = std::make_unique(); - mockKvManagerFlowControl(false); + MockKvManagerFlowControl(false); EXPECT_EQ(false, database_->RecreateDistributedDB()); } } // namespace Notification diff --git a/services/distributed/test/unittest/distributed_database_branch_test/mock_distributed_flow_control.cpp b/services/distributed/test/unittest/distributed_database_branch_test/mock_distributed_flow_control.cpp index 988bcd249..4b0b89ff6 100755 --- a/services/distributed/test/unittest/distributed_database_branch_test/mock_distributed_flow_control.cpp +++ b/services/distributed/test/unittest/distributed_database_branch_test/mock_distributed_flow_control.cpp @@ -20,12 +20,12 @@ namespace { bool g_mockKvManagerFlowControlRet = true; } -void mockKvStoreFlowControl(bool mockRet) +void MockKvStoreFlowControl(bool mockRet) { g_mockKvStoreFlowControlRet = mockRet; } -void mockKvManagerFlowControl(bool mockRet) +void MockKvManagerFlowControl(bool mockRet) { g_mockKvManagerFlowControlRet = mockRet; } diff --git a/services/distributed/test/unittest/distributed_database_branch_test/mock_distributed_kv_data_manager.cpp b/services/distributed/test/unittest/distributed_database_branch_test/mock_distributed_kv_data_manager.cpp index 181ccc129..e22aa63a4 100755 --- a/services/distributed/test/unittest/distributed_database_branch_test/mock_distributed_kv_data_manager.cpp +++ b/services/distributed/test/unittest/distributed_database_branch_test/mock_distributed_kv_data_manager.cpp @@ -24,22 +24,22 @@ namespace { bool g_mockGetDeviceListRet = true; } -void mockStartWatchDeviceChange(bool mockRet) +void MockStartWatchDeviceChange(bool mockRet) { g_mockStartWatchDeviceChangeRet = mockRet; } -void mockGetSingleKvStore(bool mockRet) +void MockGetSingleKvStore(bool mockRet) { g_mockGetSingleKvStoreRet = mockRet; } -void mockGetLocalDevice(bool mockRet) +void MockGetLocalDevice(bool mockRet) { g_mockGetLocalDeviceRet = mockRet; } -void mockGetDeviceList(bool mockRet) +void MockGetDeviceList(bool mockRet) { g_mockGetDeviceListRet = mockRet; } diff --git a/services/distributed/test/unittest/distributed_database_branch_test/mock_single_kv_store.cpp b/services/distributed/test/unittest/distributed_database_branch_test/mock_single_kv_store.cpp index 3185c841e..66b717ce0 100755 --- a/services/distributed/test/unittest/distributed_database_branch_test/mock_single_kv_store.cpp +++ b/services/distributed/test/unittest/distributed_database_branch_test/mock_single_kv_store.cpp @@ -21,12 +21,12 @@ namespace { bool g_mockRemoveDeviceDataRet = true; } -void mockSubscribeKvStore(bool mockRet) +void MockSubscribeKvStore(bool mockRet) { g_mockSubscribeKvStoreRet = mockRet; } -void mockRemoveDeviceData(bool mockRet) +void MockRemoveDeviceData(bool mockRet) { g_mockRemoveDeviceDataRet = mockRet; } diff --git a/services/distributed/test/unittest/distributed_notification_manager_branch_test/distributed_notification_manager_branch_test.cpp b/services/distributed/test/unittest/distributed_notification_manager_branch_test/distributed_notification_manager_branch_test.cpp index 9647c57bf..31b39deff 100755 --- a/services/distributed/test/unittest/distributed_notification_manager_branch_test/distributed_notification_manager_branch_test.cpp +++ b/services/distributed/test/unittest/distributed_notification_manager_branch_test/distributed_notification_manager_branch_test.cpp @@ -21,10 +21,10 @@ #include "distributed_notification_manager.h" using namespace testing::ext; -extern void mockOnDeviceConnected(bool mockRet); -extern void mockGetEntriesFromDistributedDB(bool mockRet); -extern void mockGetDeviceInfoList(bool mockRet); -extern void mockGetLocalDeviceId(bool mockRet); +extern void MockOnDeviceConnected(bool mockRet); +extern void MockGetEntriesFromDistributedDB(bool mockRet); +extern void MockGetDeviceInfoList(bool mockRet); +extern void MockGetLocalDeviceId(bool mockRet); namespace OHOS { namespace Notification { @@ -76,7 +76,7 @@ HWTEST_F(DistributedNotificationManagerBranchTest, DistributedNotificationManage HWTEST_F(DistributedNotificationManagerBranchTest, DistributedNotificationManager_00200, Function | SmallTest | Level1) { ASSERT_NE(nullptr, distributedManager_); - mockOnDeviceConnected(false); + MockOnDeviceConnected(false); distributedManager_->OnDeviceConnected("test"); } @@ -88,7 +88,7 @@ HWTEST_F(DistributedNotificationManagerBranchTest, DistributedNotificationManage HWTEST_F(DistributedNotificationManagerBranchTest, DistributedNotificationManager_00300, Function | SmallTest | Level1) { ASSERT_NE(nullptr, distributedManager_); - mockGetEntriesFromDistributedDB(false); + MockGetEntriesFromDistributedDB(false); distributedManager_->OnDeviceDisconnected("test"); } @@ -100,7 +100,7 @@ HWTEST_F(DistributedNotificationManagerBranchTest, DistributedNotificationManage HWTEST_F(DistributedNotificationManagerBranchTest, DistributedNotificationManager_00400, Function | SmallTest | Level1) { ASSERT_NE(nullptr, distributedManager_); - mockGetEntriesFromDistributedDB(true); + MockGetEntriesFromDistributedDB(true); distributedManager_->OnDeviceDisconnected("test"); } @@ -208,7 +208,7 @@ HWTEST_F(DistributedNotificationManagerBranchTest, DistributedNotificationManage */ HWTEST_F(DistributedNotificationManagerBranchTest, DistributedNotificationManager_01000, Function | SmallTest | Level1) { - mockGetLocalDeviceId(true); + MockGetLocalDeviceId(true); std::string bundleName = "aa"; std::string label = "bb"; int32_t id = 1; @@ -223,7 +223,7 @@ HWTEST_F(DistributedNotificationManagerBranchTest, DistributedNotificationManage */ HWTEST_F(DistributedNotificationManagerBranchTest, DistributedNotificationManager_01100, Function | SmallTest | Level1) { - mockGetLocalDeviceId(true); + MockGetLocalDeviceId(true); std::string bundleName = "aa"; std::string label = "bb"; int32_t id = 1; @@ -238,7 +238,7 @@ HWTEST_F(DistributedNotificationManagerBranchTest, DistributedNotificationManage */ HWTEST_F(DistributedNotificationManagerBranchTest, DistributedNotificationManager_01200, Function | SmallTest | Level1) { - mockGetLocalDeviceId(true); + MockGetLocalDeviceId(true); sptr request = new NotificationRequest(1000); request->SetLabel("