#include "chrome/browser/ui/views/profiles/profile_menu_view.h"
#include "base/test/scoped_feature_list.h"
#include "build/chromeos_buildflags.h"
#include "chrome/browser/sync/sync_service_factory.h"
#include "chrome/browser/themes/theme_service.h"
#include "chrome/browser/themes/theme_service_factory.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/test/test_browser_dialog.h"
#include "chrome/browser/ui/test/test_browser_ui.h"
#include "chrome/browser/ui/views/frame/browser_view.h"
#include "chrome/browser/ui/views/frame/toolbar_button_provider.h"
#include "chrome/browser/ui/views/frame/top_container_view.h"
#include "chrome/browser/ui/views/profiles/avatar_toolbar_button.h"
#include "chrome/browser/ui/views/profiles/profile_menu_coordinator.h"
#include "chrome/browser/ui/views/profiles/profiles_pixel_test_utils.h"
#include "chrome/test/base/testing_browser_process.h"
#include "chrome/test/base/ui_test_utils.h"
#include "components/signin/public/base/signin_switches.h"
#include "components/sync/service/sync_user_settings.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/browser_test_utils.h"
#include "ui/events/event_utils.h"
#include "ui/gfx/image/image_skia.h"
#include "ui/gfx/image/image_unittest_util.h"
#include "ui/views/bubble/bubble_dialog_model_host.h"
#include "ui/views/test/widget_activation_waiter.h"
#include "ui/views/test/widget_test.h"
#include "ui/views/widget/any_widget_observer.h"
#if BUILDFLAG(IS_CHROMEOS_LACROS)
#include "chromeos/crosapi/mojom/crosapi.mojom.h"
#include "chromeos/startup/browser_init_params.h"
#endif
namespace {
enum class ProfileTypePixelTestParam { … };
enum class SigninStatusPixelTestParam { … };
struct ProfileMenuViewPixelTestParam { … };
std::string ParamToTestSuffix(
const ::testing::TestParamInfo<ProfileMenuViewPixelTestParam>& info) { … }
const ProfileMenuViewPixelTestParam kPixelTestParams[] = …;
}
class ProfileMenuViewPixelTest
: public ProfilesPixelTestBaseT<DialogBrowserTest>,
public testing::WithParamInterface<ProfileMenuViewPixelTestParam> { … };
IN_PROC_BROWSER_TEST_P(ProfileMenuViewPixelTest, InvokeUi_default) { … }
INSTANTIATE_TEST_SUITE_P(…);