Lines Matching refs:AutocompleteInput
43 virtual void Start(const AutocompleteInput& input,
61 void TestProvider::Start(const AutocompleteInput& input, in Start()
71 if (input.matches_requested() == AutocompleteInput::ALL_MATCHES) { in Start()
207 AutocompleteInput::ALL_MATCHES); in RunTest()
222 AutocompleteInput::SYNCHRONOUS_MATCHES); in RunExactKeymatchTest()
275 const AutocompleteInput::Type type; in TEST_F()
277 { ASCIIToUTF16(""), AutocompleteInput::INVALID }, in TEST_F()
278 { ASCIIToUTF16("?"), AutocompleteInput::FORCED_QUERY }, in TEST_F()
279 { ASCIIToUTF16("?foo"), AutocompleteInput::FORCED_QUERY }, in TEST_F()
280 { ASCIIToUTF16("?foo bar"), AutocompleteInput::FORCED_QUERY }, in TEST_F()
281 { ASCIIToUTF16("?http://foo.com/bar"), AutocompleteInput::FORCED_QUERY }, in TEST_F()
282 { ASCIIToUTF16("foo"), AutocompleteInput::UNKNOWN }, in TEST_F()
283 { ASCIIToUTF16("foo.c"), AutocompleteInput::UNKNOWN }, in TEST_F()
284 { ASCIIToUTF16("foo.com"), AutocompleteInput::URL }, in TEST_F()
285 { ASCIIToUTF16("-.com"), AutocompleteInput::UNKNOWN }, in TEST_F()
286 { ASCIIToUTF16("foo/bar"), AutocompleteInput::URL }, in TEST_F()
287 { ASCIIToUTF16("foo;bar"), AutocompleteInput::QUERY }, in TEST_F()
288 { ASCIIToUTF16("foo/bar baz"), AutocompleteInput::UNKNOWN }, in TEST_F()
289 { ASCIIToUTF16("foo bar.com"), AutocompleteInput::QUERY }, in TEST_F()
290 { ASCIIToUTF16("foo bar"), AutocompleteInput::QUERY }, in TEST_F()
291 { ASCIIToUTF16("foo+bar"), AutocompleteInput::QUERY }, in TEST_F()
292 { ASCIIToUTF16("foo+bar.com"), AutocompleteInput::UNKNOWN }, in TEST_F()
293 { ASCIIToUTF16("\"foo:bar\""), AutocompleteInput::QUERY }, in TEST_F()
294 { ASCIIToUTF16("link:foo.com"), AutocompleteInput::UNKNOWN }, in TEST_F()
295 { ASCIIToUTF16("foo:81"), AutocompleteInput::URL }, in TEST_F()
296 { ASCIIToUTF16("www.foo.com:81"), AutocompleteInput::URL }, in TEST_F()
297 { ASCIIToUTF16("localhost:8080"), AutocompleteInput::URL }, in TEST_F()
298 { ASCIIToUTF16("foo.com:123456"), AutocompleteInput::QUERY }, in TEST_F()
299 { ASCIIToUTF16("foo.com:abc"), AutocompleteInput::QUERY }, in TEST_F()
300 { ASCIIToUTF16("1.2.3.4:abc"), AutocompleteInput::QUERY }, in TEST_F()
301 { ASCIIToUTF16("user@foo.com"), AutocompleteInput::UNKNOWN }, in TEST_F()
302 { ASCIIToUTF16("user:pass@"), AutocompleteInput::UNKNOWN }, in TEST_F()
303 { ASCIIToUTF16("user:pass@!foo.com"), AutocompleteInput::UNKNOWN }, in TEST_F()
304 { ASCIIToUTF16("user:pass@foo"), AutocompleteInput::URL }, in TEST_F()
305 { ASCIIToUTF16("user:pass@foo.c"), AutocompleteInput::URL }, in TEST_F()
306 { ASCIIToUTF16("user:pass@foo.com"), AutocompleteInput::URL }, in TEST_F()
307 { ASCIIToUTF16("user:pass@foo.com:81"), AutocompleteInput::URL }, in TEST_F()
308 { ASCIIToUTF16("user:pass@foo:81"), AutocompleteInput::URL }, in TEST_F()
309 { ASCIIToUTF16("1.2"), AutocompleteInput::UNKNOWN }, in TEST_F()
310 { ASCIIToUTF16("1.2/45"), AutocompleteInput::UNKNOWN }, in TEST_F()
311 { ASCIIToUTF16("1.2:45"), AutocompleteInput::UNKNOWN }, in TEST_F()
312 { ASCIIToUTF16("user@1.2:45"), AutocompleteInput::UNKNOWN }, in TEST_F()
313 { ASCIIToUTF16("user:pass@1.2:45"), AutocompleteInput::URL }, in TEST_F()
314 { ASCIIToUTF16("ps/2 games"), AutocompleteInput::UNKNOWN }, in TEST_F()
316 AutocompleteInput::URL }, in TEST_F()
321 { ASCIIToUTF16("view-source:http://www.foo.com/"), AutocompleteInput::URL }, in TEST_F()
323 AutocompleteInput::URL }, in TEST_F()
325 { ASCIIToUTF16("C:\\Program Files"), AutocompleteInput::URL }, in TEST_F()
326 { ASCIIToUTF16("\\\\Server\\Folder\\File"), AutocompleteInput::URL }, in TEST_F()
328 { ASCIIToUTF16("http:foo"), AutocompleteInput::URL }, in TEST_F()
329 { ASCIIToUTF16("http://foo"), AutocompleteInput::URL }, in TEST_F()
330 { ASCIIToUTF16("http://foo.c"), AutocompleteInput::URL }, in TEST_F()
331 { ASCIIToUTF16("http://foo.com"), AutocompleteInput::URL }, in TEST_F()
332 { ASCIIToUTF16("http://foo_bar.com"), AutocompleteInput::URL }, in TEST_F()
333 { ASCIIToUTF16("http://foo/bar baz"), AutocompleteInput::URL }, in TEST_F()
334 { ASCIIToUTF16("http://-.com"), AutocompleteInput::UNKNOWN }, in TEST_F()
335 { ASCIIToUTF16("http://_foo_.com"), AutocompleteInput::UNKNOWN }, in TEST_F()
336 { ASCIIToUTF16("http://foo.com:abc"), AutocompleteInput::QUERY }, in TEST_F()
337 { ASCIIToUTF16("http://foo.com:123456"), AutocompleteInput::QUERY }, in TEST_F()
338 { ASCIIToUTF16("http://1.2.3.4:abc"), AutocompleteInput::QUERY }, in TEST_F()
339 { ASCIIToUTF16("http:user@foo.com"), AutocompleteInput::URL }, in TEST_F()
340 { ASCIIToUTF16("http://user@foo.com"), AutocompleteInput::URL }, in TEST_F()
341 { ASCIIToUTF16("http:user:pass@foo.com"), AutocompleteInput::URL }, in TEST_F()
342 { ASCIIToUTF16("http://user:pass@foo.com"), AutocompleteInput::URL }, in TEST_F()
343 { ASCIIToUTF16("http://1.2"), AutocompleteInput::URL }, in TEST_F()
344 { ASCIIToUTF16("http://1.2/45"), AutocompleteInput::URL }, in TEST_F()
345 { ASCIIToUTF16("http:ps/2 games"), AutocompleteInput::URL }, in TEST_F()
346 { ASCIIToUTF16("http://ps/2 games"), AutocompleteInput::URL }, in TEST_F()
347 { ASCIIToUTF16("https://foo.com"), AutocompleteInput::URL }, in TEST_F()
348 { ASCIIToUTF16("127.0.0.1"), AutocompleteInput::URL }, in TEST_F()
349 { ASCIIToUTF16("127.0.1"), AutocompleteInput::UNKNOWN }, in TEST_F()
350 { ASCIIToUTF16("127.0.1/"), AutocompleteInput::UNKNOWN }, in TEST_F()
351 { ASCIIToUTF16("browser.tabs.closeButtons"), AutocompleteInput::UNKNOWN }, in TEST_F()
352 { WideToUTF16(L"\u6d4b\u8bd5"), AutocompleteInput::UNKNOWN }, in TEST_F()
353 { ASCIIToUTF16("[2001:]"), AutocompleteInput::QUERY }, // Not a valid IP in TEST_F()
354 { ASCIIToUTF16("[2001:dB8::1]"), AutocompleteInput::URL }, in TEST_F()
356 AutocompleteInput::QUERY }, // Invalid IPv4 literal. in TEST_F()
358 AutocompleteInput::QUERY }, // Invalid IPv6 literal. in TEST_F()
363 AutocompleteInput input(input_cases[i].input, string16(), true, false, in TEST_F()
364 true, AutocompleteInput::ALL_MATCHES); in TEST_F()
372 const AutocompleteInput::Type type; in TEST_F()
374 { ASCIIToUTF16("401k"), AutocompleteInput::REQUESTED_URL }, in TEST_F()
375 { ASCIIToUTF16("999999999999999"), AutocompleteInput::REQUESTED_URL }, in TEST_F()
379 AutocompleteInput input(input_cases[i].input, ASCIIToUTF16("com"), true, in TEST_F()
380 false, true, AutocompleteInput::ALL_MATCHES); in TEST_F()
389 AutocompleteInput input(WideToUTF16(L"\uff65@s"), string16(), true, false, in TEST_F()
390 true, AutocompleteInput::ALL_MATCHES); in TEST_F()
419 TEST(AutocompleteInput, ParseForEmphasizeComponent) { in TEST() argument
455 AutocompleteInput::ParseForEmphasizeComponents(input_cases[i].input, in TEST()
459 AutocompleteInput input(input_cases[i].input, string16(), true, false, in TEST()
460 true, AutocompleteInput::ALL_MATCHES); in TEST()