#include "net/extras/sqlite/sqlite_persistent_cookie_store.h"
#include <vector>
#include "base/compiler_specific.h"
#include "base/files/scoped_temp_dir.h"
#include "base/functional/bind.h"
#include "base/rand_util.h"
#include "base/strings/stringprintf.h"
#include "base/synchronization/waitable_event.h"
#include "base/task/sequenced_task_runner.h"
#include "base/task/thread_pool.h"
#include "base/test/task_environment.h"
#include "base/time/time.h"
#include "base/timer/elapsed_timer.h"
#include "net/base/test_completion_callback.h"
#include "net/cookies/canonical_cookie.h"
#include "net/cookies/cookie_constants.h"
#include "net/extras/sqlite/cookie_crypto_delegate.h"
#include "net/log/net_log_with_source.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "testing/perf/perf_result_reporter.h"
#include "url/gurl.h"
namespace net {
namespace {
const base::FilePath::CharType cookie_filename[] = …);
static const int kNumDomains = …;
static const int kCookiesPerDomain = …;
static const int kRandomSeed = …;
static_assert …;
static_assert …;
static constexpr char kMetricPrefixSQLPCS[] = …;
static constexpr char kMetricOperationDurationMs[] = …;
perf_test::PerfResultReporter SetUpSQLPCSReporter(const std::string& story) { … }
}
class SQLitePersistentCookieStorePerfTest : public testing::Test { … };
TEST_F(SQLitePersistentCookieStorePerfTest, TestLoadForKeyPerformance) { … }
TEST_F(SQLitePersistentCookieStorePerfTest, TestLoadPerformance) { … }
TEST_F(SQLitePersistentCookieStorePerfTest, TestDeletePerformance) { … }
TEST_F(SQLitePersistentCookieStorePerfTest, TestUpdatePerformance) { … }
}