Commit 8106bcd1 authored by gab's avatar gab Committed by Commit bot

Make SQLitePersistentCookieStorePerfTest's SequencedWorkerPool multi-threaded.

BUG=646443

Review-Url: https://codereview.chromium.org/2344593003
Cr-Commit-Position: refs/heads/master@{#418854}
parent f9f6c1e9
...@@ -33,7 +33,7 @@ const base::FilePath::CharType cookie_filename[] = FILE_PATH_LITERAL("Cookies"); ...@@ -33,7 +33,7 @@ const base::FilePath::CharType cookie_filename[] = FILE_PATH_LITERAL("Cookies");
class SQLitePersistentCookieStorePerfTest : public testing::Test { class SQLitePersistentCookieStorePerfTest : public testing::Test {
public: public:
SQLitePersistentCookieStorePerfTest() SQLitePersistentCookieStorePerfTest()
: pool_owner_(new base::SequencedWorkerPoolOwner(1, "Background Pool")), : pool_owner_(new base::SequencedWorkerPoolOwner(2, "SetupPool")),
loaded_event_(base::WaitableEvent::ResetPolicy::AUTOMATIC, loaded_event_(base::WaitableEvent::ResetPolicy::AUTOMATIC,
base::WaitableEvent::InitialState::NOT_SIGNALED), base::WaitableEvent::InitialState::NOT_SIGNALED),
key_loaded_event_(base::WaitableEvent::ResetPolicy::AUTOMATIC, key_loaded_event_(base::WaitableEvent::ResetPolicy::AUTOMATIC,
...@@ -93,7 +93,7 @@ class SQLitePersistentCookieStorePerfTest : public testing::Test { ...@@ -93,7 +93,7 @@ class SQLitePersistentCookieStorePerfTest : public testing::Test {
// Shut down the pool, causing deferred (no-op) commits to be discarded. // Shut down the pool, causing deferred (no-op) commits to be discarded.
pool_owner_->pool()->Shutdown(); pool_owner_->pool()->Shutdown();
// ~SequencedWorkerPoolOwner blocks on pool shutdown. // ~SequencedWorkerPoolOwner blocks on pool shutdown.
pool_owner_.reset(new base::SequencedWorkerPoolOwner(1, "pool")); pool_owner_.reset(new base::SequencedWorkerPoolOwner(2, "TestPool"));
store_ = new SQLitePersistentCookieStore( store_ = new SQLitePersistentCookieStore(
temp_dir_.GetPath().Append(cookie_filename), client_task_runner(), temp_dir_.GetPath().Append(cookie_filename), client_task_runner(),
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment