#include "chrome/browser/ui/views/autofill/payments/offer_notification_bubble_views_test_base.h"
#include <string_view>
#include "chrome/browser/autofill/autofill_uitest_util.h"
#include "chrome/browser/autofill/personal_data_manager_factory.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/tabs/tab_strip_model.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/test/base/in_process_browser_test.h"
#include "chrome/test/base/ui_test_utils.h"
#include "components/autofill/content/browser/content_autofill_client.h"
#include "components/autofill/content/browser/content_autofill_driver.h"
#include "components/autofill/content/browser/test_autofill_manager_injector.h"
#include "components/autofill/core/browser/payments/payments_autofill_client.h"
#include "components/autofill/core/browser/payments_data_manager.h"
#include "components/autofill/core/browser/payments_data_manager_test_api.h"
#include "components/autofill/core/common/autofill_clock.h"
#include "components/autofill/core/common/autofill_payments_features.h"
#include "components/commerce/core/commerce_feature_list.h"
#include "content/public/test/content_mock_cert_verifier.h"
#include "net/dns/mock_host_resolver.h"
namespace autofill {
const char kDefaultTestPromoCode[] = …;
const char kDefaultTestValuePropText[] = …;
const char kDefaultTestSeeDetailsText[] = …;
const char kDefaultTestUsageInstructionsText[] = …;
const char kDefaultTestDetailsUrlString[] = …;
OfferNotificationBubbleViewsTestBase::OfferNotificationBubbleViewsTestBase()
: … { … }
OfferNotificationBubbleViewsTestBase::~OfferNotificationBubbleViewsTestBase() =
default;
void OfferNotificationBubbleViewsTestBase::SetUpOnMainThread() { … }
void OfferNotificationBubbleViewsTestBase::TearDownOnMainThread() { … }
void OfferNotificationBubbleViewsTestBase::SetUpCommandLine(
base::CommandLine* command_line) { … }
void OfferNotificationBubbleViewsTestBase::OnBubbleShown() { … }
std::unique_ptr<AutofillOfferData>
OfferNotificationBubbleViewsTestBase::CreateCardLinkedOfferDataWithDomains(
const std::vector<GURL>& domains) { … }
std::unique_ptr<AutofillOfferData>
OfferNotificationBubbleViewsTestBase::CreateGPayPromoCodeOfferDataWithDomains(
const std::vector<GURL>& domains) { … }
void OfferNotificationBubbleViewsTestBase::SetUpOfferDataWithDomains(
AutofillOfferData::OfferType offer_type,
const std::vector<GURL>& domains) { … }
void OfferNotificationBubbleViewsTestBase::SetUpCardLinkedOfferDataWithDomains(
const std::vector<GURL>& domains) { … }
void OfferNotificationBubbleViewsTestBase::
SetUpGPayPromoCodeOfferDataWithDomains(const std::vector<GURL>& domains) { … }
OfferNotificationBubbleViewsTestBase::TestAutofillManager*
OfferNotificationBubbleViewsTestBase::GetAutofillManager() { … }
GURL OfferNotificationBubbleViewsTestBase::GetUrl(std::string_view host,
std::string_view path) const { … }
void OfferNotificationBubbleViewsTestBase::NavigateTo(const GURL& url) { … }
void OfferNotificationBubbleViewsTestBase::NavigateToAndWaitForForm(
const GURL& url) { … }
OfferNotificationBubbleViews*
OfferNotificationBubbleViewsTestBase::GetOfferNotificationBubbleViews() { … }
OfferNotificationIconView*
OfferNotificationBubbleViewsTestBase::GetOfferNotificationIconView() { … }
bool OfferNotificationBubbleViewsTestBase::IsIconVisible() { … }
content::WebContents*
OfferNotificationBubbleViewsTestBase::GetActiveWebContents() { … }
void OfferNotificationBubbleViewsTestBase::AddEventObserverToController(
OfferNotificationBubbleControllerImpl* controller) { … }
void OfferNotificationBubbleViewsTestBase::ResetEventWaiterForSequence(
std::list<DialogEvent> event_sequence) { … }
std::string OfferNotificationBubbleViewsTestBase::GetDefaultTestPromoCode()
const { … }
std::string OfferNotificationBubbleViewsTestBase::GetDefaultTestValuePropText()
const { … }
std::string OfferNotificationBubbleViewsTestBase::GetDefaultTestSeeDetailsText()
const { … }
std::string
OfferNotificationBubbleViewsTestBase::GetDefaultTestUsageInstructionsText()
const { … }
std::string
OfferNotificationBubbleViewsTestBase::GetDefaultTestDetailsUrlString() const { … }
AutofillOfferManager* OfferNotificationBubbleViewsTestBase::GetOfferManager() { … }
}