#include "components/webapps/services/web_app_origin_association/web_app_origin_association_parser_impl.h"
#include <memory>
#include <string>
#include <utility>
#include "base/json/json_reader.h"
#include "base/run_loop.h"
#include "base/test/bind.h"
#include "base/test/metrics/histogram_tester.h"
#include "base/test/task_environment.h"
#include "base/test/test_future.h"
#include "components/webapps/services/web_app_origin_association/web_app_origin_association_uma_util.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace {
constexpr char kParseResultHistogram[] = …;
}
namespace webapps {
class WebAppOriginAssociationParserImplTest : public testing::Test { … };
TEST_F(WebAppOriginAssociationParserImplTest, ParseGoodAssociationFile) { … }
TEST_F(WebAppOriginAssociationParserImplTest,
ParseBadAssociationFileNotADictionary) { … }
TEST_F(WebAppOriginAssociationParserImplTest,
ParseBadAssociationFileInvalidJson) { … }
}