#include "extensions/test/test_extensions_client.h"
#include <memory>
#include <set>
#include <string>
#include "base/command_line.h"
#include "base/files/file_path.h"
#include "extensions/common/core_extensions_api_provider.h"
#include "extensions/common/extension_urls.h"
#include "extensions/common/url_pattern_set.h"
#include "extensions/grit/extensions_resources.h"
#include "extensions/test/test_permission_message_provider.h"
namespace extensions {
TestExtensionsClient::TestExtensionsClient()
: … { … }
TestExtensionsClient::~TestExtensionsClient() { … }
void TestExtensionsClient::AddBrowserImagePathsFilter(
BrowserImagePathsFilter* filter) { … }
void TestExtensionsClient::RemoveBrowserImagePathsFilter(
BrowserImagePathsFilter* filter) { … }
void TestExtensionsClient::Initialize() { … }
void TestExtensionsClient::InitializeWebStoreUrls(
base::CommandLine* command_line) { … }
const PermissionMessageProvider&
TestExtensionsClient::GetPermissionMessageProvider() const { … }
const std::string TestExtensionsClient::GetProductName() { … }
void TestExtensionsClient::FilterHostPermissions(
const URLPatternSet& hosts,
URLPatternSet* new_hosts,
PermissionIDSet* permissions) const { … }
void TestExtensionsClient::SetScriptingAllowlist(
const ExtensionsClient::ScriptingAllowlist& allowlist) { … }
const ExtensionsClient::ScriptingAllowlist&
TestExtensionsClient::GetScriptingAllowlist() const { … }
URLPatternSet TestExtensionsClient::GetPermittedChromeSchemeHosts(
const Extension* extension,
const APIPermissionSet& api_permissions) const { … }
bool TestExtensionsClient::IsScriptableURL(const GURL& url,
std::string* error) const { … }
const GURL& TestExtensionsClient::GetWebstoreBaseURL() const { … }
const GURL& TestExtensionsClient::GetNewWebstoreBaseURL() const { … }
const GURL& TestExtensionsClient::GetWebstoreUpdateURL() const { … }
bool TestExtensionsClient::IsBlocklistUpdateURL(const GURL& url) const { … }
std::set<base::FilePath> TestExtensionsClient::GetBrowserImagePaths(
const Extension* extension) { … }
}