summaryrefslogtreecommitdiff
path: root/chromium/components/autofill/core/browser/test_form_structure.h
blob: c9cfc8336e607776d9da0680deea58a4e49bba02 (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
// Copyright 2017 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_TEST_FORM_STRUCTURE_H_
#define COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_FORM_STRUCTURE_H_

#include <vector>

#include "components/autofill/core/browser/form_structure.h"

namespace autofill {

class TestFormStructure : public FormStructure {
 public:
  explicit TestFormStructure(const FormData& form);
  ~TestFormStructure() override;

  void SetFieldTypes(const std::vector<ServerFieldType>& heuristic_types,
                     const std::vector<ServerFieldType>& server_types);

 private:
  DISALLOW_COPY_AND_ASSIGN(TestFormStructure);
};

}  // namespace autofill

#endif  // COMPONENTS_AUTOFILL_CORE_BROWSER_TEST_FORM_STRUCTURE_H_