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

Side by Side Diff: chrome/test/perf/url_parse_perftest.cc

Issue 1152373003: url: Fix the TODO in url_parse.h header. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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/test/perf_time_logger.h" 5 #include "base/test/perf_time_logger.h"
6 #include "testing/gtest/include/gtest/gtest.h" 6 #include "testing/gtest/include/gtest/gtest.h"
7 #include "url/gurl.h" 7 #include "url/gurl.h"
8 #include "url/third_party/mozilla/url_parse.h"
8 #include "url/url_canon.h" 9 #include "url/url_canon.h"
9 #include "url/url_canon_stdstring.h" 10 #include "url/url_canon_stdstring.h"
10 #include "url/url_parse.h"
11 11
12 // TODO(darin): chrome code should not depend on WebCore innards 12 // TODO(darin): chrome code should not depend on WebCore innards
13 #if 0 13 #if 0
14 #pragma warning(push, 0) 14 #pragma warning(push, 0)
15 15
16 // This is because we have multiple headers called "CString.h" and KURL.cpp 16 // This is because we have multiple headers called "CString.h" and KURL.cpp
17 // can grab the wrong one. 17 // can grab the wrong one.
18 #include "webkit/third_party/WebCore/platform/CString.h" 18 #include "webkit/third_party/WebCore/platform/CString.h"
19 19
20 #define KURL WebKitKURL 20 #define KURL WebKitKURL
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 base::PerfTimeLogger timer_kurl("Typical_KURL_AMillion"); 140 base::PerfTimeLogger timer_kurl("Typical_KURL_AMillion");
141 for (int i = 0; i < 333333; i++) { // divide by 3 so we get 1M 141 for (int i = 0; i < 333333; i++) { // divide by 3 so we get 1M
142 WebCore::WebKitKURL kurl1(typical_url1); 142 WebCore::WebKitKURL kurl1(typical_url1);
143 WebCore::WebKitKURL kurl2(typical_url2); 143 WebCore::WebKitKURL kurl2(typical_url2);
144 WebCore::WebKitKURL kurl3(typical_url3); 144 WebCore::WebKitKURL kurl3(typical_url3);
145 } 145 }
146 timer_kurl.Done(); 146 timer_kurl.Done();
147 } 147 }
148 148
149 #endif 149 #endif
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/options/chromeos/user_image_source.cc ('k') | components/omnibox/autocomplete_input.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698