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 #ifndef COMPONENTS_OMNIBOX_TEST_SCHEME_CLASSIFIER_H_ | 5 #ifndef COMPONENTS_OMNIBOX_TEST_SCHEME_CLASSIFIER_H_ |
6 #define COMPONENTS_OMNIBOX_TEST_SCHEME_CLASSIFIER_H_ | 6 #define COMPONENTS_OMNIBOX_TEST_SCHEME_CLASSIFIER_H_ |
7 | 7 |
8 #include "base/macros.h" | 8 #include "base/macros.h" |
9 #include "components/omnibox/autocomplete_scheme_classifier.h" | 9 #include "components/omnibox/autocomplete_scheme_classifier.h" |
10 | 10 |
11 // The subclass of AutocompleteSchemeClassifier for testing. | 11 // The subclass of AutocompleteSchemeClassifier for testing. |
12 class TestSchemeClassifier : public AutocompleteSchemeClassifier { | 12 class TestSchemeClassifier : public AutocompleteSchemeClassifier { |
13 public: | 13 public: |
14 TestSchemeClassifier(); | 14 TestSchemeClassifier(); |
15 virtual ~TestSchemeClassifier(); | 15 virtual ~TestSchemeClassifier(); |
16 | 16 |
17 // Overridden from AutocompleteInputSchemeChecker: | 17 // Overridden from AutocompleteInputSchemeChecker: |
18 virtual metrics::OmniboxInputType::Type GetInputTypeForScheme( | 18 virtual metrics::OmniboxInputType::Type GetInputTypeForScheme( |
19 const std::string& scheme) const OVERRIDE; | 19 const std::string& scheme) const override; |
20 | 20 |
21 private: | 21 private: |
22 DISALLOW_COPY_AND_ASSIGN(TestSchemeClassifier); | 22 DISALLOW_COPY_AND_ASSIGN(TestSchemeClassifier); |
23 }; | 23 }; |
24 | 24 |
25 #endif // COMPONENTS_OMNIBOX_TEST_SCHEME_CLASSIFIER_H_ | 25 #endif // COMPONENTS_OMNIBOX_TEST_SCHEME_CLASSIFIER_H_ |
OLD | NEW |