Home
last modified time | relevance | path

Searched refs:tokenInfos (Results 1 – 25 of 29) sorted by relevance

12

/base/security/access_token/services/accesstokenmanager/test/unittest/cpp/src/
Dnative_token_receptor_test.cpp85 std::vector<std::shared_ptr<NativeTokenInfoInner>> tokenInfos; variable
86 receptor.ParserNativeRawData(testStr, tokenInfos);
87 ASSERT_EQ(static_cast<uint32_t>(2), tokenInfos.size());
88 ASSERT_NE(nullptr, tokenInfos[0]);
89 ASSERT_NE(nullptr, tokenInfos[1]);
91 ASSERT_EQ("process6", tokenInfos[0]->GetProcessName());
92 ASSERT_EQ(static_cast<AccessTokenID>(685266937), tokenInfos[0]->GetTokenID());
93 ASSERT_EQ(static_cast<uint32_t>(2), tokenInfos[0]->GetDcap().size());
94 ASSERT_EQ("AT_CAP", (tokenInfos[0]->GetDcap())[0]);
95 ASSERT_EQ("ST_CAP", (tokenInfos[0]->GetDcap())[1]);
[all …]
/base/security/access_token/services/accesstokenmanager/main/cpp/include/token/
Dnative_token_receptor.h47 std::vector<std::shared_ptr<NativeTokenInfoInner>>& tokenInfos);
49 std::vector<std::shared_ptr<NativeTokenInfoInner>>& tokenInfos);
Daccesstoken_info_manager.h55 …void ProcessNativeTokenInfos(const std::vector<std::shared_ptr<NativeTokenInfoInner>>& tokenInfos);
/base/security/access_token/services/accesstokenmanager/main/cpp/src/token/
Dnative_token_receptor.cpp162 std::vector<std::shared_ptr<NativeTokenInfoInner>>& tokenInfos) in ParserNativeRawData() argument
172 tokenInfos.emplace_back(token); in ParserNativeRawData()
226 std::vector<std::shared_ptr<NativeTokenInfoInner>> tokenInfos; in Init() local
227 ret = ParserNativeRawData(nativeRawData, tokenInfos); in Init()
232 AccessTokenInfoManager::GetInstance().ProcessNativeTokenInfos(tokenInfos); in Init()
/base/account/os_account/frameworks/appaccount/native/include/
Dapp_account_info.h83 ErrCode GetAllOAuthTokens(std::vector<OAuthTokenInfo> &tokenInfos) const;
103 … bool WriteTokenInfos(const std::map<std::string, OAuthTokenInfo> &tokenInfos, Parcel &data) const;
104 bool ReadTokenInfos(std::map<std::string, OAuthTokenInfo> &tokenInfos, Parcel &data);
Diapp_account.h83 std::vector<OAuthTokenInfo> &tokenInfos) = 0;
Dapp_account.h82 const std::string &name, const std::string &owner, std::vector<OAuthTokenInfo> &tokenInfos);
Dapp_account_proxy.h80 …const std::string &name, const std::string &owner, std::vector<OAuthTokenInfo> &tokenInfos) overri…
/base/account/os_account/frameworks/appaccount/native/src/
Dapp_account_info.cpp404 ErrCode AppAccountInfo::GetAllOAuthTokens(std::vector<OAuthTokenInfo> &tokenInfos) const in GetAllOAuthTokens()
406 tokenInfos.clear(); in GetAllOAuthTokens()
408 tokenInfos.push_back(it->second); in GetAllOAuthTokens()
678 bool AppAccountInfo::WriteTokenInfos(const std::map<std::string, OAuthTokenInfo> &tokenInfos, Parce… in WriteTokenInfos() argument
680 if (!data.WriteUint32(tokenInfos.size())) { in WriteTokenInfos()
684 for (auto& it : tokenInfos) { in WriteTokenInfos()
730 bool AppAccountInfo::ReadTokenInfos(std::map<std::string, OAuthTokenInfo> &tokenInfos, Parcel &data) in ReadTokenInfos() argument
741 tokenInfos.clear(); in ReadTokenInfos()
756 tokenInfos.emplace(tokenInfo.authType, tokenInfo); in ReadTokenInfos()
Dapp_account_manager.cpp178 const std::string &name, const std::string &owner, std::vector<OAuthTokenInfo> &tokenInfos) in GetAllOAuthTokens() argument
180 return AppAccount::GetInstance().GetAllOAuthTokens(name, owner, tokenInfos); in GetAllOAuthTokens()
Dapp_account_proxy.cpp747 const std::string &name, const std::string &owner, std::vector<OAuthTokenInfo> &tokenInfos) in GetAllOAuthTokens() argument
749 tokenInfos.clear(); in GetAllOAuthTokens()
760 tokenInfos.push_back(tokenInfo); in GetAllOAuthTokens()
/base/account/os_account/services/accountmgr/test/unittest/app_account/
Dapp_account_info_test.cpp574 std::map<std::string, OAuthTokenInfo> tokenInfos; variable
579 tokenInfos[key] = testOAuthTokenInfo;
582 EXPECT_EQ(appAccountInfo.WriteTokenInfos(tokenInfos, data), true);
583 EXPECT_EQ(appAccountInfo.ReadTokenInfos(tokenInfos, data), false);
595 std::map<std::string, OAuthTokenInfo> tokenInfos; variable
604 bool result = appAccountInfo.ReadTokenInfos(tokenInfos, data);
606 ASSERT_EQ(tokenInfos.empty(), false);
607 ASSERT_EQ(tokenInfos[STRING_AUTH_TYPE].authType, STRING_AUTH_TYPE);
608 ASSERT_EQ(tokenInfos[STRING_AUTH_TYPE].token, STRING_TOKEN);
/base/account/os_account/services/accountmgr/test/moduletest/app_account/
Dapp_account_control_manager_module_test.cpp228 std::vector<OAuthTokenInfo> tokenInfos; variable
249 result = AppAccountControlManager::GetInstance().GetAllOAuthTokens(request, tokenInfos);
251 EXPECT_EQ(tokenInfos.size(), 1);
Dapp_account_manager_service_module_test.cpp1293 std::vector<OAuthTokenInfo> tokenInfos; variable
1294 …ErrCode result = g_accountManagerService->GetAllOAuthTokens(STRING_NAME, STRING_OWNER, tokenInfos);
1318 std::vector<OAuthTokenInfo> tokenInfos; variable
1319 result = g_accountManagerService->GetAllOAuthTokens(STRING_NAME, owner, tokenInfos);
1321 ASSERT_EQ(tokenInfos.size(), static_cast<size_t>(0));
1329 tokenInfos.clear();
1330 result = g_accountManagerService->GetAllOAuthTokens(STRING_NAME, owner, tokenInfos);
1332 ASSERT_EQ(tokenInfos.size(), SIZE_TWO);
1333 EXPECT_EQ(tokenInfos[0].token, STRING_TOKEN);
1334 EXPECT_EQ(tokenInfos[1].token, STRING_TOKEN_TWO);
/base/account/os_account/frameworks/appaccount/native/test/unittest/
Dapp_account_manager_test.cpp1709 std::vector<OAuthTokenInfo> tokenInfos; variable
1710 ErrCode result = AppAccountManager::GetAllOAuthTokens(STRING_EMPTY, STRING_OWNER, tokenInfos);
1712 EXPECT_EQ(tokenInfos.size(), 0);
1714 result = AppAccountManager::GetAllOAuthTokens(STRING_NAME, STRING_EMPTY, tokenInfos);
1716 EXPECT_EQ(tokenInfos.size(), 0);
1728 std::vector<OAuthTokenInfo> tokenInfos; variable
1729 … result = AppAccountManager::GetAllOAuthTokens(STRING_NAME_OUT_OF_RANGE, STRING_OWNER, tokenInfos);
1731 EXPECT_EQ(tokenInfos.size(), 0);
1733 … result = AppAccountManager::GetAllOAuthTokens(STRING_NAME, STRING_OWNER_OUT_OF_RANGE, tokenInfos);
1735 EXPECT_EQ(tokenInfos.size(), 0);
[all …]
/base/account/os_account/frameworks/test/unittest/
Daccount_appaccount_proxy_mock_test.cpp412 std::vector<OAuthTokenInfo> tokenInfos; variable
413 ErrCode result = AppAccountManager::GetAllOAuthTokens(STRING_NAME, STRING_OWNER, tokenInfos);
/base/account/os_account/interfaces/innerkits/appaccount/native/include/
Dapp_account_manager.h362 std::vector<OAuthTokenInfo> &tokenInfos);
/base/account/os_account/services/accountmgr/include/appaccount/
Dinner_app_account_manager.h80 …llOAuthTokens(const AuthenticatorSessionRequest &request, std::vector<OAuthTokenInfo> &tokenInfos);
Dapp_account_manager_service.h83 std::vector<OAuthTokenInfo> &tokenInfos) override;
Dapp_account_control_manager.h83 …llOAuthTokens(const AuthenticatorSessionRequest &request, std::vector<OAuthTokenInfo> &tokenInfos);
/base/account/os_account/services/accountmgr/src/appaccount/
Dinner_app_account_manager.cpp328 const AuthenticatorSessionRequest &request, std::vector<OAuthTokenInfo> &tokenInfos) in GetAllOAuthTokens() argument
330 return controlManager_.GetAllOAuthTokens(request, tokenInfos); in GetAllOAuthTokens()
Dapp_account_stub.cpp768 std::vector<OAuthTokenInfo> tokenInfos; in ProcGetAllOAuthTokens() local
769 ErrCode result = GetAllOAuthTokens(name, owner, tokenInfos); in ProcGetAllOAuthTokens()
770 if ((!reply.WriteInt32(result)) || (!reply.WriteUint32(tokenInfos.size()))) { in ProcGetAllOAuthTokens()
774 for (auto tokenInfo : tokenInfos) { in ProcGetAllOAuthTokens()
Dapp_account_control_manager.cpp563 const AuthenticatorSessionRequest &request, std::vector<OAuthTokenInfo> &tokenInfos) in GetAllOAuthTokens() argument
565 tokenInfos.clear(); in GetAllOAuthTokens()
581 tokenInfos = allTokenInfos; in GetAllOAuthTokens()
591 tokenInfos.push_back(tokenInfo); in GetAllOAuthTokens()
/base/account/os_account/services/accountmgr/test/mock/app_account/
Dmock_app_account_stub.h76 std::vector<OAuthTokenInfo> &tokenInfos) override;
Dmock_app_account_stub.cpp266 std::vector<OAuthTokenInfo> &tokenInfos) in GetAllOAuthTokens() argument

12