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

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

Issue 6317016: Change UTF8ToUTF16 to accept const StringPiece&. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 9 years, 11 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 | « chrome_frame/test_utils.cc ('k') | net/base/net_util_win.cc » ('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) 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
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
OLDNEW
« no previous file with comments | « chrome_frame/test_utils.cc ('k') | net/base/net_util_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698