OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "components/url_formatter/elide_url.h" | 5 #include "components/url_formatter/elide_url.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "base/ios/ios_util.h" | 9 #include "base/ios/ios_util.h" |
| 10 #include "base/macros.h" |
8 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
| 12 #include "build/build_config.h" |
9 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
10 #include "url/gurl.h" | 14 #include "url/gurl.h" |
11 | 15 |
12 #if !defined(OS_ANDROID) | 16 #if !defined(OS_ANDROID) |
13 #include "ui/gfx/font_list.h" // nogncheck | 17 #include "ui/gfx/font_list.h" // nogncheck |
14 #include "ui/gfx/text_elider.h" // nogncheck | 18 #include "ui/gfx/text_elider.h" // nogncheck |
15 #include "ui/gfx/text_utils.h" // nogncheck | 19 #include "ui/gfx/text_utils.h" // nogncheck |
16 #endif | 20 #endif |
17 | 21 |
18 namespace { | 22 namespace { |
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
357 << "Explicitly test the 0-argument GURL constructor"; | 361 << "Explicitly test the 0-argument GURL constructor"; |
358 | 362 |
359 base::string16 formatted_omit_scheme = | 363 base::string16 formatted_omit_scheme = |
360 url_formatter::FormatUrlForSecurityDisplayOmitScheme(GURL(), | 364 url_formatter::FormatUrlForSecurityDisplayOmitScheme(GURL(), |
361 std::string()); | 365 std::string()); |
362 EXPECT_EQ(base::string16(), formatted_omit_scheme) | 366 EXPECT_EQ(base::string16(), formatted_omit_scheme) |
363 << "Explicitly test the 0-argument GURL constructor"; | 367 << "Explicitly test the 0-argument GURL constructor"; |
364 } | 368 } |
365 | 369 |
366 } // namespace | 370 } // namespace |
OLD | NEW |