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_UI_SEARCH_INSTANT_TEST_UTILS_H_ | 5 #ifndef CHROME_BROWSER_UI_SEARCH_INSTANT_TEST_UTILS_H_ |
6 #define CHROME_BROWSER_UI_SEARCH_INSTANT_TEST_UTILS_H_ | 6 #define CHROME_BROWSER_UI_SEARCH_INSTANT_TEST_UTILS_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 | 9 |
10 #include "base/compiler_specific.h" | 10 #include "base/compiler_specific.h" |
11 #include "base/macros.h" | 11 #include "base/macros.h" |
12 #include "base/metrics/field_trial.h" | 12 #include "base/metrics/field_trial.h" |
13 #include "base/run_loop.h" | 13 #include "base/run_loop.h" |
14 #include "base/strings/string16.h" | 14 #include "base/strings/string16.h" |
15 #include "chrome/browser/ui/browser.h" | 15 #include "chrome/browser/ui/browser.h" |
16 #include "chrome/browser/ui/browser_instant_controller.h" | 16 #include "chrome/browser/ui/browser_instant_controller.h" |
17 #include "chrome/browser/ui/browser_window.h" | 17 #include "chrome/browser/ui/browser_window.h" |
18 #include "chrome/browser/ui/location_bar/location_bar.h" | 18 #include "chrome/browser/ui/location_bar/location_bar.h" |
19 #include "chrome/browser/ui/search/instant_controller.h" | 19 #include "chrome/browser/ui/search/instant_controller.h" |
20 #include "chrome/common/search/search_types.h" | 20 #include "chrome/common/search/search_types.h" |
21 #include "net/test/embedded_test_server/embedded_test_server.h" | 21 #include "net/test/embedded_test_server/embedded_test_server.h" |
22 #include "url/gurl.h" | 22 #include "url/gurl.h" |
23 | 23 |
24 class BrowserInstantController; | 24 class BrowserInstantController; |
25 class InstantController; | 25 class InstantController; |
26 class InstantModel; | |
27 class OmniboxView; | 26 class OmniboxView; |
28 | 27 |
29 namespace content { | 28 namespace content { |
30 class WebContents; | 29 class WebContents; |
31 }; | 30 }; |
32 | 31 |
33 // This utility class is meant to be used in a "mix-in" fashion, giving the | 32 // This utility class is meant to be used in a "mix-in" fashion, giving the |
34 // derived test class additional Instant-related functionality. | 33 // derived test class additional Instant-related functionality. |
35 class InstantTestBase { | 34 class InstantTestBase { |
36 protected: | 35 protected: |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
108 // HTTPS Testing server, started on demand. | 107 // HTTPS Testing server, started on demand. |
109 net::EmbeddedTestServer https_test_server_; | 108 net::EmbeddedTestServer https_test_server_; |
110 | 109 |
111 // Set to true to initialize suggestions URL in default search provider. | 110 // Set to true to initialize suggestions URL in default search provider. |
112 bool init_suggestions_url_; | 111 bool init_suggestions_url_; |
113 | 112 |
114 DISALLOW_COPY_AND_ASSIGN(InstantTestBase); | 113 DISALLOW_COPY_AND_ASSIGN(InstantTestBase); |
115 }; | 114 }; |
116 | 115 |
117 #endif // CHROME_BROWSER_UI_SEARCH_INSTANT_TEST_UTILS_H_ | 116 #endif // CHROME_BROWSER_UI_SEARCH_INSTANT_TEST_UTILS_H_ |
OLD | NEW |