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 "components/omnibox/search_provider.h" |
6 | 6 |
7 #include <string> | 7 #include <string> |
8 | 8 |
9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
10 #include "base/metrics/field_trial.h" | 10 #include "base/metrics/field_trial.h" |
11 #include "base/prefs/pref_service.h" | 11 #include "base/prefs/pref_service.h" |
12 #include "base/run_loop.h" | 12 #include "base/run_loop.h" |
13 #include "base/strings/string16.h" | 13 #include "base/strings/string16.h" |
14 #include "base/strings/string_number_conversions.h" | 14 #include "base/strings/string_number_conversions.h" |
15 #include "base/strings/string_util.h" | 15 #include "base/strings/string_util.h" |
(...skipping 3243 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3259 AutocompleteInput input(base::ASCIIToUTF16("weather l"), | 3259 AutocompleteInput input(base::ASCIIToUTF16("weather l"), |
3260 base::string16::npos, base::string16(), GURL(), | 3260 base::string16::npos, base::string16(), GURL(), |
3261 metrics::OmniboxEventProto::INVALID_SPEC, false, | 3261 metrics::OmniboxEventProto::INVALID_SPEC, false, |
3262 false, true, true, | 3262 false, true, true, |
3263 ChromeAutocompleteSchemeClassifier(&profile_)); | 3263 ChromeAutocompleteSchemeClassifier(&profile_)); |
3264 provider_->DoAnswersQuery(input); | 3264 provider_->DoAnswersQuery(input); |
3265 EXPECT_EQ(base::ASCIIToUTF16("weather los angeles"), | 3265 EXPECT_EQ(base::ASCIIToUTF16("weather los angeles"), |
3266 provider_->prefetch_data_.full_query_text); | 3266 provider_->prefetch_data_.full_query_text); |
3267 EXPECT_EQ(base::ASCIIToUTF16("2334"), provider_->prefetch_data_.query_type); | 3267 EXPECT_EQ(base::ASCIIToUTF16("2334"), provider_->prefetch_data_.query_type); |
3268 } | 3268 } |
OLD | NEW |