#include "chrome/browser/ui/views/apps/app_info_dialog/app_info_permissions_panel.h"
#include <memory>
#include <utility>
#include "apps/saved_files_service.h"
#include "base/functional/callback.h"
#include "base/strings/utf_string_conversions.h"
#include "chrome/browser/extensions/extension_service.h"
#include "chrome/browser/extensions/test_extension_system.h"
#include "chrome/grit/generated_resources.h"
#include "chrome/test/base/testing_profile.h"
#include "chrome/test/views/chrome_test_views_delegate.h"
#include "content/public/test/browser_task_environment.h"
#include "extensions/common/extension_builder.h"
#include "extensions/common/manifest.h"
#include "extensions/common/permissions/permission_message_test_util.h"
#include "extensions/common/permissions/permission_set.h"
#include "extensions/common/permissions/permissions_data.h"
#include "testing/gmock/include/gmock/gmock-matchers.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "ui/base/l10n/l10n_util.h"
namespace {
const char kTestExtensionId[] = …;
}
FilePath;
Contains;
Eq;
class AppInfoPermissionsPanelTest : public testing::Test { … };
TEST_F(AppInfoPermissionsPanelTest, NoPermissionsObtainedCorrectly) { … }
TEST_F(AppInfoPermissionsPanelTest, RequiredPermissionsObtainedCorrectly) { … }
TEST_F(AppInfoPermissionsPanelTest, OptionalPermissionsObtainedCorrectly) { … }
TEST_F(AppInfoPermissionsPanelTest, RetainedFilePermissionsObtainedCorrectly) { … }