#include "components/plus_addresses/fake_plus_address_service.h"
#include <optional>
#include <string>
#include <utility>
#include "base/feature_list.h"
#include "base/functional/callback.h"
#include "components/plus_addresses/mock_plus_address_http_client.h"
#include "components/plus_addresses/plus_address_types.h"
#include "testing/gmock/include/gmock/gmock.h"
namespace plus_addresses {
namespace {
FacetURI;
}
FakePlusAddressService::FakePlusAddressService(
PrefService* pref_service,
signin::IdentityManager* identity_manager,
PlusAddressSettingService* setting_service)
: … { … }
FakePlusAddressService::~FakePlusAddressService() = default;
bool FakePlusAddressService::IsPlusAddressFillingEnabled(
const url::Origin& origin) const { … }
bool FakePlusAddressService::IsPlusAddressCreationEnabled(
const url::Origin& origin,
bool is_off_the_record) const { … }
bool FakePlusAddressService::IsPlusAddress(
const std::string& potential_plus_address) const { … }
void FakePlusAddressService::GetAffiliatedPlusProfiles(
const url::Origin& origin,
GetPlusProfilesCallback callback) { … }
void FakePlusAddressService::ReservePlusAddress(
const url::Origin& origin,
PlusAddressRequestCallback on_completed) { … }
void FakePlusAddressService::ConfirmPlusAddress(
const url::Origin& origin,
const PlusAddress& plus_address,
PlusAddressRequestCallback on_completed) { … }
void FakePlusAddressService::RefreshPlusAddress(
const url::Origin& origin,
PlusAddressRequestCallback on_completed) { … }
std::optional<std::string> FakePlusAddressService::GetPrimaryEmail() { … }
base::span<const PlusProfile> FakePlusAddressService::GetPlusProfiles() const { … }
}