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

Side by Side Diff: components/omnibox/browser/omnibox_view_unittest.cc

Issue 1551433002: Switch to standard integer types in components/, part 3 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more Created 4 years, 12 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) 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
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
OLDNEW
« no previous file with comments | « components/omnibox/browser/omnibox_view.cc ('k') | components/omnibox/browser/scored_history_match.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698