#include "extensions/browser/lazy_background_task_queue.h"
#include <memory>
#include "base/functional/bind.h"
#include "base/memory/raw_ptr.h"
#include "components/keyed_service/content/browser_context_dependency_manager.h"
#include "components/prefs/testing_pref_service.h"
#include "components/sync_preferences/testing_pref_service_syncable.h"
#include "components/user_prefs/user_prefs.h"
#include "content/public/test/test_browser_context.h"
#include "extensions/browser/extension_registry.h"
#include "extensions/browser/extension_registry_factory.h"
#include "extensions/browser/extensions_test.h"
#include "extensions/browser/lazy_context_id.h"
#include "extensions/browser/process_manager.h"
#include "extensions/browser/process_manager_factory.h"
#include "extensions/browser/test_extensions_browser_client.h"
#include "extensions/common/extension.h"
#include "extensions/common/extension_builder.h"
#include "testing/gtest/include/gtest/gtest.h"
BrowserContext;
namespace extensions {
namespace {
class TestProcessManager : public ProcessManager { … };
std::unique_ptr<KeyedService> CreateTestProcessManager(
BrowserContext* context) { … }
}
class LazyBackgroundTaskQueueTest : public ExtensionsTest { … };
TEST_F(LazyBackgroundTaskQueueTest, ShouldEnqueueTask) { … }
TEST_F(LazyBackgroundTaskQueueTest, AddPendingTask) { … }
TEST_F(LazyBackgroundTaskQueueTest, ProcessPendingTasks) { … }
TEST_F(LazyBackgroundTaskQueueTest, CreateLazyBackgroundPageOnExtensionLoaded) { … }
}