OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 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/bookmark_provider.h" | 5 #include "components/omnibox/browser/bookmark_provider.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include <algorithm> | 9 #include <algorithm> |
8 #include <string> | 10 #include <string> |
9 #include <vector> | 11 #include <vector> |
10 | 12 |
| 13 #include "base/macros.h" |
11 #include "base/memory/ref_counted.h" | 14 #include "base/memory/ref_counted.h" |
12 #include "base/memory/scoped_ptr.h" | 15 #include "base/memory/scoped_ptr.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_split.h" | 18 #include "base/strings/string_split.h" |
16 #include "base/strings/utf_string_conversions.h" | 19 #include "base/strings/utf_string_conversions.h" |
17 #include "chrome/browser/autocomplete/chrome_autocomplete_provider_client.h" | 20 #include "chrome/browser/autocomplete/chrome_autocomplete_provider_client.h" |
18 #include "chrome/browser/autocomplete/chrome_autocomplete_scheme_classifier.h" | 21 #include "chrome/browser/autocomplete/chrome_autocomplete_scheme_classifier.h" |
19 #include "chrome/test/base/testing_profile.h" | 22 #include "chrome/test/base/testing_profile.h" |
20 #include "components/bookmarks/browser/bookmark_match.h" | 23 #include "components/bookmarks/browser/bookmark_match.h" |
(...skipping 460 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
481 } | 484 } |
482 | 485 |
483 TEST_F(BookmarkProviderTest, DoesNotProvideMatchesOnFocus) { | 486 TEST_F(BookmarkProviderTest, DoesNotProvideMatchesOnFocus) { |
484 AutocompleteInput input( | 487 AutocompleteInput input( |
485 base::ASCIIToUTF16("foo"), base::string16::npos, std::string(), GURL(), | 488 base::ASCIIToUTF16("foo"), base::string16::npos, std::string(), GURL(), |
486 metrics::OmniboxEventProto::INVALID_SPEC, false, false, false, true, true, | 489 metrics::OmniboxEventProto::INVALID_SPEC, false, false, false, true, true, |
487 ChromeAutocompleteSchemeClassifier(profile_.get())); | 490 ChromeAutocompleteSchemeClassifier(profile_.get())); |
488 provider_->Start(input, false); | 491 provider_->Start(input, false); |
489 EXPECT_TRUE(provider_->matches().empty()); | 492 EXPECT_TRUE(provider_->matches().empty()); |
490 } | 493 } |
OLD | NEW |