#include "chrome/browser/web_applications/web_app_origin_association_manager.h"
#include "base/containers/contains.h"
#include "base/run_loop.h"
#include "base/test/bind.h"
#include "base/test/test_future.h"
#include "chrome/browser/ui/web_applications/web_app_browsertest_base.h"
#include "chrome/test/base/in_process_browser_test.h"
#include "components/webapps/services/web_app_origin_association/test/test_web_app_origin_association_fetcher.h"
#include "content/public/test/browser_test.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"
namespace {
const std::string& kWebAppIdentity = …;
const std::string& kInvalidFileUrl = …;
const std::string& kValidAppUrl = …;
const std::string& kValidAndInvalidAppsUrl = …;
constexpr char kInvalidFileContent[] = …;
constexpr char kValidAppFileContent[] = …;
constexpr char kValidAndInvalidAppsFileContent[] = …;
}
namespace web_app {
class WebAppOriginAssociationManagerTest : public WebAppBrowserTestBase { … };
IN_PROC_BROWSER_TEST_F(WebAppOriginAssociationManagerTest, NoHandlers) { … }
IN_PROC_BROWSER_TEST_F(WebAppOriginAssociationManagerTest,
InvalidAssociationFile) { … }
IN_PROC_BROWSER_TEST_F(WebAppOriginAssociationManagerTest, OneValidApp) { … }
IN_PROC_BROWSER_TEST_F(WebAppOriginAssociationManagerTest,
ValidAndInvalidApps) { … }
IN_PROC_BROWSER_TEST_F(WebAppOriginAssociationManagerTest, RunTasks) { … }
}