#include "chrome/browser/ui/webui/extensions/extensions_internals_source.h"
#include "base/functional/bind.h"
#include "base/json/json_reader.h"
#include "base/values.h"
#include "chrome/browser/extensions/extension_service.h"
#include "chrome/browser/extensions/extension_service_test_base.h"
#include "chrome/browser/extensions/permissions/permissions_updater.h"
#include "chrome/browser/extensions/permissions/scripting_permissions_modifier.h"
#include "chrome/test/base/testing_profile.h"
#include "extensions/browser/event_router.h"
#include "extensions/browser/event_router_factory.h"
#include "extensions/browser/extension_prefs.h"
#include "extensions/browser/extension_registry.h"
#include "extensions/common/extension_builder.h"
#include "extensions/common/features/simple_feature.h"
#include "extensions/common/permissions/api_permission.h"
#include "extensions/common/permissions/api_permission_set.h"
#include "extensions/common/permissions/manifest_permission_set.h"
#include "extensions/common/permissions/permission_set.h"
#include "extensions/common/permissions/permissions_data.h"
#include "extensions/common/switches.h"
#include "extensions/common/url_pattern_set.h"
#include "extensions/common/user_script.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/gurl.h"
namespace {
ExtensionsInternalsUnitTest;
std::unique_ptr<KeyedService> BuildEventRouter(
content::BrowserContext* profile) { … }
}
TEST_F(ExtensionsInternalsUnitTest, Basic) { … }
TEST_F(ExtensionsInternalsUnitTest, WriteToStringPermissions) { … }
TEST_F(ExtensionsInternalsUnitTest, WriteToStringTabSpecificPermissions) { … }
TEST_F(ExtensionsInternalsUnitTest, WriteToStringWithheldPermissions) { … }