#include "components/plus_addresses/plus_address_test_utils.h"
#include <string>
#include "base/json/json_reader.h"
#include "base/json/json_writer.h"
#include "base/json/values_util.h"
#include "base/strings/string_util.h"
#include "components/affiliations/core/browser/affiliation_utils.h"
#include "components/plus_addresses/plus_address_preallocator.h"
#include "components/plus_addresses/plus_address_types.h"
#include "testing/gmock/include/gmock/gmock.h"
namespace plus_addresses::test {
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) { … }
}