Home
last modified time | relevance | path

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

/base/security/access_token/services/tokensyncmanager/test/mock/src/
Dsoft_bus_session_mock.cpp30 static int g_serverCount = -1; variable
33 return g_serverCount >= 0 && g_serverCount < SERVER_COUNT_LIMIT; in IsServerCountOK()
41 g_serverCount++; in CreateSessionServer()
44 ACCESSTOKEN_LOG_DEBUG(LABEL, "success, server count: %{public}d", g_serverCount); in CreateSessionServer()
48 ACCESSTOKEN_LOG_DEBUG(LABEL, "failure, server count: %{public}d", g_serverCount); in CreateSessionServer()
56 g_serverCount--; in RemoveSessionServer()
58 ACCESSTOKEN_LOG_DEBUG(LABEL, "success, server count: %{public}d", g_serverCount); in RemoveSessionServer()
62 if (g_serverCount >= 0) { in RemoveSessionServer()
63 g_serverCount--; in RemoveSessionServer()
65 ACCESSTOKEN_LOG_DEBUG(LABEL, "failure, server count: %{public}d", g_serverCount); in RemoveSessionServer()