#include "chrome/browser/extensions/convert_user_script.h"
#include <memory>
#include <string>
#include <vector>
#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/files/scoped_temp_dir.h"
#include "base/path_service.h"
#include "base/strings/utf_string_conversions.h"
#include "chrome/common/chrome_paths.h"
#include "extensions/common/constants.h"
#include "extensions/common/extension.h"
#include "extensions/common/manifest_handlers/content_scripts_handler.h"
#include "extensions/common/mojom/run_location.mojom-shared.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace extensions {
namespace {
static void AddPattern(URLPatternSet* extent, const std::string& pattern) { … }
}
class ExtensionFromUserScript : public testing::Test { … };
TEST_F(ExtensionFromUserScript, Basic) { … }
TEST_F(ExtensionFromUserScript, NoMetadata) { … }
TEST_F(ExtensionFromUserScript, NotUTF8) { … }
TEST_F(ExtensionFromUserScript, RunAtDocumentStart) { … }
TEST_F(ExtensionFromUserScript, RunAtDocumentEnd) { … }
TEST_F(ExtensionFromUserScript, RunAtDocumentIdle) { … }
}