Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(2725)

Unified Diff: chrome/browser/search/search_test_utils.h

Issue 20388003: Reload Instant NTP and Instant-process tabs on search url change (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added ui and unit tests Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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_

Powered by Google App Engine
This is Rietveld 408576698