blob: efe4a4584d6168cf6cff15b42a8dbe8112e03bb7 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
|
// Copyright 2019 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef COMPONENTS_AUTOFILL_CORE_BROWSER_PAYMENTS_STRIKE_DATABASE_INTEGRATOR_TEST_STRIKE_DATABASE_H_
#define COMPONENTS_AUTOFILL_CORE_BROWSER_PAYMENTS_STRIKE_DATABASE_INTEGRATOR_TEST_STRIKE_DATABASE_H_
#include <stdint.h>
#include <string>
#include "components/autofill/core/browser/payments/strike_database.h"
#include "components/autofill/core/browser/payments/strike_database_integrator_base.h"
namespace autofill {
// Mock per-project implementation of StrikeDatabase to test the functions in
// StrikeDatabaseIntegrator.
class StrikeDatabaseIntegratorTestStrikeDatabase
: public StrikeDatabaseIntegratorBase {
public:
StrikeDatabaseIntegratorTestStrikeDatabase(StrikeDatabase* strike_database);
~StrikeDatabaseIntegratorTestStrikeDatabase() override;
std::string GetProjectPrefix() override;
int GetMaxStrikesLimit() override;
int64_t GetExpiryTimeMicros() override;
bool UniqueIdsRequired() override;
void SetUniqueIdsRequired(bool unique_ids_required);
private:
bool unique_ids_required_ = false;
};
} // namespace autofill
#endif // COMPONENTS_AUTOFILL_CORE_BROWSER_PAYMENTS_STRIKE_DATABASE_INTEGRATOR_TEST_STRIKE_DATABASE_H_
|