chromium/chrome/browser/ui/passwords/account_storage_auth_helper_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/passwords/account_storage_auth_helper.h"

#include <string>

#include "base/functional/callback.h"
#include "base/functional/callback_helpers.h"
#include "base/test/bind.h"
#include "base/test/task_environment.h"
#include "build/build_config.h"
#include "chrome/browser/signin/identity_test_environment_profile_adaptor.h"
#include "chrome/browser/signin/reauth_result.h"
#include "chrome/browser/signin/signin_ui_delegate.h"
#include "chrome/browser/signin/signin_ui_util.h"
#include "chrome/browser/ui/signin/signin_view_controller.h"
#include "chrome/test/base/testing_profile.h"
#include "components/password_manager/core/browser/mock_password_feature_manager.h"
#include "components/signin/public/base/signin_buildflags.h"
#include "components/signin/public/base/signin_metrics.h"
#include "components/signin/public/identity_manager/identity_test_environment.h"
#include "content/public/test/browser_task_environment.h"
#include "google_apis/gaia/core_account_id.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"

namespace {

_;

const signin_metrics::ReauthAccessPoint kReauthAccessPoint =;

class MockSigninViewController : public SigninViewController {};

class MockSigninUiDelegate : public signin_ui_util::SigninUiDelegate {};

}  // namespace

class AccountStorageAuthHelperTest : public ::testing::Test {};

TEST_F(AccountStorageAuthHelperTest, ShouldTriggerReauthForPrimaryAccount) {}

TEST_F(AccountStorageAuthHelperTest, ShouldSetOptInOnSucessfulReauth) {}

TEST_F(AccountStorageAuthHelperTest, ShouldNotSetOptInOnFailedReauth) {}

TEST_F(AccountStorageAuthHelperTest, ShouldTriggerSignin) {}