chromium/chrome/renderer/chrome_content_settings_agent_delegate_browsertest.cc

// Copyright 2020 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "chrome/renderer/chrome_content_settings_agent_delegate.h"

#include "chrome/test/base/chrome_render_view_test.h"
#include "content/public/renderer/render_frame.h"
#include "pdf/buildflags.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/common/associated_interfaces/associated_interface_registry.h"

#if BUILDFLAG(ENABLE_PDF)
#include "third_party/blink/public/web/web_local_frame.h"
#endif  // BUILDFLAG(ENABLE_PDF)

class ChromeContentSettingsAgentDelegateBrowserTest
    : public ChromeRenderViewTest {};

TEST_F(ChromeContentSettingsAgentDelegateBrowserTest,
       PluginsTemporarilyAllowed) {}

#if BUILDFLAG(ENABLE_PDF)
// Test that the PDF extension frame is allowlisted for storage access.
TEST_F(ChromeContentSettingsAgentDelegateBrowserTest,
       FrameAllowlistedForStorageAccessPdfExtensionOrigin) {}
#endif  // BUILDFLAG(ENABLE_PDF)

// Test that a child frame with an origin not allowlisted for storage access
// cannot access it.
TEST_F(ChromeContentSettingsAgentDelegateBrowserTest,
       FrameAllowlistedForStorageAccessFail) {}