#include "components/media_device_salt/media_device_salt_database.h"
#include <optional>
#include <tuple>
#include <vector>
#include "base/containers/contains.h"
#include "base/files/file_path.h"
#include "base/files/file_util.h"
#include "base/files/scoped_temp_dir.h"
#include "base/functional/bind.h"
#include "base/test/bind.h"
#include "base/test/task_environment.h"
#include "base/time/clock.h"
#include "base/time/time.h"
#include "content/public/browser/storage_partition.h"
#include "sql/statement.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "third_party/blink/public/common/storage_key/storage_key.h"
namespace media_device_salt {
Time;
StorageKeyMatcher;
ElementsAre;
IsEmpty;
Optional;
UnorderedElementsAre;
namespace {
blink::StorageKey StorageKey1() { … }
blink::StorageKey StorageKey2() { … }
blink::StorageKey StorageKey3() { … }
}
class MediaDeviceSaltDatabaseTest : public testing::TestWithParam<bool> { … };
TEST_P(MediaDeviceSaltDatabaseTest, DatabasePathExists) { … }
TEST_P(MediaDeviceSaltDatabaseTest, NoStorageForOpaqueStorageKey) { … }
TEST_P(MediaDeviceSaltDatabaseTest, InsertExplicitSalt) { … }
TEST_P(MediaDeviceSaltDatabaseTest, InsertRandomSalts) { … }
TEST_P(MediaDeviceSaltDatabaseTest, ReplaceSalt) { … }
TEST_P(MediaDeviceSaltDatabaseTest, DeleteEntriesByTime) { … }
TEST_P(MediaDeviceSaltDatabaseTest, DeleteAllEntries) { … }
TEST_P(MediaDeviceSaltDatabaseTest, DeleteSingleStorageKeyUsingMatcher) { … }
TEST_P(MediaDeviceSaltDatabaseTest, DeleteSomeStorageKeysUsingMatcher) { … }
TEST_P(MediaDeviceSaltDatabaseTest, DeleteSingleStorageKey) { … }
TEST_P(MediaDeviceSaltDatabaseTest, DatabaseErrors) { … }
TEST_P(MediaDeviceSaltDatabaseTest, GetAllStorageKeys) { … }
INSTANTIATE_TEST_SUITE_P(…);
}