#include "content/browser/browsing_data/shared_storage_clear_site_data_tester.h"
#include <string>
#include <vector>
#include "base/strings/strcat.h"
#include "base/strings/string_number_conversions.h"
#include "base/test/test_future.h"
#include "components/services/storage/public/mojom/storage_usage_info.mojom.h"
#include "components/services/storage/shared_storage/shared_storage_database.h"
#include "components/services/storage/shared_storage/shared_storage_manager.h"
#include "content/browser/storage_partition_impl.h"
#include "content/public/browser/storage_partition.h"
#include "testing/gtest/include/gtest/gtest.h"
namespace content {
SharedStorageClearSiteDataTester::SharedStorageClearSiteDataTester(
StoragePartition* storage_partition)
: … { … }
void SharedStorageClearSiteDataTester::AddSharedStorageEntry(
url::Origin origin,
std::u16string key,
std::u16string value) { … }
void SharedStorageClearSiteDataTester::AddConsecutiveSharedStorageEntries(
url::Origin origin,
std::u16string key,
std::u16string value,
size_t total_to_add) { … }
std::vector<url::Origin>
SharedStorageClearSiteDataTester::GetSharedStorageOrigins() { … }
int SharedStorageClearSiteDataTester::GetSharedStorageNumBytesForOrigin(
url::Origin origin) { … }
int SharedStorageClearSiteDataTester::GetSharedStorageTotalBytes() { … }
}