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

Side by Side Diff: chrome/browser/autocomplete/keyword_provider_unittest.cc

Issue 469623004: Move KeywordProvider to components/omnibox (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
Mark P 2014/08/20 17:59:17 You're leaving the unit tests behind in chrome/ ?
hashimoto 2014/08/21 09:24:43 Done.
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/command_line.h" 5 #include "base/command_line.h"
6 #include "base/message_loop/message_loop.h" 6 #include "base/message_loop/message_loop.h"
7 #include "base/strings/utf_string_conversions.h" 7 #include "base/strings/utf_string_conversions.h"
8 #include "chrome/browser/autocomplete/chrome_autocomplete_scheme_classifier.h" 8 #include "chrome/browser/autocomplete/chrome_autocomplete_scheme_classifier.h"
9 #include "chrome/browser/autocomplete/keyword_provider.h"
10 #include "components/metrics/proto/omnibox_event.pb.h" 9 #include "components/metrics/proto/omnibox_event.pb.h"
11 #include "components/omnibox/autocomplete_match.h" 10 #include "components/omnibox/autocomplete_match.h"
11 #include "components/omnibox/keyword_provider.h"
12 #include "components/search_engines/search_engines_switches.h" 12 #include "components/search_engines/search_engines_switches.h"
13 #include "components/search_engines/template_url.h" 13 #include "components/search_engines/template_url.h"
14 #include "components/search_engines/template_url_service.h" 14 #include "components/search_engines/template_url_service.h"
15 #include "testing/gtest/include/gtest/gtest.h" 15 #include "testing/gtest/include/gtest/gtest.h"
16 #include "url/gurl.h" 16 #include "url/gurl.h"
17 17
18 using base::ASCIIToUTF16; 18 using base::ASCIIToUTF16;
19 19
20 class KeywordProviderTest : public testing::Test { 20 class KeywordProviderTest : public testing::Test {
21 protected: 21 protected:
(...skipping 327 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 TestData<GURL> url_cases[] = { 349 TestData<GURL> url_cases[] = {
350 { ASCIIToUTF16("a 1 2 3"), 3, 350 { ASCIIToUTF16("a 1 2 3"), 3,
351 { { GURL("aa.com?a=b&foo=1+2+3"), false }, 351 { { GURL("aa.com?a=b&foo=1+2+3"), false },
352 { GURL("bogus URL 1+2+3"), false }, 352 { GURL("bogus URL 1+2+3"), false },
353 { GURL("http://aaaa/?aaaa=1&b=1+2+3&c"), false } } }, 353 { GURL("http://aaaa/?aaaa=1&b=1+2+3&c"), false } } },
354 }; 354 };
355 355
356 RunTest<GURL>(url_cases, arraysize(url_cases), 356 RunTest<GURL>(url_cases, arraysize(url_cases),
357 &AutocompleteMatch::destination_url); 357 &AutocompleteMatch::destination_url);
358 } 358 }
OLDNEW
« no previous file with comments | « chrome/browser/autocomplete/keyword_provider.cc ('k') | chrome/browser/autocomplete/search_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698