blob: d8a9a401e3e945786e0bf5e3642f8d15f4f314ea [file] [log] [blame]
// Copyright 2022 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_API_PERMISSION_DELEGATE_H_
#define CONTENT_BROWSER_WEBID_TEST_MOCK_API_PERMISSION_DELEGATE_H_
#include "content/public/browser/federated_identity_api_permission_context_delegate.h"
#include "testing/gmock/include/gmock/gmock.h"
namespace url {
class Origin;
}
namespace content {
class MockApiPermissionDelegate
: public FederatedIdentityApiPermissionContextDelegate {
public:
MockApiPermissionDelegate();
~MockApiPermissionDelegate() override;
MockApiPermissionDelegate(const MockApiPermissionDelegate&) = delete;
MockApiPermissionDelegate& operator=(const MockApiPermissionDelegate&) =
delete;
MOCK_METHOD1(GetApiPermissionStatus,
FederatedIdentityApiPermissionContextDelegate::PermissionStatus(
const url::Origin&));
MOCK_METHOD1(RecordDismissAndEmbargo, void(const url::Origin&));
MOCK_METHOD1(RemoveEmbargoAndResetCounts, void(const url::Origin&));
};
} // namespace content
#endif // CONTENT_BROWSER_WEBID_TEST_MOCK_API_PERMISSION_DELEGATE_H_