#include "base/check_deref.h"
#include "base/strings/strcat.h"
#include "base/strings/utf_string_conversions.h"
#include "base/test/scoped_feature_list.h"
#include "build/chromeos_buildflags.h"
#include "chrome/browser/autofill/autofill_uitest_util.h"
#include "chrome/browser/devtools/protocol/devtools_protocol_test_support.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/test/base/ui_test_utils.h"
#include "components/autofill/content/browser/content_autofill_driver.h"
#include "components/autofill/content/browser/test_autofill_manager_injector.h"
#include "components/autofill/content/common/mojom/autofill_driver.mojom.h"
#include "components/autofill/core/browser/autofill_address_util.h"
#include "components/autofill/core/browser/autofill_test_utils.h"
#include "components/autofill/core/browser/browser_autofill_manager.h"
#include "components/autofill/core/browser/browser_autofill_manager_test_api.h"
#include "components/autofill/core/browser/field_types.h"
#include "components/autofill/core/browser/mock_autofill_manager_observer.h"
#include "components/autofill/core/browser/test_autofill_manager_waiter.h"
#include "components/autofill/core/common/autofill_features.h"
#include "components/autofill/core/common/form_data.h"
#include "components/autofill/core/common/form_data_test_api.h"
#include "components/autofill/core/common/unique_ids.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/browser_test_utils.h"
#include "net/dns/mock_host_resolver.h"
#include "testing/gmock/include/gmock/gmock.h"
_;
Eq;
Not;
ResultOf;
namespace autofill {
namespace {
auto FilledFieldHasAttributeWithValue(const std::string& attribute,
const std::string& expected_value) { … }
std::set<autofill::FieldType>
GetExpectedFieldTypesToBuildAddressUiForCountryCode(
const std::string& country_code) { … }
auto FilledFieldHasAttributeWithValue16(const std::string& attribute,
const std::u16string& expected_value) { … }
std::string GetProfileInfoFromAddressField(const AutofillProfile profile,
const base::Value& address_field) { … }
}
class TestAutofillManager : public autofill::BrowserAutofillManager { … };
class DevToolsAutofillTest : public DevToolsProtocolTestBase { … };
IN_PROC_BROWSER_TEST_F(DevToolsAutofillTest, SetAddresses) { … }
IN_PROC_BROWSER_TEST_F(DevToolsAutofillTest, TriggerCreditCard) { … }
IN_PROC_BROWSER_TEST_F(DevToolsAutofillTest, TriggerCreditCardInIframe) { … }
IN_PROC_BROWSER_TEST_F(DevToolsAutofillTest, TriggerCreditCardInOOPIFIframe) { … }
IN_PROC_BROWSER_TEST_F(DevToolsAutofillTest, TriggerCreditCardAcrossOOPIFs) { … }
IN_PROC_BROWSER_TEST_F(DevToolsAutofillTest, AddressFormFilled) { … }
IN_PROC_BROWSER_TEST_F(DevToolsAutofillTest, AutofillInOOPIFs) { … }
IN_PROC_BROWSER_TEST_F(DevToolsAutofillTest, AddressFormFilledInOOPIFs) { … }
IN_PROC_BROWSER_TEST_F(DevToolsAutofillTest,
AutofillManagerEventsAfterNavigation) { … }
}