#include "components/webapps/services/web_app_origin_association/web_app_origin_association_parser.h"
#include "base/json/json_reader.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"
namespace webapps {
bool IsAssociationNull(const mojom::WebAppOriginAssociationPtr& association) { … }
bool IsAssociationEmpty(const mojom::WebAppOriginAssociationPtr& association) { … }
class WebAppOriginAssociationParserTest : public testing::Test { … };
TEST_F(WebAppOriginAssociationParserTest, CrashTest) { … }
TEST_F(WebAppOriginAssociationParserTest, EmptyStringNull) { … }
TEST_F(WebAppOriginAssociationParserTest, NoContentParses) { … }
TEST_F(WebAppOriginAssociationParserTest, InvalidWebApps) { … }
TEST_F(WebAppOriginAssociationParserTest, NoWebApps) { … }
TEST_F(WebAppOriginAssociationParserTest, ValidEmptyDetails) { … }
TEST_F(WebAppOriginAssociationParserTest, MultipleErrorsReporting) { … }
TEST_F(WebAppOriginAssociationParserTest, MoreThanOneValidApp) { … }
TEST_F(WebAppOriginAssociationParserTest, IgnoreInvalidAndValidateTwosApps) { … }
}