Home
last modified time | relevance | path

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

/base/account/os_account/frameworks/appaccount/native/src/
Dapp_account_info.cpp54 oauthTokens_.clear(); in AppAccountInfo()
67 oauthTokens_.clear(); in AppAccountInfo()
286 auto it = oauthTokens_.find(authType); in GetOAuthToken()
288 if ((it == oauthTokens_.end()) || (!it->second.status)) { in GetOAuthToken()
293 if ((it == oauthTokens_.end()) || (it->second.token.empty())) { in GetOAuthToken()
304 auto it = oauthTokens_.find(authType); in SetOAuthToken()
305 if (it != oauthTokens_.end()) { in SetOAuthToken()
309 if (oauthTokens_.size() >= MAX_TOKEN_NUMBER) { in SetOAuthToken()
315 oauthTokens_.emplace(authType, tokenInfo); in SetOAuthToken()
321 auto it = oauthTokens_.find(authType); in DeleteOAuthToken()
[all …]
/base/account/os_account/frameworks/appaccount/native/include/
Dapp_account_info.h115 std::map<std::string, OAuthTokenInfo> oauthTokens_; variable
/base/account/os_account/services/accountmgr/test/unittest/app_account/
Dapp_account_info_test.cpp879 appAccountInfo.oauthTokens_[STRING_AUTH_TYPE] = oauthTokenInfo;
882 ASSERT_EQ(appAccountInfo.oauthTokens_[STRING_AUTH_TYPE].token, token);
897 appAccountInfo.oauthTokens_[key] = oauthTokenInfo;