Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(298)

Side by Side Diff: chrome/browser/net/sqlite_persistent_cookie_store_perftest.cc

Issue 10500016: Move test_browser_thread.h from content\test to content\public\test. This way we can enforce that i… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/bind.h" 5 #include "base/bind.h"
6 #include "base/message_loop.h" 6 #include "base/message_loop.h"
7 #include "base/perftimer.h" 7 #include "base/perftimer.h"
8 #include "base/scoped_temp_dir.h" 8 #include "base/scoped_temp_dir.h"
9 #include "base/stringprintf.h" 9 #include "base/stringprintf.h"
10 #include "base/synchronization/waitable_event.h" 10 #include "base/synchronization/waitable_event.h"
11 #include "base/test/thread_test_helper.h" 11 #include "base/test/thread_test_helper.h"
12 #include "chrome/browser/net/sqlite_persistent_cookie_store.h" 12 #include "chrome/browser/net/sqlite_persistent_cookie_store.h"
13 #include "chrome/common/chrome_constants.h" 13 #include "chrome/common/chrome_constants.h"
14 #include "content/test/test_browser_thread.h" 14 #include "content/public/test/test_browser_thread.h"
15 #include "googleurl/src/gurl.h" 15 #include "googleurl/src/gurl.h"
16 #include "testing/gtest/include/gtest/gtest.h" 16 #include "testing/gtest/include/gtest/gtest.h"
17 17
18 using content::BrowserThread; 18 using content::BrowserThread;
19 19
20 class SQLitePersistentCookieStorePerfTest : public testing::Test { 20 class SQLitePersistentCookieStorePerfTest : public testing::Test {
21 public: 21 public:
22 SQLitePersistentCookieStorePerfTest() 22 SQLitePersistentCookieStorePerfTest()
23 : db_thread_(BrowserThread::DB), 23 : db_thread_(BrowserThread::DB),
24 io_thread_(BrowserThread::IO), 24 io_thread_(BrowserThread::IO),
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
108 } 108 }
109 109
110 // Test the performance of load 110 // Test the performance of load
111 TEST_F(SQLitePersistentCookieStorePerfTest, TestLoadPerformance) { 111 TEST_F(SQLitePersistentCookieStorePerfTest, TestLoadPerformance) {
112 PerfTimeLogger timer("Load all cookies"); 112 PerfTimeLogger timer("Load all cookies");
113 Load(); 113 Load();
114 timer.Done(); 114 timer.Done();
115 115
116 ASSERT_EQ(15000U, cookies_.size()); 116 ASSERT_EQ(15000U, cookies_.size());
117 } 117 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698