blob: a6bcd32818e270108c635fb1285eda5805d482a2 [file] [log] [blame]
bondd10a45b92015-02-04 23:29:401// Copyright 2015 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#ifndef CHROME_BROWSER_AUTOFILL_AUTOFILL_UITEST_UTIL_H_
6#define CHROME_BROWSER_AUTOFILL_AUTOFILL_UITEST_UTIL_H_
7
8#include <vector>
9
Ian Struiksma606b1b52020-11-18 18:08:3610class Profile;
bondd10a45b92015-02-04 23:29:4011
12namespace autofill {
13
14class AutofillProfile;
sebsge35b762c2018-03-29 20:33:2715class CreditCard;
bondd10a45b92015-02-04 23:29:4016
Ian Struiksma606b1b52020-11-18 18:08:3617void AddTestProfile(Profile* base_profile, const AutofillProfile& profile);
18void SetTestProfile(Profile* base_profile, const AutofillProfile& profile);
19void SetTestProfiles(Profile* base_profile,
20 std::vector<AutofillProfile>* profiles);
21void AddTestCreditCard(Profile* base_profile, const CreditCard& card);
22void AddTestServerCreditCard(Profile* base_profile, const CreditCard& card);
23void AddTestAutofillData(Profile* base_profile,
Yiming Zhou03261c82018-06-19 19:18:5424 const AutofillProfile& profile,
25 const CreditCard& card);
Ian Struiksma606b1b52020-11-18 18:08:3626void WaitForPersonalDataChange(Profile* base_profile);
Dominic Battreb5b59a52021-01-14 12:11:0727void WaitForPersonalDataManagerToBeLoaded(Profile* base_profile);
siyua748ce382019-02-11 22:18:2428
bondd10a45b92015-02-04 23:29:4029} // namespace autofill
30
31#endif // CHROME_BROWSER_AUTOFILL_AUTOFILL_UITEST_UTIL_H_