| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_BROWSER_MOCK_AUTOCOMPLETE_PROVIDER_CLIENT_H_ | 5 #ifndef COMPONENTS_OMNIBOX_BROWSER_MOCK_AUTOCOMPLETE_PROVIDER_CLIENT_H_ |
| 6 #define COMPONENTS_OMNIBOX_BROWSER_MOCK_AUTOCOMPLETE_PROVIDER_CLIENT_H_ | 6 #define COMPONENTS_OMNIBOX_BROWSER_MOCK_AUTOCOMPLETE_PROVIDER_CLIENT_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <utility> | 9 #include <utility> |
| 10 | 10 |
| (...skipping 29 matching lines...) Expand all Loading... |
| 40 TemplateURLService* GetTemplateURLService() override { | 40 TemplateURLService* GetTemplateURLService() override { |
| 41 return template_url_service_.get(); | 41 return template_url_service_.get(); |
| 42 } | 42 } |
| 43 const TemplateURLService* GetTemplateURLService() const override { | 43 const TemplateURLService* GetTemplateURLService() const override { |
| 44 return template_url_service_.get(); | 44 return template_url_service_.get(); |
| 45 } | 45 } |
| 46 std::unique_ptr<KeywordExtensionsDelegate> GetKeywordExtensionsDelegate( | 46 std::unique_ptr<KeywordExtensionsDelegate> GetKeywordExtensionsDelegate( |
| 47 KeywordProvider* keyword_provider) override { | 47 KeywordProvider* keyword_provider) override { |
| 48 return nullptr; | 48 return nullptr; |
| 49 } | 49 } |
| 50 PhysicalWebDataSource* GetPhysicalWebDataSource() override { |
| 51 return nullptr; |
| 52 } |
| 50 | 53 |
| 51 MOCK_CONST_METHOD0(GetSearchTermsData, const SearchTermsData&()); | 54 MOCK_CONST_METHOD0(GetSearchTermsData, const SearchTermsData&()); |
| 52 | 55 |
| 53 // Can't mock scoped_refptr :\. | 56 // Can't mock scoped_refptr :\. |
| 54 scoped_refptr<ShortcutsBackend> GetShortcutsBackend() override { | 57 scoped_refptr<ShortcutsBackend> GetShortcutsBackend() override { |
| 55 return nullptr; | 58 return nullptr; |
| 56 } | 59 } |
| 57 scoped_refptr<ShortcutsBackend> GetShortcutsBackendIfExists() override { | 60 scoped_refptr<ShortcutsBackend> GetShortcutsBackendIfExists() override { |
| 58 return nullptr; | 61 return nullptr; |
| 59 } | 62 } |
| (...skipping 21 matching lines...) Expand all Loading... |
| 81 template_url_service_ = std::move(service); | 84 template_url_service_ = std::move(service); |
| 82 } | 85 } |
| 83 | 86 |
| 84 private: | 87 private: |
| 85 std::unique_ptr<TemplateURLService> template_url_service_; | 88 std::unique_ptr<TemplateURLService> template_url_service_; |
| 86 | 89 |
| 87 DISALLOW_COPY_AND_ASSIGN(MockAutocompleteProviderClient); | 90 DISALLOW_COPY_AND_ASSIGN(MockAutocompleteProviderClient); |
| 88 }; | 91 }; |
| 89 | 92 |
| 90 #endif // COMPONENTS_OMNIBOX_AUTOCOMPLETE_PROVIDER_CLIENT_H_ | 93 #endif // COMPONENTS_OMNIBOX_AUTOCOMPLETE_PROVIDER_CLIENT_H_ |
| OLD | NEW |