1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
content / browser / webid / test / mock_modal_dialog_view_delegate.h [blame]
// Copyright 2023 The Chromium Authors
// 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_MODAL_DIALOG_VIEW_DELEGATE_H_
#define CONTENT_BROWSER_WEBID_TEST_MOCK_MODAL_DIALOG_VIEW_DELEGATE_H_
#include "content/common/content_export.h"
#include "content/public/browser/federated_identity_modal_dialog_view_delegate.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "url/gurl.h"
namespace content {
class MockModalDialogViewDelegate
: public FederatedIdentityModalDialogViewDelegate {
public:
MockModalDialogViewDelegate();
~MockModalDialogViewDelegate() override;
MockModalDialogViewDelegate(const MockModalDialogViewDelegate&) = delete;
MockModalDialogViewDelegate& operator=(const MockModalDialogViewDelegate&) =
delete;
MOCK_METHOD(void, OnClose, (), (override));
MOCK_METHOD(bool,
OnResolve,
(GURL, const std::optional<std::string>&, const std::string&),
(override));
};
} // namespace content
#endif // CONTENT_BROWSER_WEBID_TEST_MOCK_MODAL_DIALOG_VIEW_DELEGATE_H_