chromium/components/autofill/core/common/form_data_unittest.cc

// Copyright 2013 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#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 {

// This function serializes the form data into the pickle in version one format.
// It should always be possible to deserialize it using DeserializeFormData(),
// even when version changes. See kPickleVersion in form_data.cc.
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) {}

// This function serializes the form data into the pickle in incorrect format
// (no version number).
void SerializeIncorrectFormat(const FormData& form_data, base::Pickle* pickle) {}

void FillInDummyFormData(FormData* data) {}

}  // namespace

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) {}

}  // namespace autofill