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

Unified Diff: chromecast/browser/test/cast_browser_test.cc

Issue 2570623003: [Chromecast] Turn CastContentWindow into an abstract interface. (Closed)
Patch Set: Remove duplicate dependency 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
Index: chromecast/browser/test/cast_browser_test.cc
diff --git a/chromecast/browser/test/cast_browser_test.cc b/chromecast/browser/test/cast_browser_test.cc
index 7d950e7d5dd2c1942736502feeff075cd1ed5314..463111d3f1dae0c16f22e3af101051bfaec46b49 100644
--- a/chromecast/browser/test/cast_browser_test.cc
+++ b/chromecast/browser/test/cast_browser_test.cc
@@ -60,11 +60,11 @@ void CastBrowserTest::RunTestOnMainThreadLoop() {
}
content::WebContents* CastBrowserTest::NavigateToURL(const GURL& url) {
- window_ = base::MakeUnique<CastContentWindow>();
+ window_ = CastContentWindow::Create(this);
web_contents_ = window_->CreateWebContents(
CastBrowserProcess::GetInstance()->browser_context());
- window_->CreateWindowTree(web_contents_.get());
+ window_->ShowWebContents(web_contents_.get());
content::WaitForLoadStop(web_contents_.get());
content::TestNavigationObserver same_tab_observer(web_contents_.get(), 1);
@@ -77,5 +77,9 @@ content::WebContents* CastBrowserTest::NavigateToURL(const GURL& url) {
return web_contents_.get();
}
+void CastBrowserTest::OnWindowDestroyed() {}
+
+void CastBrowserTest::OnKeyDown(ui::KeyboardCode keycode) {}
+
} // namespace shell
} // namespace chromecast

Powered by Google App Engine
This is Rietveld 408576698