chromium/chrome/browser/ui/passwords/password_cross_domain_confirmation_popup_controller_impl_unittest.cc

// Copyright 2024 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/passwords/password_cross_domain_confirmation_popup_controller_impl.h"

#include <memory>

#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/memory/weak_ptr.h"
#include "base/test/metrics/histogram_tester.h"
#include "chrome/browser/ui/autofill/chrome_autofill_client.h"
#include "chrome/browser/ui/passwords/password_cross_domain_confirmation_popup_view.h"
#include "chrome/test/base/chrome_render_view_host_test_harness.h"
#include "components/autofill/content/browser/content_autofill_client.h"
#include "components/autofill/core/browser/ui/popup_open_enums.h"
#include "content/public/browser/web_contents.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/common/input/synthetic_web_input_event_builders.h"

namespace password_manager {
namespace {

class MockPasswordCrossDomainConfirmationPopupView
    : public PasswordCrossDomainConfirmationPopupView {};

class PasswordCrossDomainConfirmationPopupControllerImplTest
    : public ChromeRenderViewHostTestHarness {};

}  // namespace

TEST_F(PasswordCrossDomainConfirmationPopupControllerImplTest,
       ViewIsCreatedWithShowArguments) {}

TEST_F(PasswordCrossDomainConfirmationPopupControllerImplTest,
       PreviousViewIsHiddenOnShow) {}

TEST_F(PasswordCrossDomainConfirmationPopupControllerImplTest,
       PopupIsHiddenOnConfirmation) {}

TEST_F(PasswordCrossDomainConfirmationPopupControllerImplTest,
       PopupIsHiddenOnCancel) {}

TEST_F(PasswordCrossDomainConfirmationPopupControllerImplTest,
       PopupIsHiddenOnViewDestroy) {}

TEST_F(PasswordCrossDomainConfirmationPopupControllerImplTest,
       PopupIsHiddenOnNavigation) {}

TEST_F(PasswordCrossDomainConfirmationPopupControllerImplTest,
       PopupIsHiddenOnUserInteraction) {}

}  // namespace password_manager