blob: c813b4ac602eecb49a5efb69e91e4e356e20b304 [file] [log] [blame]
// Copyright 2021 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CONTENT_BROWSER_WEBID_TEST_MOCK_IDENTITY_REQUEST_DIALOG_CONTROLLER_H_
#define CONTENT_BROWSER_WEBID_TEST_MOCK_IDENTITY_REQUEST_DIALOG_CONTROLLER_H_
#include "content/public/browser/identity_request_dialog_controller.h"
#include "base/containers/span.h"
#include "testing/gmock/include/gmock/gmock.h"
namespace content {
class MockIdentityRequestDialogController
: public IdentityRequestDialogController {
public:
MockIdentityRequestDialogController();
~MockIdentityRequestDialogController() override;
MockIdentityRequestDialogController(
const MockIdentityRequestDialogController&) = delete;
MockIdentityRequestDialogController& operator=(
const MockIdentityRequestDialogController&) = delete;
MOCK_METHOD8(ShowAccountsDialog,
void(WebContents*,
const GURL&,
base::span<const content::IdentityRequestAccount> accounts,
const IdentityProviderMetadata&,
const ClientIdData&,
IdentityRequestAccount::SignInMode,
AccountSelectionCallback,
DismissCallback));
MOCK_METHOD0(DestructorCalled, void());
};
} // namespace content
#endif // CONTENT_BROWSER_WEBID_TEST_MOCK_IDENTITY_REQUEST_DIALOG_CONTROLLER_H_