#include "chrome/browser/storage_access_api/storage_access_api_tab_helper.h"
#include "base/test/metrics/histogram_tester.h"
#include "chrome/browser/storage_access_api/storage_access_api_service.h"
#include "chrome/test/base/chrome_render_view_host_test_harness.h"
#include "content/public/browser/navigation_throttle.h"
#include "content/public/test/navigation_simulator.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "url/origin.h"
class MockStorageAccessAPIService : public StorageAccessAPIService { … };
class StorageAccessAPITabHelperTest : public ChromeRenderViewHostTestHarness { … };
TEST_F(StorageAccessAPITabHelperTest, OnFrameReceivedUserActivation_MainFrame) { … }
TEST_F(StorageAccessAPITabHelperTest, OnFrameReceivedUserActivation_Subframe) { … }
TEST_F(StorageAccessAPITabHelperTest,
OnFrameReceivedUserActivation_SubframeOpaque) { … }