chromium/chrome/browser/ui/views/passwords/password_generation_popup_view_views_browsertest.cc

// Copyright 2023 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/passwords/password_generation_popup_view_views.h"

#include <string>

#include "base/memory/weak_ptr.h"
#include "base/strings/strcat.h"
#include "base/test/scoped_feature_list.h"
#include "chrome/browser/ui/passwords/password_generation_popup_controller.h"
#include "chrome/browser/ui/views/autofill/popup/popup_pixel_test.h"
#include "chrome/browser/ui/views/passwords/password_generation_popup_view_views.h"
#include "chrome/grit/branded_strings.h"
#include "chrome/grit/generated_resources.h"
#include "chrome/test/base/in_process_browser_test.h"
#include "components/autofill/core/browser/ui/popup_open_enums.h"
#include "components/password_manager/core/browser/features/password_features.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/views/widget/widget.h"

namespace {

Bool;
Combine;
Return;
ReturnRef;
Values;

constexpr char16_t kSampleEmail[] =;

class MockPasswordGenerationPopupController
    : public PasswordGenerationPopupController {};

}  // namespace

class PasswordGenerationPopupViewBrowsertest
    : public autofill::PopupPixelTest<PasswordGenerationPopupViewViews,
                                      MockPasswordGenerationPopupController> {};

IN_PROC_BROWSER_TEST_P(PasswordGenerationPopupViewBrowsertest,
                       OfferPasswordGeneration) {}

IN_PROC_BROWSER_TEST_P(PasswordGenerationPopupViewBrowsertest,
                       OfferPasswordGenerationHovered) {}

IN_PROC_BROWSER_TEST_P(PasswordGenerationPopupViewBrowsertest,
                       EditingSuggestionState) {}

IN_PROC_BROWSER_TEST_P(PasswordGenerationPopupViewBrowsertest,
                       EditingSuggestionStateHovered) {}

INSTANTIATE_TEST_SUITE_P();

ExperimentParameterType;

// TODO(crbug.com/326949412): Remove once the experiments conclude.
class PasswordGenerationPopupViewWithExperimentsBrowsertest
    : public autofill::PopupPixelTest<PasswordGenerationPopupViewViews,
                                      MockPasswordGenerationPopupController,
                                      ExperimentParameterType> {};

IN_PROC_BROWSER_TEST_P(PasswordGenerationPopupViewWithExperimentsBrowsertest,
                       OfferPasswordGeneration) {}

INSTANTIATE_TEST_SUITE_P();