chromium/components/autofill/core/browser/rationalization_util_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/browser/rationalization_util.h"

#include <memory>
#include <tuple>
#include <vector>

#include "components/autofill/core/browser/autofill_field.h"
#include "components/autofill/core/browser/field_types.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace autofill {
namespace {

struct FieldTemplate {};

// Returns a tuple of test input and expectations.
// The input is the vector of fields. The expectations indicate whether
// the fields will have the only_fill_when_focused flag set to true.
std::tuple<std::vector<std::unique_ptr<AutofillField>>, std::vector<bool>>
CreateTest(std::vector<FieldTemplate> field_templates) {}

std::vector<AutofillField*> ToPointers(
    std::vector<std::unique_ptr<AutofillField>>& fields) {}

std::vector<bool> GetOnlyFilledWhenFocused(
    const std::vector<std::unique_ptr<AutofillField>>& fields) {}

}  // namespace

TEST(AutofillRationalizationUtilTest, PhoneNumber_FirstNumberIsWholeNumber) {}

TEST(AutofillRationalizationUtilTest, PhoneNumber_FirstNumberIsComponentized) {}

TEST(AutofillRationalizationUtilTest,
     PhoneNumber_BestEffortWhenNoCompleteNumberIsFound) {}

TEST(AutofillRationalizationUtilTest, PhoneNumber_FillPhonePartsOnceOnly) {}

TEST(AutofillRationalizationUtilTest, PhoneNumber_SkipHiddenPhoneNumberFields) {}

TEST(AutofillRationalizationUtilTest,
     PhoneNumber_ProcessNumberPrefixAndSuffix) {}

TEST(AutofillRationalizationUtilTest, PhoneNumber_IncorrectPrefix) {}

TEST(AutofillRationalizationUtilTest, PhoneNumber_IncorrectSuffix) {}

}  // namespace autofill