OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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> |
| 6 |
5 #include "net/base/cookie_monster.h" | 7 #include "net/base/cookie_monster.h" |
6 | 8 |
7 #include "base/perftimer.h" | 9 #include "base/perftimer.h" |
8 #include "base/string_util.h" | 10 #include "base/string_util.h" |
9 #include "base/stringprintf.h" | 11 #include "base/stringprintf.h" |
10 #include "googleurl/src/gurl.h" | 12 #include "googleurl/src/gurl.h" |
11 #include "net/base/cookie_monster.h" | 13 #include "net/base/cookie_monster.h" |
12 #include "net/base/cookie_monster_store_test.h" | 14 #include "net/base/cookie_monster_store_test.h" |
13 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
14 | 16 |
(...skipping 279 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
294 EXPECT_TRUE(cm->SetCookie(gurl, cookie_line)); | 296 EXPECT_TRUE(cm->SetCookie(gurl, cookie_line)); |
295 | 297 |
296 PerfTimeLogger timer((std::string("GC_") + test_case.name).c_str()); | 298 PerfTimeLogger timer((std::string("GC_") + test_case.name).c_str()); |
297 for (int i = 0; i < kNumCookies; i++) | 299 for (int i = 0; i < kNumCookies; i++) |
298 EXPECT_TRUE(cm->SetCookie(gurl, cookie_line)); | 300 EXPECT_TRUE(cm->SetCookie(gurl, cookie_line)); |
299 timer.Done(); | 301 timer.Done(); |
300 } | 302 } |
301 } | 303 } |
302 | 304 |
303 } // namespace | 305 } // namespace |
OLD | NEW |