Home
last modified time | relevance | path

Searched refs:watcherManager (Results 1 – 9 of 9) sorted by relevance

/base/startup/init/test/unittest/param/
Dwatcher_proxy_unittest.cpp70 WatcherManagerPtr watcherManager = GetWatcherManager(); in TestAddRemoteWatcher() local
71 WATCHER_CHECK(watcherManager != nullptr, return -1, "Failed to create manager"); in TestAddRemoteWatcher()
81 watcherManager->OnRemoteRequest( in TestAddRemoteWatcher()
86 auto remoteWatcher = watcherManager->GetRemoteWatcher(watcherId); in TestAddRemoteWatcher()
97 WatcherManagerPtr watcherManager = GetWatcherManager(); in TestDelRemoteWatcher() local
98 WATCHER_CHECK(watcherManager != nullptr, return -1, "Failed to create manager"); in TestDelRemoteWatcher()
105 watcherManager->OnRemoteRequest( in TestDelRemoteWatcher()
108 EXPECT_EQ(watcherManager->GetRemoteWatcher(watcherId) == nullptr, 1); in TestDelRemoteWatcher()
114 WatcherManagerPtr watcherManager = GetWatcherManager(); in TestAddWatcher() local
115 WATCHER_CHECK(watcherManager != nullptr, return -1, "Failed to create manager"); in TestAddWatcher()
[all …]
Dwatcher_agent_unittest.cpp203 sptr<WatcherManagerProxy> watcherManager = new(std::nothrow) WatcherManagerProxy(nullptr); in TestWatcherProxy() local
204 ASSERT_NE(watcherManager, nullptr); in TestWatcherProxy()
239 uint32_t watcherId = watcherManager->AddRemoteWatcher(1000, remoteWatcher); in TestWatcherProxy()
241 int ret = watcherManager->AddWatcher("test.watcher.proxy", watcherId); in TestWatcherProxy()
243 ret = watcherManager->DelWatcher("test.watcher.proxy", watcherId); in TestWatcherProxy()
245 ret = watcherManager->RefreshWatcher("test.watcher.proxy", watcherId); in TestWatcherProxy()
247 watcherManager->DelRemoteWatcher(watcherId); in TestWatcherProxy()
/base/startup/init/services/param/watcher/agent/
Dwatcher_manager_kits.cpp94 auto watcherManager = GetService(); in ReAddWatcher() local
95 while (watcherManager == nullptr && count < maxRetryCount) { in ReAddWatcher()
99 watcherManager = GetService(); in ReAddWatcher()
104 WATCHER_CHECK(watcherManager != nullptr, return, "Failed to get watcher manager"); in ReAddWatcher()
111 int ret = watcherManager->AddWatcher(iter->first, remoteWatcherId); in ReAddWatcher()
132 auto watcherManager = GetService(); in GetRemoteWatcher() local
133 WATCHER_CHECK(watcherManager != nullptr, return 0, "Failed to get watcher manager"); in GetRemoteWatcher()
136 remoteWatcherId_ = watcherManager->AddRemoteWatcher(getpid(), remoteWatcher_); in GetRemoteWatcher()
143 auto watcherManager = GetService(); in AddWatcher() local
144 WATCHER_CHECK(watcherManager != nullptr, return -1, "Failed to get watcher manager"); in AddWatcher()
[all …]
Dwatcher_manager_kits.h89 … explicit RemoteWatcher(WatcherManagerKits *watcherManager) : watcherManager_(watcherManager) {} in RemoteWatcher() argument
/base/startup/init/test/fuzztest/delremotewatcher_fuzzer/
Ddelremotewatcher_fuzzer.cpp26 std::unique_ptr<WatcherManager> watcherManager = std::make_unique<WatcherManager>(0, true); in FuzzDelRemoteWatcher() local
29 if (!watcherManager->DelRemoteWatcher(id)) { in FuzzDelRemoteWatcher()
/base/startup/init/test/fuzztest/delwatcher_fuzzer/
Ddelwatcher_fuzzer.cpp26 std::unique_ptr<WatcherManager> watcherManager = std::make_unique<WatcherManager>(0, true); in FuzzDelWatcher() local
29 if (!watcherManager->DelWatcher(str, 0)) { in FuzzDelWatcher()
/base/startup/init/test/fuzztest/addremotewatcher_fuzzer/
Daddremotewatcher_fuzzer.cpp26 std::unique_ptr<WatcherManager> watcherManager = std::make_unique<WatcherManager>(0, true); in FuzzAddRemoteWatcher() local
28 if (!watcherManager->AddRemoteWatcher(id, nullptr)) { in FuzzAddRemoteWatcher()
/base/startup/init/test/fuzztest/addwatcher_fuzzer/
Daddwatcher_fuzzer.cpp26 std::unique_ptr<WatcherManager> watcherManager = std::make_unique<WatcherManager>(0, true); in FuzzAddWatcher() local
29 if (!watcherManager->AddWatcher(str, 0)) { in FuzzAddWatcher()
/base/startup/init/test/fuzztest/refreshwatcher_fuzzer/
Drefreshwatcher_fuzzer.cpp26 std::unique_ptr<WatcherManager> watcherManager = std::make_unique<WatcherManager>(0, true); in FuzzRefreshWatcher() local
29 if (!watcherManager->RefreshWatcher(str, *data)) { in FuzzRefreshWatcher()