#include "chrome/browser/ui/views/autofill/payments/offer_notification_icon_view.h"
#include <optional>
#include "chrome/browser/ui/autofill/chrome_autofill_client.h"
#include "chrome/browser/ui/browser_element_identifiers.h"
#include "chrome/browser/ui/page_action/page_action_icon_type.h"
#include "chrome/browser/ui/test/test_browser_ui.h"
#include "chrome/browser/ui/views/frame/browser_view.h"
#include "chrome/browser/ui/views/location_bar/location_bar_view.h"
#include "chrome/browser/ui/views/toolbar/toolbar_view.h"
#include "chrome/grit/generated_resources.h"
#include "chrome/test/base/ui_test_utils.h"
#include "components/autofill/core/browser/data_model/autofill_offer_data.h"
#include "components/autofill/core/browser/payments/offer_notification_options.h"
#include "components/autofill/core/browser/payments/payments_autofill_client.h"
#include "components/commerce/core/test_utils.h"
#include "components/strings/grit/components_strings.h"
#include "content/public/test/browser_test.h"
#include "ui/base/interaction/element_identifier.h"
#include "ui/base/interaction/element_tracker.h"
#include "ui/views/interaction/element_tracker_views.h"
namespace autofill {
namespace {
constexpr char kTestURL[] = …;
constexpr char kTestPromoCode[] = …;
struct UiTestData { … };
std::string GetTestName(const ::testing::TestParamInfo<UiTestData>& info) { … }
AutofillOfferData CreateTestOffer(const std::vector<GURL>& merchant_origins,
const std::string& promo_code) { … }
}
class OfferNotificationIconViewBrowserTest
: public UiBrowserTest,
public testing::WithParamInterface<UiTestData> { … };
INSTANTIATE_TEST_SUITE_P(…);
IN_PROC_BROWSER_TEST_P(OfferNotificationIconViewBrowserTest,
InvokeUi_show_offer_notification_icon_only) { … }
IN_PROC_BROWSER_TEST_P(OfferNotificationIconViewBrowserTest,
InvokeUi_show_offer_notification_icon_expanded) { … }
}