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

Side by Side Diff: net/cookies/cookie_monster_perftest.cc

Issue 9703011: Move the cookie store implementation into its own directory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: net/base/cookies/ -> net/cookies/ Created 8 years, 9 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
« no previous file with comments | « net/cookies/cookie_monster.cc ('k') | net/cookies/cookie_monster_store_test.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 <algorithm> 5 #include <algorithm>
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/message_loop.h" 8 #include "base/message_loop.h"
9 #include "base/perftimer.h" 9 #include "base/perftimer.h"
10 #include "base/string_util.h" 10 #include "base/string_util.h"
11 #include "base/stringprintf.h" 11 #include "base/stringprintf.h"
12 #include "googleurl/src/gurl.h" 12 #include "googleurl/src/gurl.h"
13 #include "net/base/cookie_monster.h" 13 #include "net/cookies/cookie_monster.h"
14 #include "net/base/cookie_monster_store_test.h" 14 #include "net/cookies/cookie_monster_store_test.h"
15 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
16 16
17 namespace { 17 namespace {
18 class CookieMonsterTest : public testing::Test { 18 class CookieMonsterTest : public testing::Test {
19 public: 19 public:
20 CookieMonsterTest() : message_loop_(new MessageLoopForIO()) {} 20 CookieMonsterTest() : message_loop_(new MessageLoopForIO()) {}
21 21
22 private: 22 private:
23 scoped_ptr<MessageLoop> message_loop_; 23 scoped_ptr<MessageLoop> message_loop_;
24 }; 24 };
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after
421 setCookieCallback.SetCookie(cm, gurl, cookie_line); 421 setCookieCallback.SetCookie(cm, gurl, cookie_line);
422 422
423 PerfTimeLogger timer((std::string("GC_") + test_case.name).c_str()); 423 PerfTimeLogger timer((std::string("GC_") + test_case.name).c_str());
424 for (int i = 0; i < kNumCookies; i++) 424 for (int i = 0; i < kNumCookies; i++)
425 setCookieCallback.SetCookie(cm, gurl, cookie_line); 425 setCookieCallback.SetCookie(cm, gurl, cookie_line);
426 timer.Done(); 426 timer.Done();
427 } 427 }
428 } 428 }
429 429
430 } // namespace 430 } // namespace
OLDNEW
« no previous file with comments | « net/cookies/cookie_monster.cc ('k') | net/cookies/cookie_monster_store_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698