#include "chrome/browser/ui/passwords/bubble_controllers/manage_passwords_bubble_controller.h"
#include <memory>
#include "base/functional/callback_helpers.h"
#include "base/memory/raw_ptr.h"
#include "base/strings/utf_string_conversions.h"
#include "base/test/metrics/histogram_tester.h"
#include "base/test/mock_callback.h"
#include "chrome/browser/password_manager/profile_password_store_factory.h"
#include "chrome/browser/signin/identity_manager_factory.h"
#include "chrome/browser/signin/identity_test_environment_profile_adaptor.h"
#include "chrome/browser/sync/sync_service_factory.h"
#include "chrome/browser/ui/passwords/passwords_model_delegate_mock.h"
#include "chrome/test/base/testing_profile.h"
#include "components/password_manager/core/browser/password_form.h"
#include "components/password_manager/core/browser/password_manager_client.h"
#include "components/password_manager/core/browser/password_manager_test_utils.h"
#include "components/password_manager/core/browser/password_store/mock_password_store_interface.h"
#include "components/signin/public/identity_manager/identity_manager.h"
#include "components/signin/public/identity_manager/identity_test_utils.h"
#include "components/sync/test/test_sync_service.h"
#include "content/public/browser/browser_context.h"
#include "content/public/test/browser_task_environment.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"
_;
Return;
ReturnRef;
namespace {
constexpr char kUIDismissalReasonGeneralMetric[] = …;
constexpr char kSiteOrigin[] = …;
password_manager::PasswordForm CreateTestForm(int index = 1) { … }
}
class ManagePasswordsBubbleControllerTest : public ::testing::Test { … };
void ManagePasswordsBubbleControllerTest::Init() { … }
const std::vector<std::unique_ptr<password_manager::PasswordForm>>&
ManagePasswordsBubbleControllerTest::GetCurrentForms() const { … }
void ManagePasswordsBubbleControllerTest::DestroyController() { … }
TEST_F(ManagePasswordsBubbleControllerTest, OnManageClicked) { … }
TEST_F(ManagePasswordsBubbleControllerTest, ShouldReturnLocalCredentials) { … }
TEST_F(ManagePasswordsBubbleControllerTest, ShouldReturnPasswordSyncState) { … }
TEST_F(ManagePasswordsBubbleControllerTest, ShouldGetPrimaryAccountEmail) { … }
TEST_F(ManagePasswordsBubbleControllerTest, OnUpdatePasswordNote) { … }
TEST_F(ManagePasswordsBubbleControllerTest, OnUpdateUsername) { … }
TEST_F(ManagePasswordsBubbleControllerTest, OnUpdateUsernameAndPasswordNote) { … }
TEST_F(ManagePasswordsBubbleControllerTest,
ShouldChangeDetailsBubbleCredentialOnSuccessfulOsAuth) { … }
TEST_F(ManagePasswordsBubbleControllerTest,
ShouldNotChangeDetailsBubbleCredentialOnFailedOsAuth) { … }
TEST_F(ManagePasswordsBubbleControllerTest, ShouldReturnWhetherUsernameExists) { … }
TEST_F(ManagePasswordsBubbleControllerTest, OpenMoveBubble) { … }