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

// Copyright 2020 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_save_update_view.h"

#include <memory>
#include <utility>
#include <vector>

#include "base/memory/ptr_util.h"
#include "base/memory/raw_ptr.h"
#include "chrome/browser/password_manager/profile_password_store_factory.h"
#include "chrome/browser/signin/identity_manager_factory.h"
#include "chrome/browser/sync/sync_service_factory.h"
#include "chrome/browser/ui/views/passwords/password_bubble_view_test_base.h"
#include "chrome/grit/generated_resources.h"
#include "components/password_manager/core/browser/mock_password_feature_manager.h"
#include "components/password_manager/core/browser/password_form.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/sync/test/test_sync_service.h"
#include "content/public/test/navigation_simulator.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/mojom/dialog_button.mojom.h"
#include "ui/views/controls/combobox/combobox.h"
#include "ui/views/controls/editable_combobox/editable_password_combobox.h"

Return;
ReturnRef;

namespace {

std::unique_ptr<KeyedService> BuildTestSyncService(
    content::BrowserContext* context) {}

}  // namespace

class PasswordSaveUpdateViewTest : public PasswordBubbleViewTestBase {};

PasswordSaveUpdateViewTest::PasswordSaveUpdateViewTest() {}

void PasswordSaveUpdateViewTest::CreateViewAndShow() {}

void PasswordSaveUpdateViewTest::SimulateSignIn() {}

TEST_F(PasswordSaveUpdateViewTest, HasTitleAndTwoButtons) {}

TEST_F(PasswordSaveUpdateViewTest, ShouldSelectAccountStoreByDefault) {}

TEST_F(PasswordSaveUpdateViewTest, ShouldSelectProfileStoreByDefault) {}

// This is a regression test for crbug.com/1093290
TEST_F(PasswordSaveUpdateViewTest,
       OnThemesChangedShouldNotCrashForFederatedCredentials) {}

// This is a regression test for crbug.com/1475021
TEST_F(PasswordSaveUpdateViewTest, SaveButtonIsDisabledWhenPasswordIsEmpty) {}