| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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_INSTANT_UNITTEST_BASE_H_ | 5 #ifndef CHROME_BROWSER_SEARCH_INSTANT_UNITTEST_BASE_H_ |
| 6 #define CHROME_BROWSER_SEARCH_INSTANT_UNITTEST_BASE_H_ | 6 #define CHROME_BROWSER_SEARCH_INSTANT_UNITTEST_BASE_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/metrics/field_trial.h" | 10 #include "base/metrics/field_trial.h" |
| 11 #include "build/build_config.h" |
| 11 #include "chrome/browser/search/instant_service.h" | 12 #include "chrome/browser/search/instant_service.h" |
| 12 #include "chrome/test/base/browser_with_test_window_test.h" | 13 #include "chrome/test/base/browser_with_test_window_test.h" |
| 13 #include "components/search_engines/template_url_service.h" | 14 #include "components/search_engines/template_url_service.h" |
| 14 | 15 |
| 15 class InstantServiceObserver; | 16 class InstantServiceObserver; |
| 16 | 17 |
| 17 // This class provides an extension on top of BrowserWithTestWindowTest, and | 18 // This class provides an extension on top of BrowserWithTestWindowTest, and |
| 18 // adds some utility methods which can be useful for various unit tests for | 19 // adds some utility methods which can be useful for various unit tests for |
| 19 // Embedded Search / Instant implementation classes. | 20 // Embedded Search / Instant implementation classes. |
| 20 class InstantUnitTestBase : public BrowserWithTestWindowTest { | 21 class InstantUnitTestBase : public BrowserWithTestWindowTest { |
| (...skipping 28 matching lines...) Expand all Loading... |
| 49 scoped_ptr<base::FieldTrialList> field_trial_list_; | 50 scoped_ptr<base::FieldTrialList> field_trial_list_; |
| 50 | 51 |
| 51 private: | 52 private: |
| 52 // BrowserWithTestWindowTest override: | 53 // BrowserWithTestWindowTest override: |
| 53 TestingProfile* CreateProfile() override; | 54 TestingProfile* CreateProfile() override; |
| 54 | 55 |
| 55 void SetUpHelper(); | 56 void SetUpHelper(); |
| 56 }; | 57 }; |
| 57 | 58 |
| 58 #endif // CHROME_BROWSER_SEARCH_INSTANT_UNITTEST_BASE_H_ | 59 #endif // CHROME_BROWSER_SEARCH_INSTANT_UNITTEST_BASE_H_ |
| OLD | NEW |