#include "components/plus_addresses/plus_address_parsing_utils.h"
#include <optional>
#include "base/json/json_reader.h"
#include "base/types/expected.h"
#include "components/plus_addresses/plus_address_test_utils.h"
#include "components/plus_addresses/plus_address_types.h"
#include "services/data_decoder/public/cpp/data_decoder.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace plus_addresses {
ElementsAre;
Optional;
TEST(PlusAddressParsing, NotValidJson) { … }
TEST(PlusAddressParsing, FromV1Create_ParsesSuccessfully) { … }
TEST(PlusAddressParsing, FromV1Create_FailsWithoutPlusAddress) { … }
TEST(PlusAddressParsing, FromV1Create_FailsWithoutPlusMode) { … }
TEST(PlusAddressParsing, FromV1Create_FailsWithoutEmailObject) { … }
TEST(PlusAddressParsing, FromV1Create_FailsForEmptyDict) { … }
TEST(PlusAddressParsing, FromV1Create_FailsWithoutPlusProfileKey) { … }
TEST(PlusAddressParsing, FromV1Create_FailsIfPlusProfileIsNotDict) { … }
TEST(PlusAddressParsing, ParsePreallocatedPlusAddresses) { … }
TEST(PlusAddressParsing, ParsePreallocatedPlusAddressesWithInvalidJSON) { … }
TEST(PlusAddressParsing, ParsePreallocatedPlusAddressesWithMalformedEntries) { … }
TEST(PlusAddressParsing,
ParsePreallocatedPlusAddressesWithMalformedTopLevelEntry) { … }
}