#ifndef COMPONENTS_PLUS_ADDRESSES_PLUS_ADDRESS_TEST_UTILS_H_
#define COMPONENTS_PLUS_ADDRESSES_PLUS_ADDRESS_TEST_UTILS_H_
#include <string>
#include "base/time/time.h"
#include "base/values.h"
#include "components/plus_addresses/plus_address_types.h"
#include "net/test/embedded_test_server/http_request.h"
#include "net/test/embedded_test_server/http_response.h"
namespace plus_addresses::test {
inline constexpr char kFakeManagementUrl[] = …;
inline constexpr char kFakeOauthScope[] = …;
inline constexpr char kReservePath[] = …;
inline constexpr char kConfirmPath[] = …;
inline constexpr char kFakeErrorReportUrl[] = …;
inline constexpr char kFakePlusAddress[] = …;
inline constexpr char kFakePlusAddressRefresh[] = …;
inline constexpr char16_t kFakePlusAddressU16[] = …;
inline constexpr char16_t kFakePlusAddressRefreshU16[] = …;
PlusProfile CreatePlusProfile(std::string plus_address, bool is_confirmed);
PlusProfile CreatePlusProfile();
PlusProfile CreatePlusProfile2();
PlusProfile CreatePlusProfileWithFacet(const affiliations::FacetURI& facet);
std::string MakeCreationResponse(const PlusProfile& profile);
std::string MakeListResponse(const std::vector<PlusProfile>& profiles);
std::string MakePreallocateResponse(
const std::vector<PreallocatedPlusAddress>& addresses);
std::string MakePlusProfile(const PlusProfile& profile);
std::unique_ptr<net::test_server::HttpResponse>
HandleRequestToPlusAddressWithSuccess(
const net::test_server::HttpRequest& request);
base::Value CreatePreallocatedPlusAddress(
base::Time end_of_life,
std::string address = "[email protected]");
}
#endif