#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 { … };
}
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) { … }
}