| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <stddef.h> |
| 6 |
| 7 #include "base/macros.h" |
| 5 #include "base/strings/string16.h" | 8 #include "base/strings/string16.h" |
| 6 #include "base/strings/string_util.h" | 9 #include "base/strings/string_util.h" |
| 7 #include "base/strings/utf_string_conversions.h" | 10 #include "base/strings/utf_string_conversions.h" |
| 8 #include "components/omnibox/browser/omnibox_view.h" | 11 #include "components/omnibox/browser/omnibox_view.h" |
| 9 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
| 10 #include "testing/platform_test.h" | 13 #include "testing/platform_test.h" |
| 11 | 14 |
| 12 using base::ASCIIToUTF16; | 15 using base::ASCIIToUTF16; |
| 13 | 16 |
| 14 namespace { | 17 namespace { |
| (...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 // Multi-line address is converted to a single-line address. | 52 // Multi-line address is converted to a single-line address. |
| 50 const base::string16 kWrappedAddress(ASCIIToUTF16( | 53 const base::string16 kWrappedAddress(ASCIIToUTF16( |
| 51 "1600 Amphitheatre Parkway\nMountain View, CA")); | 54 "1600 Amphitheatre Parkway\nMountain View, CA")); |
| 52 | 55 |
| 53 const base::string16 kFixedAddress(ASCIIToUTF16( | 56 const base::string16 kFixedAddress(ASCIIToUTF16( |
| 54 "1600 Amphitheatre Parkway Mountain View, CA")); | 57 "1600 Amphitheatre Parkway Mountain View, CA")); |
| 55 EXPECT_EQ(kFixedAddress, OmniboxView::SanitizeTextForPaste(kWrappedAddress)); | 58 EXPECT_EQ(kFixedAddress, OmniboxView::SanitizeTextForPaste(kWrappedAddress)); |
| 56 } | 59 } |
| 57 | 60 |
| 58 } // namespace | 61 } // namespace |
| OLD | NEW |