| // 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/browser/webid/identity_registry_delegate.h" |
| #include "content/common/content_export.h" |
| #include "testing/gmock/include/gmock/gmock.h" |
| #include "url/gurl.h" |
| |
| namespace content { |
| |
| class MockModalDialogViewDelegate : public IdentityRegistryDelegate { |
| 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 base::Value&), |
| (override)); |
| }; |
| |
| } // namespace content |
| |
| #endif // CONTENT_BROWSER_WEBID_TEST_MOCK_MODAL_DIALOG_VIEW_DELEGATE_H_ |