| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 <stddef.h> |
| 6 |
| 5 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 #include "base/macros.h" |
| 6 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
| 7 #include "base/metrics/field_trial.h" | 10 #include "base/metrics/field_trial.h" |
| 8 #include "base/strings/utf_string_conversions.h" | 11 #include "base/strings/utf_string_conversions.h" |
| 9 #include "components/metrics/proto/omnibox_event.pb.h" | 12 #include "components/metrics/proto/omnibox_event.pb.h" |
| 10 #include "components/omnibox/browser/autocomplete_match.h" | 13 #include "components/omnibox/browser/autocomplete_match.h" |
| 11 #include "components/omnibox/browser/autocomplete_scheme_classifier.h" | 14 #include "components/omnibox/browser/autocomplete_scheme_classifier.h" |
| 12 #include "components/omnibox/browser/keyword_provider.h" | 15 #include "components/omnibox/browser/keyword_provider.h" |
| 13 #include "components/omnibox/browser/mock_autocomplete_provider_client.h" | 16 #include "components/omnibox/browser/mock_autocomplete_provider_client.h" |
| 14 #include "components/omnibox/browser/omnibox_field_trial.h" | 17 #include "components/omnibox/browser/omnibox_field_trial.h" |
| 15 #include "components/search_engines/search_engines_switches.h" | 18 #include "components/search_engines/search_engines_switches.h" |
| (...skipping 510 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 526 | 529 |
| 527 TEST_F(KeywordProviderTest, DoesNotProvideMatchesOnFocus) { | 530 TEST_F(KeywordProviderTest, DoesNotProvideMatchesOnFocus) { |
| 528 SetUpClientAndKeywordProvider(); | 531 SetUpClientAndKeywordProvider(); |
| 529 AutocompleteInput input(ASCIIToUTF16("aaa"), base::string16::npos, | 532 AutocompleteInput input(ASCIIToUTF16("aaa"), base::string16::npos, |
| 530 std::string(), GURL(), | 533 std::string(), GURL(), |
| 531 metrics::OmniboxEventProto::INVALID_SPEC, true, false, | 534 metrics::OmniboxEventProto::INVALID_SPEC, true, false, |
| 532 true, true, true, TestingSchemeClassifier()); | 535 true, true, true, TestingSchemeClassifier()); |
| 533 kw_provider_->Start(input, false); | 536 kw_provider_->Start(input, false); |
| 534 ASSERT_TRUE(kw_provider_->matches().empty()); | 537 ASSERT_TRUE(kw_provider_->matches().empty()); |
| 535 } | 538 } |
| OLD | NEW |