#include "components/autofill/core/common/form_data.h"
#include <stddef.h>
#include "base/pickle.h"
#include "base/strings/utf_string_conversions.h"
#include "components/autofill/core/common/form_data.h"
#include "components/autofill/core/common/form_data_test_api.h"
#include "components/autofill/core/common/form_field_data.h"
#include "components/autofill/core/common/unique_ids.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace autofill {
namespace {
void SerializeInVersion1Format(const FormData& form_data,
base::Pickle* pickle) { … }
void SerializeInVersion2Format(const FormData& form_data,
base::Pickle* pickle) { … }
void SerializeInVersion3Format(const FormData& form_data,
base::Pickle* pickle) { … }
void SerializeInVersion4Format(const FormData& form_data,
base::Pickle* pickle) { … }
void SerializeInVersion5Format(const FormData& form_data,
base::Pickle* pickle) { … }
void SerializeInVersion6Format(const FormData& form_data,
base::Pickle* pickle) { … }
void SerializeInVersion7Format(const FormData& form_data,
base::Pickle* pickle) { … }
void SerializeInVersion8Format(const FormData& form_data,
base::Pickle* pickle) { … }
void SerializeIncorrectFormat(const FormData& form_data, base::Pickle* pickle) { … }
void FillInDummyFormData(FormData* data) { … }
}
TEST(FormDataTest, SerializeAndDeserialize) { … }
TEST(FormDataTest, Serialize_v1_Deserialize_vCurrent) { … }
TEST(FormDataTest, Serialize_v2_Deserialize_vCurrent) { … }
TEST(FormDataTest, Serialize_v3_Deserialize_vCurrent) { … }
TEST(FormDataTest, Serialize_v3_Deserialize_vCurrent_IsFormTagFalse) { … }
TEST(FormDataTest, Serialize_v4_Deserialize_vCurrent) { … }
TEST(FormDataTest, Serialize_v5_Deserialize_vCurrent) { … }
TEST(FormDataTest, Serialize_v6_Deserialize_vCurrent) { … }
TEST(FormDataTest, Serialize_v7_Deserialize_vCurrent) { … }
TEST(FormDataTest, Serialize_v8_Deserialize_vCurrent) { … }
TEST(FormDataTest, SerializeIncorrectFormatAndDeserialize) { … }
}