OLD | NEW |
1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 "chrome/browser/autocomplete/search_provider.h" | 5 #include "chrome/browser/autocomplete/search_provider.h" |
6 | 6 |
7 #include "base/metrics/field_trial.h" | 7 #include "base/metrics/field_trial.h" |
8 #include "base/prefs/pref_service.h" | 8 #include "base/prefs/pref_service.h" |
9 #include "base/run_loop.h" | 9 #include "base/run_loop.h" |
10 #include "base/string_util.h" | 10 #include "base/string_util.h" |
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
131 void FinishDefaultSuggestQuery(); | 131 void FinishDefaultSuggestQuery(); |
132 | 132 |
133 // See description above class for details of these fields. | 133 // See description above class for details of these fields. |
134 TemplateURL* default_t_url_; | 134 TemplateURL* default_t_url_; |
135 const string16 term1_; | 135 const string16 term1_; |
136 GURL term1_url_; | 136 GURL term1_url_; |
137 TemplateURL* keyword_t_url_; | 137 TemplateURL* keyword_t_url_; |
138 const string16 keyword_term_; | 138 const string16 keyword_term_; |
139 GURL keyword_url_; | 139 GURL keyword_url_; |
140 | 140 |
141 MessageLoopForUI message_loop_; | 141 base::MessageLoopForUI message_loop_; |
142 content::TestBrowserThread ui_thread_; | 142 content::TestBrowserThread ui_thread_; |
143 content::TestBrowserThread io_thread_; | 143 content::TestBrowserThread io_thread_; |
144 | 144 |
145 // URLFetcherFactory implementation registered. | 145 // URLFetcherFactory implementation registered. |
146 net::TestURLFetcherFactory test_factory_; | 146 net::TestURLFetcherFactory test_factory_; |
147 | 147 |
148 // Profile we use. | 148 // Profile we use. |
149 TestingProfile profile_; | 149 TestingProfile profile_; |
150 | 150 |
151 // The provider. | 151 // The provider. |
(...skipping 1813 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1965 EXPECT_EQ(AutocompleteMatch::ACMatchClassification::URL, | 1965 EXPECT_EQ(AutocompleteMatch::ACMatchClassification::URL, |
1966 match.contents_class[0].style); | 1966 match.contents_class[0].style); |
1967 EXPECT_EQ(4U, match.contents_class[1].offset); | 1967 EXPECT_EQ(4U, match.contents_class[1].offset); |
1968 EXPECT_EQ(AutocompleteMatch::ACMatchClassification::URL | | 1968 EXPECT_EQ(AutocompleteMatch::ACMatchClassification::URL | |
1969 AutocompleteMatch::ACMatchClassification::MATCH, | 1969 AutocompleteMatch::ACMatchClassification::MATCH, |
1970 match.contents_class[1].style); | 1970 match.contents_class[1].style); |
1971 EXPECT_EQ(5U, match.contents_class[2].offset); | 1971 EXPECT_EQ(5U, match.contents_class[2].offset); |
1972 EXPECT_EQ(AutocompleteMatch::ACMatchClassification::URL, | 1972 EXPECT_EQ(AutocompleteMatch::ACMatchClassification::URL, |
1973 match.contents_class[2].style); | 1973 match.contents_class[2].style); |
1974 } | 1974 } |
OLD | NEW |