summaryrefslogtreecommitdiff
path: root/chromium/components/password_manager/core/browser/form_parsing/fuzzer/form_data_proto_producer.h
blob: 2542323f889f42a95a070ef6e770ca76914f5ea9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
// Copyright 2018 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_PASSWORD_MANAGER_CORE_BROWSER_FORM_PARSING_FUZZER_FORM_DATA_PROTO_PRODUCER_H_
#define COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_FORM_PARSING_FUZZER_FORM_DATA_PROTO_PRODUCER_H_

#include "components/autofill/core/common/form_data.h"

namespace form_data_fuzzer {
class Form;
}

namespace password_manager {

// Generates a |FormData| object based on values represented by a parsed
// protobuf |form_proto|.
autofill::FormData GenerateWithProto(
    const ::form_data_fuzzer::Form& form_proto);

}  // namespace password_manager

#endif  // COMPONENTS_PASSWORD_MANAGER_CORE_BROWSER_FORM_PARSING_FUZZER_FORM_DATA_PROTO_PRODUCER_H_