chromium/chrome/browser/ui/views/autofill/edit_address_profile_view_unittest.cc

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

#include "chrome/browser/ui/views/autofill/edit_address_profile_view.h"

#include <memory>
#include <utility>

#include "base/memory/raw_ptr.h"
#include "base/test/scoped_feature_list.h"
#include "build/build_config.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/ui/autofill/edit_address_profile_dialog_controller.h"
#include "chrome/browser/ui/views/autofill/address_editor_view.h"
#include "chrome/test/base/testing_profile.h"
#include "chrome/test/views/chrome_views_test_base.h"
#include "components/autofill/core/browser/autofill_test_utils.h"
#include "components/autofill/core/browser/data_model/autofill_profile.h"
#include "components/autofill/core/common/autofill_features.h"
#include "content/public/test/test_renderer_host.h"
#include "content/public/test/web_contents_tester.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/base/mojom/dialog_button.mojom.h"
#include "ui/views/widget/widget.h"

namespace autofill {

// |arg| must be of type base::optional_ref<const AutofillProfile>.
MATCHER_P2(AutofillProfileHasInfo, type, expected_value, "") {}

class MockEditAddressProfileDialogController
    : public EditAddressProfileDialogController {};

class EditAddressProfileViewTest : public ChromeViewsTestBase {};

void EditAddressProfileViewTest::CreateViewAndShow(
    const AutofillProfile& address_profile) {}

TEST_F(EditAddressProfileViewTest, Sanity) {}

TEST_F(EditAddressProfileViewTest, SaveInvokesTheCallbackWithEditedFullname) {}

TEST_F(EditAddressProfileViewTest,
       SaveInvokesTheCallbackWithEditedInvalidPhoneNumber) {}

TEST_F(EditAddressProfileViewTest, SaveInvokesTheCallbackWithEditedEmail) {}

TEST_F(EditAddressProfileViewTest, InvalidFormIsNotSent) {}

TEST_F(EditAddressProfileViewTest, GetInitiallyFocusedView) {}

}  // namespace autofill