| 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 CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_FACTORY_TEST_UTIL_H_ | 5 #ifndef CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_FACTORY_TEST_UTIL_H_ |
| 6 #define CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_FACTORY_TEST_UTIL_H_ | 6 #define CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_FACTORY_TEST_UTIL_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/macros.h" |
| 11 | 11 |
| 12 class TemplateURLService; | 12 class TemplateURLService; |
| 13 class TestingProfile; | 13 class TestingProfile; |
| 14 | 14 |
| 15 // TemplateURLServiceFactoryTestUtil initializes TemplateURLServiceFactory to | 15 // TemplateURLServiceFactoryTestUtil initializes TemplateURLServiceFactory to |
| 16 // return a valid TemplateURLService instance for the given profile. | 16 // return a valid TemplateURLService instance for the given profile. |
| 17 class TemplateURLServiceFactoryTestUtil { | 17 class TemplateURLServiceFactoryTestUtil { |
| 18 public: | 18 public: |
| 19 explicit TemplateURLServiceFactoryTestUtil(TestingProfile* profile); | 19 explicit TemplateURLServiceFactoryTestUtil(TestingProfile* profile); |
| 20 virtual ~TemplateURLServiceFactoryTestUtil(); | 20 virtual ~TemplateURLServiceFactoryTestUtil(); |
| (...skipping 22 matching lines...) Expand all Loading... |
| 43 // Returns the TemplateURLService. | 43 // Returns the TemplateURLService. |
| 44 TemplateURLService* model() const; | 44 TemplateURLService* model() const; |
| 45 | 45 |
| 46 private: | 46 private: |
| 47 TestingProfile* profile_; | 47 TestingProfile* profile_; |
| 48 | 48 |
| 49 DISALLOW_COPY_AND_ASSIGN(TemplateURLServiceFactoryTestUtil); | 49 DISALLOW_COPY_AND_ASSIGN(TemplateURLServiceFactoryTestUtil); |
| 50 }; | 50 }; |
| 51 | 51 |
| 52 #endif // CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_FACTORY_TEST_UTIL_
H_ | 52 #endif // CHROME_BROWSER_SEARCH_ENGINES_TEMPLATE_URL_SERVICE_FACTORY_TEST_UTIL_
H_ |
| OLD | NEW |