Index: chrome/browser/search/search_test_utils.h |
diff --git a/chrome/browser/search/search_test_utils.h b/chrome/browser/search/search_test_utils.h |
new file mode 100644 |
index 0000000000000000000000000000000000000000..9029991616472a20eeec5dbf57aebc32340f9476 |
--- /dev/null |
+++ b/chrome/browser/search/search_test_utils.h |
@@ -0,0 +1,21 @@ |
+// Copyright (c) 2013 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CHROME_BROWSER_SEARCH_SEARCH_TEST_UTILS_H_ |
+#define CHROME_BROWSER_SEARCH_SEARCH_TEST_UTILS_H_ |
+ |
+class Profile; |
+ |
+namespace search_test_utils { |
+ |
+void SetSearchProvider(Profile* profile); |
+ |
+// Build an Instant URL with or without a valid search terms replacement key |
+// as per |has_search_term_replacement_key|. Set that URL as the instant URL |
+// for the default search provider. |
+void SetDefaultInstantTemplateUrl(Profile* profile, |
+ bool has_search_term_replacement_key); |
+} // namespace search_test_utils |
+ |
+#endif // CHROME_BROWSER_SEARCH_SEARCH_TEST_UTILS_H_ |