#include "chrome/browser/storage/durable_storage_permission_context.h"
#include <string>
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/strings/utf_string_conversions.h"
#include "chrome/browser/bookmarks/bookmark_model_factory.h"
#include "chrome/browser/content_settings/cookie_settings_factory.h"
#include "chrome/browser/content_settings/host_content_settings_map_factory.h"
#include "chrome/browser/engagement/important_sites_util.h"
#include "chrome/test/base/chrome_render_view_host_test_harness.h"
#include "chrome/test/base/testing_profile.h"
#include "components/bookmarks/test/bookmark_test_helpers.h"
#include "components/content_settings/core/browser/cookie_settings.h"
#include "components/content_settings/core/browser/host_content_settings_map.h"
#include "components/permissions/permission_request_id.h"
#include "content/public/browser/permission_controller_delegate.h"
#include "content/public/browser/render_frame_host.h"
#include "content/public/browser/render_process_host.h"
#include "content/public/browser/web_contents.h"
#include "testing/gtest/include/gtest/gtest.h"
BookmarkModel;
PermissionStatus;
namespace {
class TestDurablePermissionContext : public DurableStoragePermissionContext { … };
}
class DurableStoragePermissionContextTest
: public ChromeRenderViewHostTestHarness { … };
TEST_F(DurableStoragePermissionContextTest, Bookmarked) { … }
TEST_F(DurableStoragePermissionContextTest, BookmarkAndIncognitoMode) { … }
TEST_F(DurableStoragePermissionContextTest, BookmarkAndNonPrimaryOTRProfile) { … }
TEST_F(DurableStoragePermissionContextTest, NoBookmark) { … }
TEST_F(DurableStoragePermissionContextTest, CookiesNotAllowed) { … }
TEST_F(DurableStoragePermissionContextTest, EmbeddedFrame) { … }
TEST_F(DurableStoragePermissionContextTest, NonsecureOrigin) { … }