#include "extensions/shell/browser/shell_extension_loader.h"
#include <memory>
#include <string>
#include "apps/app_lifetime_monitor_factory.h"
#include "base/memory/raw_ptr.h"
#include "base/path_service.h"
#include "components/crx_file/id_util.h"
#include "components/keep_alive_registry/keep_alive_registry.h"
#include "components/user_prefs/user_prefs.h"
#include "content/public/browser/browser_context.h"
#include "content/public/test/test_utils.h"
#include "extensions/browser/disable_reason.h"
#include "extensions/browser/extension_prefs.h"
#include "extensions/browser/extension_registry.h"
#include "extensions/browser/extensions_test.h"
#include "extensions/browser/mock_extension_system.h"
#include "extensions/browser/null_app_sorting.h"
#include "extensions/browser/test_event_router.h"
#include "extensions/browser/test_extensions_browser_client.h"
#include "extensions/common/api/app_runtime.h"
#include "extensions/common/extension.h"
#include "extensions/common/extension_id.h"
#include "extensions/common/extension_paths.h"
#include "extensions/test/test_extension_dir.h"
#if defined(USE_AURA)
#include "extensions/browser/app_window/app_window.h"
#include "extensions/shell/browser/shell_app_window_client.h"
#include "extensions/shell/browser/shell_native_app_window_aura.h"
#include "extensions/shell/test/shell_test_extensions_browser_client.h"
#include "extensions/shell/test/shell_test_helper_aura.h"
#endif
namespace extensions {
OnLaunched;
namespace {
class TestExtensionSystem : public MockExtensionSystem { … };
#if defined(USE_AURA)
class TestAppWindowClient : public ShellAppWindowClient { … };
#endif
}
class ShellExtensionLoaderTest : public ExtensionsTest { … };
TEST_F(ShellExtensionLoaderTest, NotFound) { … }
TEST_F(ShellExtensionLoaderTest, Extension) { … }
TEST_F(ShellExtensionLoaderTest, LoadAfterReloadFailure) { … }
TEST_F(ShellExtensionLoaderTest, LoadDisabledExtension) { … }
#if defined(USE_AURA)
class ShellExtensionLoaderTestAura : public ShellExtensionLoaderTest { … };
TEST_F(ShellExtensionLoaderTestAura, AppLaunch) { … }
TEST_F(ShellExtensionLoaderTestAura, AppLaunchAndReload) { … }
TEST_F(ShellExtensionLoaderTestAura, DISABLED_ReloadFailure) { … }
#endif
}