OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 "base/message_loop.h" | 5 #include "base/message_loop.h" |
6 #include "base/scoped_ptr.h" | 6 #include "base/scoped_ptr.h" |
7 #include "base/string_number_conversions.h" | 7 #include "base/string_number_conversions.h" |
8 #include "base/string_util.h" | 8 #include "base/string_util.h" |
9 #include "base/utf_string_conversions.h" | 9 #include "base/utf_string_conversions.h" |
10 #include "chrome/browser/autocomplete/autocomplete.h" | 10 #include "chrome/browser/autocomplete/autocomplete.h" |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
210 { L"", AutocompleteInput::INVALID }, | 210 { L"", AutocompleteInput::INVALID }, |
211 { L"?", AutocompleteInput::FORCED_QUERY }, | 211 { L"?", AutocompleteInput::FORCED_QUERY }, |
212 { L"?foo", AutocompleteInput::FORCED_QUERY }, | 212 { L"?foo", AutocompleteInput::FORCED_QUERY }, |
213 { L"?foo bar", AutocompleteInput::FORCED_QUERY }, | 213 { L"?foo bar", AutocompleteInput::FORCED_QUERY }, |
214 { L"?http://foo.com/bar", AutocompleteInput::FORCED_QUERY }, | 214 { L"?http://foo.com/bar", AutocompleteInput::FORCED_QUERY }, |
215 { L"foo", AutocompleteInput::UNKNOWN }, | 215 { L"foo", AutocompleteInput::UNKNOWN }, |
216 { L"foo.c", AutocompleteInput::UNKNOWN }, | 216 { L"foo.c", AutocompleteInput::UNKNOWN }, |
217 { L"foo.com", AutocompleteInput::URL }, | 217 { L"foo.com", AutocompleteInput::URL }, |
218 { L"-.com", AutocompleteInput::UNKNOWN }, | 218 { L"-.com", AutocompleteInput::UNKNOWN }, |
219 { L"foo/bar", AutocompleteInput::URL }, | 219 { L"foo/bar", AutocompleteInput::URL }, |
| 220 { L"foo;bar", AutocompleteInput::QUERY }, |
220 { L"foo/bar baz", AutocompleteInput::UNKNOWN }, | 221 { L"foo/bar baz", AutocompleteInput::UNKNOWN }, |
221 { L"foo bar.com", AutocompleteInput::QUERY }, | 222 { L"foo bar.com", AutocompleteInput::QUERY }, |
222 { L"foo bar", AutocompleteInput::QUERY }, | 223 { L"foo bar", AutocompleteInput::QUERY }, |
223 { L"foo+bar", AutocompleteInput::QUERY }, | 224 { L"foo+bar", AutocompleteInput::QUERY }, |
224 { L"foo+bar.com", AutocompleteInput::UNKNOWN }, | 225 { L"foo+bar.com", AutocompleteInput::UNKNOWN }, |
225 { L"\"foo:bar\"", AutocompleteInput::QUERY }, | 226 { L"\"foo:bar\"", AutocompleteInput::QUERY }, |
226 { L"link:foo.com", AutocompleteInput::UNKNOWN }, | 227 { L"link:foo.com", AutocompleteInput::UNKNOWN }, |
227 { L"www.foo.com:81", AutocompleteInput::URL }, | 228 { L"www.foo.com:81", AutocompleteInput::URL }, |
228 { L"localhost:8080", AutocompleteInput::URL }, | 229 { L"localhost:8080", AutocompleteInput::URL }, |
229 { L"foo.com:123456", AutocompleteInput::QUERY }, | 230 { L"foo.com:123456", AutocompleteInput::QUERY }, |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
376 EXPECT_EQ(input_cases[i].scheme.len, scheme.len) << "Input: " << | 377 EXPECT_EQ(input_cases[i].scheme.len, scheme.len) << "Input: " << |
377 input_cases[i].input; | 378 input_cases[i].input; |
378 EXPECT_EQ(input_cases[i].host.begin, host.begin) << "Input: " << | 379 EXPECT_EQ(input_cases[i].host.begin, host.begin) << "Input: " << |
379 input_cases[i].input; | 380 input_cases[i].input; |
380 EXPECT_EQ(input_cases[i].host.len, host.len) << "Input: " << | 381 EXPECT_EQ(input_cases[i].host.len, host.len) << "Input: " << |
381 input_cases[i].input; | 382 input_cases[i].input; |
382 } | 383 } |
383 } | 384 } |
384 | 385 |
385 } // namespace | 386 } // namespace |
OLD | NEW |