blob: 1d88faa4f95299d83b0a476fa6d6343a04474dc6 [file] [log] [blame]
// Copyright 2018 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#ifndef CHROME_BROWSER_WEB_APPLICATIONS_EXTENSIONS_SYSTEM_WEB_APP_MANAGER_BROWSERTEST_H_
#define CHROME_BROWSER_WEB_APPLICATIONS_EXTENSIONS_SYSTEM_WEB_APP_MANAGER_BROWSERTEST_H_
#include <memory>
#include "base/macros.h"
#include "base/test/scoped_feature_list.h"
#include "chrome/browser/web_applications/test/test_web_app_provider.h"
#include "chrome/test/base/in_process_browser_test.h"
class Browser;
class KeyedService;
namespace web_app {
class TestSystemWebAppManager;
class TestWebUIControllerFactory;
enum class SystemAppType;
class SystemWebAppManagerBrowserTest : public InProcessBrowserTest {
public:
SystemWebAppManagerBrowserTest();
~SystemWebAppManagerBrowserTest() override;
protected:
Browser* WaitForSystemAppInstallAndLaunch(SystemAppType system_app_type);
private:
std::unique_ptr<KeyedService> CreateWebAppProvider(Profile* profile);
base::test::ScopedFeatureList scoped_feature_list_;
std::unique_ptr<TestWebUIControllerFactory> factory_;
TestWebAppProviderCreator test_web_app_provider_creator_;
TestSystemWebAppManager* test_system_web_app_manager_ = nullptr;
DISALLOW_COPY_AND_ASSIGN(SystemWebAppManagerBrowserTest);
};
} // namespace web_app
#endif // CHROME_BROWSER_WEB_APPLICATIONS_EXTENSIONS_SYSTEM_WEB_APP_MANAGER_BROWSERTEST_H_