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

Side by Side Diff: chrome/browser/ui/search/instant_test_utils.h

Issue 132733002: InstantExtended: remove dead code related to the non-cacheable NTP. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 11 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
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/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 48 matching lines...) Expand 10 before | Expand all | Expand 10 after
59 return browser_->window()->GetLocationBar()->GetOmniboxView(); 59 return browser_->window()->GetLocationBar()->GetOmniboxView();
60 } 60 }
61 61
62 const GURL& instant_url() const { return instant_url_; } 62 const GURL& instant_url() const { return instant_url_; }
63 63
64 net::SpawnedTestServer& https_test_server() { return https_test_server_; } 64 net::SpawnedTestServer& https_test_server() { return https_test_server_; }
65 65
66 void KillInstantRenderView(); 66 void KillInstantRenderView();
67 67
68 void FocusOmnibox(); 68 void FocusOmnibox();
69 void FocusOmniboxAndWaitForInstantNTPSupport();
70 69
71 void SetOmniboxText(const std::string& text); 70 void SetOmniboxText(const std::string& text);
72 71
73 void PressEnterAndWaitForNavigation(); 72 void PressEnterAndWaitForNavigation();
74 73
75 bool GetBoolFromJS(content::WebContents* contents, 74 bool GetBoolFromJS(content::WebContents* contents,
76 const std::string& script, 75 const std::string& script,
77 bool* result) WARN_UNUSED_RESULT; 76 bool* result) WARN_UNUSED_RESULT;
78 bool GetIntFromJS(content::WebContents* contents, 77 bool GetIntFromJS(content::WebContents* contents,
79 const std::string& script, 78 const std::string& script,
80 int* result) WARN_UNUSED_RESULT; 79 int* result) WARN_UNUSED_RESULT;
81 bool GetStringFromJS(content::WebContents* contents, 80 bool GetStringFromJS(content::WebContents* contents,
82 const std::string& script, 81 const std::string& script,
83 std::string* result) WARN_UNUSED_RESULT; 82 std::string* result) WARN_UNUSED_RESULT;
84 bool ExecuteScript(const std::string& script) WARN_UNUSED_RESULT;
85 bool CheckVisibilityIs(content::WebContents* contents, 83 bool CheckVisibilityIs(content::WebContents* contents,
86 bool expected) WARN_UNUSED_RESULT; 84 bool expected) WARN_UNUSED_RESULT;
87 85
88 std::string GetOmniboxText(); 86 std::string GetOmniboxText();
89 87
90 // Loads a named image from url |image| from the given |rvh| host. |loaded| 88 // Loads a named image from url |image| from the given |rvh| host. |loaded|
91 // returns whether the image was able to load without error. 89 // returns whether the image was able to load without error.
92 // The method returns true if the JavaScript executed cleanly. 90 // The method returns true if the JavaScript executed cleanly.
93 bool LoadImage(content::RenderViewHost* rvh, 91 bool LoadImage(content::RenderViewHost* rvh,
94 const std::string& image, 92 const std::string& image,
(...skipping 10 matching lines...) Expand all
105 // HTTPS Testing server, started on demand. 103 // HTTPS Testing server, started on demand.
106 net::SpawnedTestServer https_test_server_; 104 net::SpawnedTestServer https_test_server_;
107 105
108 // Set to true to initialize suggestions URL in default search provider. 106 // Set to true to initialize suggestions URL in default search provider.
109 bool init_suggestions_url_; 107 bool init_suggestions_url_;
110 108
111 DISALLOW_COPY_AND_ASSIGN(InstantTestBase); 109 DISALLOW_COPY_AND_ASSIGN(InstantTestBase);
112 }; 110 };
113 111
114 #endif // CHROME_BROWSER_UI_SEARCH_INSTANT_TEST_UTILS_H_ 112 #endif // CHROME_BROWSER_UI_SEARCH_INSTANT_TEST_UTILS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698