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

Unified Diff: chrome/browser/ui/search/instant_test_utils.h

Issue 2669973003: Cleanup: Remove unused stuff from InstantTestUtils (Closed)
Patch Set: Created 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/ui/search/instant_test_utils.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/search/instant_test_utils.h
diff --git a/chrome/browser/ui/search/instant_test_utils.h b/chrome/browser/ui/search/instant_test_utils.h
index f18e29aa9195b98485351e7b8f7b60c20ee9b1fc..4c83d3734e730ade9207bb02c31b1c9d71c650e1 100644
--- a/chrome/browser/ui/search/instant_test_utils.h
+++ b/chrome/browser/ui/search/instant_test_utils.h
@@ -7,22 +7,15 @@
#include <string>
-#include "base/compiler_specific.h"
#include "base/macros.h"
-#include "base/metrics/field_trial.h"
-#include "base/run_loop.h"
-#include "base/strings/string16.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_instant_controller.h"
#include "chrome/browser/ui/browser_window.h"
#include "chrome/browser/ui/location_bar/location_bar.h"
#include "chrome/browser/ui/search/instant_controller.h"
-#include "chrome/common/search/search_types.h"
#include "net/test/embedded_test_server/embedded_test_server.h"
#include "url/gurl.h"
-class BrowserInstantController;
-class InstantController;
class OmniboxView;
namespace content {
@@ -41,20 +34,10 @@ class InstantTestBase {
void Init(const GURL& instant_url, const GURL& ntp_url,
bool init_suggestions_url);
- void SetInstantURL(const std::string& url);
-
void set_browser(Browser* browser) {
browser_ = browser;
}
- BrowserInstantController* browser_instant() {
- return browser_->instant_controller();
- }
-
- InstantController* instant() {
- return browser_->instant_controller()->instant();
- }
-
OmniboxView* omnibox() {
return browser_->window()->GetLocationBar()->GetOmniboxView();
}
@@ -65,8 +48,6 @@ class InstantTestBase {
net::EmbeddedTestServer& https_test_server() { return https_test_server_; }
- void KillInstantRenderView();
-
void FocusOmnibox();
void SetOmniboxText(const std::string& text);
@@ -83,8 +64,6 @@ class InstantTestBase {
bool GetStringFromJS(content::WebContents* contents,
const std::string& script,
std::string* result) WARN_UNUSED_RESULT;
- bool CheckVisibilityIs(content::WebContents* contents,
- bool expected) WARN_UNUSED_RESULT;
std::string GetOmniboxText();
@@ -95,9 +74,6 @@ class InstantTestBase {
const std::string& image,
bool* loaded);
- // Returns the omnibox's inline autocompletion (shown in blue highlight).
- base::string16 GetBlueText();
-
private:
GURL instant_url_;
GURL ntp_url_;
« no previous file with comments | « no previous file | chrome/browser/ui/search/instant_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698