Index: net/extras/sqlite/sqlite_persistent_cookie_store_perftest.cc |
diff --git a/content/browser/net/sqlite_persistent_cookie_store_perftest.cc b/net/extras/sqlite/sqlite_persistent_cookie_store_perftest.cc |
similarity index 95% |
rename from content/browser/net/sqlite_persistent_cookie_store_perftest.cc |
rename to net/extras/sqlite/sqlite_persistent_cookie_store_perftest.cc |
index 7421bf15a96dbee1ababe2b892e0871c1c588137..f2a733b5e6c91bbdd01d03cdbec2ca13b37b801a 100644 |
--- a/content/browser/net/sqlite_persistent_cookie_store_perftest.cc |
+++ b/net/extras/sqlite/sqlite_persistent_cookie_store_perftest.cc |
@@ -2,11 +2,12 @@ |
// Use of this source code is governed by a BSD-style license that can be |
// found in the LICENSE file. |
-#include "content/browser/net/sqlite_persistent_cookie_store.h" |
+#include "net/extras/sqlite/sqlite_persistent_cookie_store.h" |
#include "base/bind.h" |
#include "base/compiler_specific.h" |
#include "base/files/scoped_temp_dir.h" |
+#include "base/message_loop/message_loop.h" |
Ryan Sleevi
2015/03/19 03:37:51
Use a TaskRunner instead
rohitrao (ping after 24h)
2015/03/19 14:55:42
All of the code is using TaskRunners, but it seeme
|
#include "base/sequenced_task_runner.h" |
#include "base/strings/stringprintf.h" |
#include "base/synchronization/waitable_event.h" |
@@ -19,7 +20,7 @@ |
#include "testing/gtest/include/gtest/gtest.h" |
#include "url/gurl.h" |
-namespace content { |
+namespace net { |
namespace { |
@@ -67,7 +68,7 @@ class SQLitePersistentCookieStorePerfTest : public testing::Test { |
temp_dir_.path().Append(cookie_filename), |
client_task_runner(), |
background_task_runner(), |
- false, NULL, NULL); |
+ false, NULL); |
std::vector<net::CanonicalCookie*> cookies; |
Load(); |
ASSERT_EQ(0u, cookies_.size()); |
@@ -96,7 +97,7 @@ class SQLitePersistentCookieStorePerfTest : public testing::Test { |
temp_dir_.path().Append(cookie_filename), |
client_task_runner(), |
background_task_runner(), |
- false, NULL, NULL); |
+ false, NULL); |
} |
void TearDown() override { |
@@ -105,6 +106,7 @@ class SQLitePersistentCookieStorePerfTest : public testing::Test { |
} |
protected: |
+ base::MessageLoop main_loop_; |
scoped_ptr<base::SequencedWorkerPoolOwner> pool_owner_; |
base::WaitableEvent loaded_event_; |
base::WaitableEvent key_loaded_event_; |
@@ -138,4 +140,4 @@ TEST_F(SQLitePersistentCookieStorePerfTest, TestLoadPerformance) { |
ASSERT_EQ(15000U, cookies_.size()); |
} |
-} // namespace content |
+} // namespace net |