OLD | NEW |
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 Loading... |
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 |
OLD | NEW |