#include "components/media_device_salt/media_device_salt_service.h"
#include "base/containers/contains.h"
#include "base/files/file_path.h"
#include "base/run_loop.h"
#include "base/system/system_monitor.h"
#include "base/test/bind.h"
#include "base/test/mock_devices_changed_observer.h"
#include "base/test/scoped_feature_list.h"
#include "base/test/test_future.h"
#include "base/time/time.h"
#include "components/keyed_service/content/browser_context_dependency_manager.h"
#include "components/media_device_salt/media_device_id_salt.h"
#include "components/sync_preferences/testing_pref_service_syncable.h"
#include "components/user_prefs/user_prefs.h"
#include "content/public/test/browser_task_environment.h"
#include "content/public/test/test_browser_context.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 {
namespace {
IsEmpty;
UnorderedElementsAre;
StorageKeyMatcher;
blink::StorageKey StorageKey1() { … }
blink::StorageKey StorageKey2() { … }
blink::StorageKey StorageKey3() { … }
}
class MediaDeviceSaltServiceTest : public testing::TestWithParam<bool> { … };
TEST_P(MediaDeviceSaltServiceTest, ResetGlobalSaltFiresDeviceChange) { … }
TEST_P(MediaDeviceSaltServiceTest, DeleteSingleSaltUsingMatcher) { … }
TEST_P(MediaDeviceSaltServiceTest, DeleteMultipleSaltsUsingMatcher) { … }
TEST_P(MediaDeviceSaltServiceTest, DeleteSingleSalt) { … }
TEST_P(MediaDeviceSaltServiceTest, DeleteSaltsInTimeRange) { … }
TEST_P(MediaDeviceSaltServiceTest, GetAllStorageKeys) { … }
TEST_P(MediaDeviceSaltServiceTest, OpaqueKey) { … }
TEST_P(MediaDeviceSaltServiceTest, ManyGetSalts) { … }
TEST_P(MediaDeviceSaltServiceTest, DeviceChangeEvent) { … }
INSTANTIATE_TEST_SUITE_P(…);
}