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

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

Issue 1548893002: Remove duplicate test data (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
« no previous file with comments | « AUTHORS ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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/omnibox/browser/autocomplete_input.h" 5 #include "components/omnibox/browser/autocomplete_input.h"
6 6
7 #include "base/basictypes.h" 7 #include "base/basictypes.h"
8 #include "base/strings/string16.h" 8 #include "base/strings/string16.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "build/build_config.h" 10 #include "build/build_config.h"
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 { ASCIIToUTF16("1.2/"), metrics::OmniboxInputType::URL }, 76 { ASCIIToUTF16("1.2/"), metrics::OmniboxInputType::URL },
77 { ASCIIToUTF16("1.2/45"), metrics::OmniboxInputType::QUERY }, 77 { ASCIIToUTF16("1.2/45"), metrics::OmniboxInputType::QUERY },
78 { ASCIIToUTF16("6008/32768"), metrics::OmniboxInputType::QUERY }, 78 { ASCIIToUTF16("6008/32768"), metrics::OmniboxInputType::QUERY },
79 { ASCIIToUTF16("12345678/"), metrics::OmniboxInputType::QUERY }, 79 { ASCIIToUTF16("12345678/"), metrics::OmniboxInputType::QUERY },
80 { ASCIIToUTF16("123456789/"), metrics::OmniboxInputType::URL }, 80 { ASCIIToUTF16("123456789/"), metrics::OmniboxInputType::URL },
81 { ASCIIToUTF16("1.2:45"), metrics::OmniboxInputType::QUERY }, 81 { ASCIIToUTF16("1.2:45"), metrics::OmniboxInputType::QUERY },
82 { ASCIIToUTF16("user@1.2:45"), metrics::OmniboxInputType::QUERY }, 82 { ASCIIToUTF16("user@1.2:45"), metrics::OmniboxInputType::QUERY },
83 { ASCIIToUTF16("user@foo:45"), metrics::OmniboxInputType::URL }, 83 { ASCIIToUTF16("user@foo:45"), metrics::OmniboxInputType::URL },
84 { ASCIIToUTF16("user:pass@1.2:45"), metrics::OmniboxInputType::URL }, 84 { ASCIIToUTF16("user:pass@1.2:45"), metrics::OmniboxInputType::URL },
85 { ASCIIToUTF16("host?query"), metrics::OmniboxInputType::UNKNOWN }, 85 { ASCIIToUTF16("host?query"), metrics::OmniboxInputType::UNKNOWN },
86 { ASCIIToUTF16("host#ref"), metrics::OmniboxInputType::QUERY },
87 { ASCIIToUTF16("host#"), metrics::OmniboxInputType::QUERY }, 86 { ASCIIToUTF16("host#"), metrics::OmniboxInputType::QUERY },
88 { ASCIIToUTF16("host#ref"), metrics::OmniboxInputType::QUERY }, 87 { ASCIIToUTF16("host#ref"), metrics::OmniboxInputType::QUERY },
89 { ASCIIToUTF16("host# ref"), metrics::OmniboxInputType::QUERY }, 88 { ASCIIToUTF16("host# ref"), metrics::OmniboxInputType::QUERY },
90 { ASCIIToUTF16("host/#ref"), metrics::OmniboxInputType::URL }, 89 { ASCIIToUTF16("host/#ref"), metrics::OmniboxInputType::URL },
91 { ASCIIToUTF16("host/?#ref"), metrics::OmniboxInputType::URL }, 90 { ASCIIToUTF16("host/?#ref"), metrics::OmniboxInputType::URL },
92 { ASCIIToUTF16("host/?#"), metrics::OmniboxInputType::URL }, 91 { ASCIIToUTF16("host/?#"), metrics::OmniboxInputType::URL },
93 { ASCIIToUTF16("host.com#ref"), metrics::OmniboxInputType::URL }, 92 { ASCIIToUTF16("host.com#ref"), metrics::OmniboxInputType::URL },
94 { ASCIIToUTF16("http://host#ref"), metrics::OmniboxInputType::URL }, 93 { ASCIIToUTF16("http://host#ref"), metrics::OmniboxInputType::URL },
95 { ASCIIToUTF16("host/path?query"), metrics::OmniboxInputType::URL }, 94 { ASCIIToUTF16("host/path?query"), metrics::OmniboxInputType::URL },
96 { ASCIIToUTF16("host/path#ref"), metrics::OmniboxInputType::URL }, 95 { ASCIIToUTF16("host/path#ref"), metrics::OmniboxInputType::URL },
(...skipping 207 matching lines...) Expand 10 before | Expand all | Expand 10 after
304 SCOPED_TRACE(input_cases[i].input); 303 SCOPED_TRACE(input_cases[i].input);
305 AutocompleteInput input(input_cases[i].input, 304 AutocompleteInput input(input_cases[i].input,
306 input_cases[i].cursor_position, std::string(), 305 input_cases[i].cursor_position, std::string(),
307 GURL(), OmniboxEventProto::INVALID_SPEC, true, 306 GURL(), OmniboxEventProto::INVALID_SPEC, true,
308 false, true, true, false, TestSchemeClassifier()); 307 false, true, true, false, TestSchemeClassifier());
309 EXPECT_EQ(input_cases[i].normalized_input, input.text()); 308 EXPECT_EQ(input_cases[i].normalized_input, input.text());
310 EXPECT_EQ(input_cases[i].normalized_cursor_position, 309 EXPECT_EQ(input_cases[i].normalized_cursor_position,
311 input.cursor_position()); 310 input.cursor_position());
312 } 311 }
313 } 312 }
OLDNEW
« no previous file with comments | « AUTHORS ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698