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 "components/omnibox/browser/search_provider.h" | 5 #include "components/omnibox/browser/search_provider.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <string> | 9 #include <string> |
8 | 10 |
9 #include "base/command_line.h" | 11 #include "base/command_line.h" |
| 12 #include "base/macros.h" |
10 #include "base/metrics/field_trial.h" | 13 #include "base/metrics/field_trial.h" |
11 #include "base/prefs/pref_service.h" | 14 #include "base/prefs/pref_service.h" |
12 #include "base/run_loop.h" | 15 #include "base/run_loop.h" |
13 #include "base/strings/string16.h" | 16 #include "base/strings/string16.h" |
14 #include "base/strings/string_number_conversions.h" | 17 #include "base/strings/string_number_conversions.h" |
15 #include "base/strings/string_util.h" | 18 #include "base/strings/string_util.h" |
16 #include "base/strings/utf_string_conversions.h" | 19 #include "base/strings/utf_string_conversions.h" |
17 #include "base/time/time.h" | 20 #include "base/time/time.h" |
18 #include "build/build_config.h" | 21 #include "build/build_config.h" |
19 #include "chrome/browser/autocomplete/autocomplete_classifier_factory.h" | 22 #include "chrome/browser/autocomplete/autocomplete_classifier_factory.h" |
(...skipping 3594 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3614 } | 3617 } |
3615 | 3618 |
3616 TEST_F(SearchProviderTest, DoesNotProvideOnFocus) { | 3619 TEST_F(SearchProviderTest, DoesNotProvideOnFocus) { |
3617 AutocompleteInput input( | 3620 AutocompleteInput input( |
3618 base::ASCIIToUTF16("f"), base::string16::npos, std::string(), GURL(), | 3621 base::ASCIIToUTF16("f"), base::string16::npos, std::string(), GURL(), |
3619 metrics::OmniboxEventProto::INVALID_SPEC, false, true, true, true, true, | 3622 metrics::OmniboxEventProto::INVALID_SPEC, false, true, true, true, true, |
3620 ChromeAutocompleteSchemeClassifier(&profile_)); | 3623 ChromeAutocompleteSchemeClassifier(&profile_)); |
3621 provider_->Start(input, false); | 3624 provider_->Start(input, false); |
3622 EXPECT_TRUE(provider_->matches().empty()); | 3625 EXPECT_TRUE(provider_->matches().empty()); |
3623 } | 3626 } |
OLD | NEW |