#include "chrome/browser/ui/views/passwords/password_generation_popup_view_views.h"
#include <string>
#include "base/memory/weak_ptr.h"
#include "base/strings/strcat.h"
#include "base/test/scoped_feature_list.h"
#include "chrome/browser/ui/passwords/password_generation_popup_controller.h"
#include "chrome/browser/ui/views/autofill/popup/popup_pixel_test.h"
#include "chrome/browser/ui/views/passwords/password_generation_popup_view_views.h"
#include "chrome/grit/branded_strings.h"
#include "chrome/grit/generated_resources.h"
#include "chrome/test/base/in_process_browser_test.h"
#include "components/autofill/core/browser/ui/popup_open_enums.h"
#include "components/password_manager/core/browser/features/password_features.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/views/widget/widget.h"
namespace {
Bool;
Combine;
Return;
ReturnRef;
Values;
constexpr char16_t kSampleEmail[] = …;
class MockPasswordGenerationPopupController
: public PasswordGenerationPopupController { … };
}
class PasswordGenerationPopupViewBrowsertest
: public autofill::PopupPixelTest<PasswordGenerationPopupViewViews,
MockPasswordGenerationPopupController> { … };
IN_PROC_BROWSER_TEST_P(PasswordGenerationPopupViewBrowsertest,
OfferPasswordGeneration) { … }
IN_PROC_BROWSER_TEST_P(PasswordGenerationPopupViewBrowsertest,
OfferPasswordGenerationHovered) { … }
IN_PROC_BROWSER_TEST_P(PasswordGenerationPopupViewBrowsertest,
EditingSuggestionState) { … }
IN_PROC_BROWSER_TEST_P(PasswordGenerationPopupViewBrowsertest,
EditingSuggestionStateHovered) { … }
INSTANTIATE_TEST_SUITE_P(…);
ExperimentParameterType;
class PasswordGenerationPopupViewWithExperimentsBrowsertest
: public autofill::PopupPixelTest<PasswordGenerationPopupViewViews,
MockPasswordGenerationPopupController,
ExperimentParameterType> { … };
IN_PROC_BROWSER_TEST_P(PasswordGenerationPopupViewWithExperimentsBrowsertest,
OfferPasswordGeneration) { … }
INSTANTIATE_TEST_SUITE_P(…);