#include "chrome/browser/ui/views/webid/account_selection_view_test_base.h"
#include "chrome/browser/ui/views/webid/account_selection_view_base.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/views/controls/image_view.h"
#include "ui/views/controls/label.h"
#include "ui/views/controls/styled_label.h"
#include "ui/views/layout/box_layout.h"
AccountSelectionViewTestBase::AccountSelectionViewTestBase() = default;
AccountSelectionViewTestBase::~AccountSelectionViewTestBase() = default;
std::u16string AccountSelectionViewTestBase::GetHoverButtonTitle(
HoverButton* account) { … }
views::Label* AccountSelectionViewTestBase::GetHoverButtonSubtitle(
HoverButton* account) { … }
views::View* AccountSelectionViewTestBase::GetHoverButtonIconView(
HoverButton* account) { … }
views::Label* AccountSelectionViewTestBase::GetHoverButtonFooter(
HoverButton* account) { … }
views::View* AccountSelectionViewTestBase::GetHoverButtonSecondaryView(
HoverButton* account) { … }
content::IdentityRequestAccount
AccountSelectionViewTestBase::CreateTestIdentityRequestAccount(
const std::string& account_suffix,
content::IdentityRequestAccount::LoginState login_state,
std::optional<base::Time> last_used_timestamp) { … }
std::vector<content::IdentityRequestAccount>
AccountSelectionViewTestBase::CreateTestIdentityRequestAccounts(
const std::vector<std::string>& account_suffixes,
const std::vector<content::IdentityRequestAccount::LoginState>&
login_states,
const std::vector<std::optional<base::Time>>& last_used_timestamps) { … }
content::ClientMetadata AccountSelectionViewTestBase::CreateTestClientMetadata(
const std::string& terms_of_service_url,
const std::string& privacy_policy_url,
const std::string& rp_brand_icon_url) { … }
std::vector<std::string> AccountSelectionViewTestBase::GetChildClassNames(
views::View* parent) { … }
views::View* AccountSelectionViewTestBase::GetViewWithClassName(
views::View* parent,
const std::string& class_name) { … }
void AccountSelectionViewTestBase::CheckNonHoverableAccountRow(
views::View* row,
const std::string& account_suffix) { … }
void AccountSelectionViewTestBase::CheckHoverableAccountRows(
const std::vector<raw_ptr<views::View, VectorExperimental>>& accounts,
const std::vector<std::string>& account_suffixes,
size_t& accounts_index,
bool expect_idp,
bool is_modal_dialog) { … }
void AccountSelectionViewTestBase::CheckDisclosureText(
views::View* disclosure_text,
bool expect_terms_of_service,
bool expect_privacy_policy) { … }