#include "chrome/browser/storage_access_api/storage_access_api_service_impl.h"
#include "base/memory/raw_ptr.h"
#include "base/strings/strcat.h"
#include "base/test/simple_test_clock.h"
#include "chrome/browser/content_settings/host_content_settings_map_factory.h"
#include "chrome/browser/storage_access_api/storage_access_api_service_factory.h"
#include "chrome/test/base/testing_browser_process.h"
#include "chrome/test/base/testing_profile.h"
#include "chrome/test/base/testing_profile_manager.h"
#include "components/content_settings/core/browser/host_content_settings_map.h"
#include "components/content_settings/core/common/content_settings.h"
#include "components/content_settings/core/common/content_settings_constraints.h"
#include "content/public/test/browser_task_environment.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/common/features.h"
#include "third_party/blink/public/common/features_generated.h"
#include "url/gurl.h"
#include "url/origin.h"
#if BUILDFLAG(IS_ANDROID)
#include "base/android/build_info.h"
#endif
namespace {
constexpr char kHostA[] = …;
constexpr char kHostB[] = …;
}
class StorageAccessAPIServiceImplTest : public testing::Test { … };
TEST_F(StorageAccessAPIServiceImplTest, RenewPermissionGrant) { … }
TEST_F(StorageAccessAPIServiceImplTest, PermissionDenial_NotRenewed) { … }
TEST_F(StorageAccessAPIServiceImplTest, RenewPermissionGrant_DailyCache) { … }