| // 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_BOOKMARK_APPS_SYSTEM_WEB_APP_MANAGER_BROWSERTEST_H_ |
| #define CHROME_BROWSER_WEB_APPLICATIONS_BOOKMARK_APPS_SYSTEM_WEB_APP_MANAGER_BROWSERTEST_H_ |
| |
| #include <memory> |
| |
| #include "base/macros.h" |
| #include "base/test/scoped_feature_list.h" |
| #include "chrome/browser/web_applications/bookmark_apps/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; |
| |
| class SystemWebAppManagerBrowserTest : public InProcessBrowserTest { |
| public: |
| SystemWebAppManagerBrowserTest(); |
| ~SystemWebAppManagerBrowserTest() override; |
| |
| protected: |
| Browser* WaitForSystemAppInstallAndLaunch(); |
| |
| 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_BOOKMARK_APPS_SYSTEM_WEB_APP_MANAGER_BROWSERTEST_H_ |