#include "chrome/test/payments/payment_request_platform_browsertest_base.h"
#include <algorithm>
#include <iostream>
#include <list>
#include <memory>
#include <string>
#include <utility>
#include <vector>
#include "chrome/test/base/chrome_test_utils.h"
#include "chrome/test/payments/payment_app_install_util.h"
#include "components/network_session_configurator/common/network_switches.h"
#include "components/payments/content/service_worker_payment_app_finder.h"
#include "components/payments/core/test_payment_manifest_downloader.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/storage_partition.h"
#include "testing/gmock/include/gmock/gmock-matchers.h"
#include "third_party/re2/src/re2/re2.h"
#include "url/origin.h"
namespace payments {
PaymentRequestPlatformBrowserTestBase::PaymentRequestPlatformBrowserTestBase() { … }
PaymentRequestPlatformBrowserTestBase::
~PaymentRequestPlatformBrowserTestBase() = default;
void PaymentRequestPlatformBrowserTestBase::SetUpCommandLine(
base::CommandLine* command_line) { … }
void PaymentRequestPlatformBrowserTestBase::SetUpOnMainThread() { … }
void PaymentRequestPlatformBrowserTestBase::SetUpInProcessBrowserTestFixture() { … }
void PaymentRequestPlatformBrowserTestBase::
TearDownInProcessBrowserTestFixture() { … }
void PaymentRequestPlatformBrowserTestBase::NavigateTo(
const std::string& file_path) { … }
void PaymentRequestPlatformBrowserTestBase::NavigateTo(
const std::string& hostname,
const std::string& file_path) { … }
void PaymentRequestPlatformBrowserTestBase::InstallPaymentApp(
const std::string& hostname,
const std::string& service_worker_filename,
std::string* url_method_output) { … }
void PaymentRequestPlatformBrowserTestBase::ExpectBodyContains(
const std::string& expected_string) { … }
content::WebContents*
PaymentRequestPlatformBrowserTestBase::GetActiveWebContents() { … }
void PaymentRequestPlatformBrowserTestBase::
SetDownloaderAndIgnorePortInOriginComparisonForTestingInFrame(
const std::vector<std::pair<const std::string&,
net::EmbeddedTestServer*>>& payment_methods,
content::RenderFrameHost* frame) { … }
void PaymentRequestPlatformBrowserTestBase::
SetDownloaderAndIgnorePortInOriginComparisonForTesting(
const std::vector<
std::pair<const std::string&, net::EmbeddedTestServer*>>&
payment_methods) { … }
void PaymentRequestPlatformBrowserTestBase::OnCanMakePaymentCalled() { … }
void PaymentRequestPlatformBrowserTestBase::OnCanMakePaymentReturned() { … }
void PaymentRequestPlatformBrowserTestBase::OnHasEnrolledInstrumentCalled() { … }
void PaymentRequestPlatformBrowserTestBase::OnHasEnrolledInstrumentReturned() { … }
void PaymentRequestPlatformBrowserTestBase::OnConnectionTerminated() { … }
void PaymentRequestPlatformBrowserTestBase::OnNotSupportedError() { … }
void PaymentRequestPlatformBrowserTestBase::OnAbortCalled() { … }
void PaymentRequestPlatformBrowserTestBase::OnAppListReady() { … }
void PaymentRequestPlatformBrowserTestBase::OnErrorDisplayed() { … }
void PaymentRequestPlatformBrowserTestBase::OnCompleteCalled() { … }
void PaymentRequestPlatformBrowserTestBase::OnUIDisplayed() { … }
void PaymentRequestPlatformBrowserTestBase::ResetEventWaiterForSingleEvent(
TestEvent event) { … }
void PaymentRequestPlatformBrowserTestBase::ResetEventWaiterForEventSequence(
std::list<TestEvent> event_sequence) { … }
base::WeakPtr<CSPChecker>
PaymentRequestPlatformBrowserTestBase::GetCSPCheckerForTests() { … }
void PaymentRequestPlatformBrowserTestBase::WaitForObservedEvent() { … }
autofill::AutofillProfile
PaymentRequestPlatformBrowserTestBase::CreateAndAddAutofillProfile() { … }
void PaymentRequestPlatformBrowserTestBase::AddAutofillProfile(
const autofill::AutofillProfile& profile) { … }
autofill::CreditCard
PaymentRequestPlatformBrowserTestBase::CreateAndAddCreditCardForProfile(
const autofill::AutofillProfile& profile) { … }
autofill::CreditCard
PaymentRequestPlatformBrowserTestBase::CreatCreditCardForProfile(
const autofill::AutofillProfile& profile) { … }
void PaymentRequestPlatformBrowserTestBase::AddCreditCard(
const autofill::CreditCard& card) { … }
std::string PaymentRequestPlatformBrowserTestBase::ClearPortNumber(
const std::string& may_contain_method_url) { … }
}