#include <unordered_map>
#include <utility>
#include "base/debug/leak_annotations.h"
#include "base/files/scoped_temp_dir.h"
#include "base/functional/bind.h"
#include "base/functional/callback_helpers.h"
#include "base/run_loop.h"
#include "base/task/sequenced_task_runner.h"
#include "base/test/task_environment.h"
#include "base/test/test_future.h"
#include "base/test/test_simple_task_runner.h"
#include "components/safe_browsing/core/browser/db/v4_database.h"
#include "components/safe_browsing/core/browser/db/v4_store.h"
#include "testing/platform_test.h"
namespace safe_browsing {
class FakeV4Store : public V4Store { … };
class FakeV4StoreFactory : public V4StoreFactory { … };
class V4DatabaseTest : public PlatformTest { … };
TEST_F(V4DatabaseTest, TestSetupDatabaseWithFakeStores) { … }
TEST_F(V4DatabaseTest, TestApplyUpdateWithNewStates) { … }
TEST_F(V4DatabaseTest, TestApplyUpdateWithNoNewState) { … }
TEST_F(V4DatabaseTest, TestApplyUpdateWithEmptyUpdate) { … }
TEST_F(V4DatabaseTest, TestApplyUpdateWithInvalidUpdate) { … }
TEST_F(V4DatabaseTest, TestAllStoresMatchFullHash) { … }
TEST_F(V4DatabaseTest, TestNoStoreMatchesFullHash) { … }
TEST_F(V4DatabaseTest, TestSomeStoresMatchFullHash) { … }
TEST_F(V4DatabaseTest, TestSomeStoresMatchFullHashBecauseOfStoresToMatch) { … }
TEST_F(V4DatabaseTest, VerifyChecksumCalledAsync) { … }
TEST_F(V4DatabaseTest, VerifyChecksumCancelled) { … }
TEST_F(V4DatabaseTest, TestStoresAvailable) { … }
TEST_F(V4DatabaseTest, UsingWeakPtrDropsCallback) { … }
}