#ifndef CHROME_BROWSER_UI_VIEWS_PROFILES_PROFILES_PIXEL_TEST_UTILS_H_
#define CHROME_BROWSER_UI_VIEWS_PROFILES_PROFILES_PIXEL_TEST_UTILS_H_
#include <memory>
#include <string>
#include "base/scoped_environment_variable_override.h"
#include "chrome/browser/signin/signin_browser_test_base.h"
#include "components/signin/public/identity_manager/tribool.h"
namespace base {
class CommandLine;
namespace test {
class ScopedFeatureList;
}
}
namespace signin {
class IdentityTestEnvironment;
}
struct AccountInfo;
struct PixelTestParam { … };
enum class AccountManagementStatus { … };
AccountInfo FillAccountInfo(
const CoreAccountInfo& core_info,
AccountManagementStatus management_status,
signin::Tribool
can_show_history_sync_opt_ins_without_minor_mode_restrictions);
AccountInfo SignInWithAccount(
signin::IdentityTestEnvironment& identity_test_env,
AccountManagementStatus management_status =
AccountManagementStatus::kNonManaged,
std::optional<signin::ConsentLevel> consent_level =
signin::ConsentLevel::kSignin,
signin::Tribool
can_show_history_sync_opt_ins_without_minor_mode_restrictions =
signin::Tribool::kTrue);
void SetUpPixelTestCommandLine(
const PixelTestParam& params,
std::unique_ptr<base::ScopedEnvironmentVariableOverride>& env_variables,
base::CommandLine* command_line);
void InitPixelTestFeatures(const PixelTestParam& params,
base::test::ScopedFeatureList& feature_list);
template <typename T>
class ProfilesPixelTestBaseT : public SigninBrowserTestBaseT<T> { … };
#endif