| 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> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include "base/macros.h" | 9 #include "base/macros.h" |
| 10 #include "base/message_loop/message_loop.h" |
| 10 #include "base/run_loop.h" | 11 #include "base/run_loop.h" |
| 11 #include "base/strings/utf_string_conversions.h" | 12 #include "base/strings/utf_string_conversions.h" |
| 12 #include "build/build_config.h" | 13 #include "build/build_config.h" |
| 13 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
| 14 #include "url/gurl.h" | 15 #include "url/gurl.h" |
| 15 #include "url/origin.h" | 16 #include "url/origin.h" |
| 16 | 17 |
| 17 #if !defined(OS_ANDROID) | 18 #if !defined(OS_ANDROID) |
| 18 #include "ui/gfx/font_list.h" // nogncheck | 19 #include "ui/gfx/font_list.h" // nogncheck |
| 19 #include "ui/gfx/text_elider.h" // nogncheck | 20 #include "ui/gfx/text_elider.h" // nogncheck |
| (...skipping 477 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 497 EXPECT_EQ(base::string16(), formatted_omit_scheme) | 498 EXPECT_EQ(base::string16(), formatted_omit_scheme) |
| 498 << "Explicitly test the url::Origin which takes an empty, invalid URL"; | 499 << "Explicitly test the url::Origin which takes an empty, invalid URL"; |
| 499 | 500 |
| 500 formatted_omit_scheme = url_formatter::FormatOriginForSecurityDisplay( | 501 formatted_omit_scheme = url_formatter::FormatOriginForSecurityDisplay( |
| 501 url::Origin(GURL()), url_formatter::SchemeDisplay::OMIT_CRYPTOGRAPHIC); | 502 url::Origin(GURL()), url_formatter::SchemeDisplay::OMIT_CRYPTOGRAPHIC); |
| 502 EXPECT_EQ(base::string16(), formatted_omit_scheme) | 503 EXPECT_EQ(base::string16(), formatted_omit_scheme) |
| 503 << "Explicitly test the url::Origin which takes an empty, invalid URL"; | 504 << "Explicitly test the url::Origin which takes an empty, invalid URL"; |
| 504 } | 505 } |
| 505 | 506 |
| 506 } // namespace | 507 } // namespace |
| OLD | NEW |