/base/notification/distributed_notification_service/services/distributed/test/unittest/distributed_database_branch_test/ |
H A D | distributed_database_branch_test.cpp | 52 std::shared_ptr<DistributedDatabase> database_;
member in OHOS::Notification::DistributedDatabaseBranchTest 83 database_ = std::make_shared<DistributedDatabase>(databaseCallback_, deviceCallback_);
in SetUp() 84 database_->OnDeviceConnected();
in SetUp() 89 database_ = nullptr;
in TearDown() 116 ASSERT_NE(nullptr, database_);
in HWTEST_F() 117 database_->kvDataManager_ = nullptr;
in HWTEST_F() 120 EXPECT_EQ(true, database_->CheckKvDataManager());
in HWTEST_F() 130 ASSERT_NE(nullptr, database_);
in HWTEST_F() 131 database_->kvDataManager_ = nullptr;
in HWTEST_F() 134 database_ in HWTEST_F() [all...] |
/third_party/protobuf/src/google/protobuf/ |
H A D | descriptor_database_unittest.cc | 103 virtual DescriptorDatabase* GetDatabase() { return &database_; } in GetDatabase() 105 return database_.Add(file); in AddToDatabase() 109 SimpleDescriptorDatabase database_; member in google::protobuf::__anon16991::SimpleDescriptorDatabaseTestCase 121 virtual DescriptorDatabase* GetDatabase() { return &database_; } in GetDatabase() 125 return database_.AddCopy(data.data(), data.size()); in AddToDatabase() 129 EncodedDescriptorDatabase database_; member in google::protobuf::__anon16991::EncodedDescriptorDatabaseTestCase 139 DescriptorPoolDatabaseTestCase() : database_(pool_) {} in DescriptorPoolDatabaseTestCase() 142 virtual DescriptorDatabase* GetDatabase() { return &database_; } in GetDatabase() 149 DescriptorPoolDatabase database_; member in google::protobuf::__anon16991::DescriptorPoolDatabaseTestCase 159 database_ in SetUp() 175 DescriptorDatabase* database_; global() member in google::protobuf::__anon16991::DescriptorDatabaseTest [all...] |
H A D | descriptor_unittest.cc | 6627 SimpleDescriptorDatabase database_; member in google::protobuf::descriptor_unittest::DatabaseBackedPoolTest 6631 &database_, in SetUp() 6636 AddToDatabase(&database_, in SetUp() 6644 &database_, in SetUp() 6753 DescriptorPool pool(&database_); in TEST_F() 6767 DescriptorPool pool(&database_); in TEST_F() 6786 DescriptorPool pool(&database_); in TEST_F() 6805 DescriptorPool pool(&database_); in TEST_F() 6816 DescriptorPool pool(&database_); in TEST_F() 6827 DescriptorPool pool(&database_); in TEST_F() [all...] |
/base/notification/distributed_notification_service/services/distributed/src/ |
H A D | distributed_notification_manager.cpp | 59 database_ = std::make_shared<DistributedDatabase>(databaseCb_, deviceCb_); in DistributedNotificationManager() 88 if (database_ == nullptr) { in GenerateLocalDistributedKey() 89 ANS_LOGE("database_ is invalid."); in GenerateLocalDistributedKey() 92 if (!database_->GetLocalDeviceId(deviceId)) { in GenerateLocalDistributedKey() 229 if (database_ == nullptr) { in OnDeviceConnected() 233 if (!database_->OnDeviceConnected()) { in OnDeviceConnected() 249 if (database_ == nullptr) { in OnDeviceDisconnected() 250 ANS_LOGE("database_ is invalid."); in OnDeviceDisconnected() 253 if (!database_->GetEntriesFromDistributedDB(prefixKey, entries)) { in OnDeviceDisconnected() 268 database_ in OnDeviceDisconnected() [all...] |
H A D | distributed_preferences.cpp | 39 database_ = std::make_unique<DistributedPreferencesDatabase>(); in DistributedPreferences() 50 if (!database_->GetEntriesFromDistributedDB(DISTRIBUTED_LABEL, entries)) { in InitDistributedAllInfo() 146 if (!database_->PutToDistributedDB(key, std::to_string(isEnable))) { in SetDistributedEnable() 177 if (!database_->PutToDistributedDB(key, std::to_string(isEnable))) { in SetDistributedBundleEnable() 212 if (database_ == nullptr || preferencesInfo_ == nullptr) { in DeleteDistributedBundleInfo() 220 if (!database_->DeleteToDistributedDB(key)) { in DeleteDistributedBundleInfo() 232 if (database_ == nullptr) { in ClearDataInRestoreFactorySettings() 237 if (!database_->ClearDatabase()) { in ClearDataInRestoreFactorySettings() 255 if (database_ == nullptr || preferencesInfo_ == nullptr) { in SetSyncEnabledWithoutApp() 261 if (!database_ in SetSyncEnabledWithoutApp() [all...] |
/base/notification/distributed_notification_service/services/distributed/test/unittest/ |
H A D | distributed_database_test.cpp | 40 std::shared_ptr<DistributedDatabase> database_; member in OHOS::Notification::DistributedDatabaseTest 72 database_ = std::make_shared<DistributedDatabase>(databaseCallback_, deviceCallback_); in SetUp() 73 database_->OnDeviceConnected(); in SetUp() 78 database_ = nullptr; in TearDown() 122 EXPECT_EQ(database_->PutToDistributedDB(key, value), true); in HWTEST_F() 135 EXPECT_EQ(database_->GetFromDistributedDB(key, value), true); in HWTEST_F() 148 EXPECT_EQ(database_->GetEntriesFromDistributedDB(prifixKey, entries), true); in HWTEST_F() 160 EXPECT_EQ(database_->DeleteToDistributedDB(key), true); in HWTEST_F() 172 EXPECT_EQ(database_->ClearDataByDevice(deviceId), false); in HWTEST_F() 184 EXPECT_EQ(database_ in HWTEST_F() [all...] |
/third_party/protobuf/src/google/protobuf/compiler/ |
H A D | importer.cc | 222 : database_(source_tree), in Importer() 223 pool_(&database_, database_.GetValidationErrorCollector()) { in Importer() 225 database_.RecordErrorsTo(error_collector); in Importer()
|
H A D | importer.h | 187 SourceTreeDescriptorDatabase database_; member in google::protobuf::compiler::Importer
|
/base/notification/distributed_notification_service/services/distributed/include/ |
H A D | distributed_preferences.h | 104 std::unique_ptr<DistributedPreferencesDatabase> database_ = nullptr; member in OHOS::Notification::DistributedPreferences
|
H A D | distributed_notification_manager.h | 170 std::shared_ptr<DistributedDatabase> database_ = nullptr; member in OHOS::Notification::DistributedNotificationManager
|
/base/notification/distributed_notification_service/services/distributed/test/unittest/distributed_notification_manager_branch_test/ |
H A D | distributed_notification_manager_branch_test.cpp | 62 * @tc.desc : test OnDeviceConnected function and database_ == nullptr.
67 distributedManager_->database_ = nullptr;
in HWTEST_F() 74 * @tc.desc : test OnDeviceConnected function and database_->OnDeviceConnected is false.
|