#include "extensions/browser/browsertest_util.h"
#include "base/values.h"
#include "content/public/browser/browser_context.h"
#include "content/public/browser/service_worker_context.h"
#include "content/public/browser/storage_partition.h"
#include "content/public/test/service_worker_test_helpers.h"
#include "extensions/browser/background_script_executor.h"
#include "extensions/browser/extension_host.h"
#include "extensions/browser/extension_registry.h"
#include "extensions/browser/process_manager.h"
#include "extensions/common/extension_id.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace extensions::browsertest_util {
namespace {
std::string GetScriptToLog(const std::string& script) { … }
}
base::Value ExecuteScriptInBackgroundPage(
content::BrowserContext* context,
const ExtensionId& extension_id,
const std::string& script,
ScriptUserActivation script_user_activation) { … }
bool ExecuteScriptInBackgroundPageNoWait(
content::BrowserContext* context,
const ExtensionId& extension_id,
const std::string& script,
ScriptUserActivation script_user_activation) { … }
std::string ExecuteScriptInBackgroundPageDeprecated(
content::BrowserContext* context,
const ExtensionId& extension_id,
const std::string& script,
ScriptUserActivation script_user_activation) { … }
void StopServiceWorkerForExtensionGlobalScope(content::BrowserContext* context,
const ExtensionId& extension_id) { … }
}