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

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

Issue 2626863006: [Chromecast] Add CastWebContents (Closed)
Patch Set: Long overdue rebase Created 3 years, 10 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.h
diff --git a/chromecast/browser/test/cast_browser_test.h b/chromecast/browser/test/cast_browser_test.h
index 63acd6b4183410e35755bd825f4ff89b019abf51..5c94dd3beda201e7bccbd1bc7435ab1807e10a29 100644
--- a/chromecast/browser/test/cast_browser_test.h
+++ b/chromecast/browser/test/cast_browser_test.h
@@ -8,7 +8,7 @@
#include <memory>
#include "base/macros.h"
-#include "chromecast/browser/cast_content_window.h"
+#include "chromecast/browser/cast_web_view.h"
#include "content/public/test/browser_test.h"
#include "content/public/test/browser_test_base.h"
@@ -24,8 +24,7 @@ namespace shell {
// case, then shuts down the entire shell.
// Note that this process takes 7-10 seconds per test case on Chromecast, so
// fewer test cases with more assertions are preferable.
-class CastBrowserTest : public content::BrowserTestBase,
- CastContentWindow::Delegate {
+class CastBrowserTest : public content::BrowserTestBase, CastWebView::Delegate {
protected:
CastBrowserTest();
~CastBrowserTest() override;
@@ -39,12 +38,13 @@ class CastBrowserTest : public content::BrowserTestBase,
content::WebContents* NavigateToURL(const GURL& url);
private:
- // CastContentWindow::Delegate implementation:
+ // CastWebView::Delegate implementation:
+ void OnPageStopped(int error_code) override;
+ void OnLoadingStateChanged(bool loading) override;
void OnWindowDestroyed() override;
void OnKeyEvent(const ui::KeyEvent& key_event) override;
- std::unique_ptr<CastContentWindow> window_;
- std::unique_ptr<content::WebContents> web_contents_;
+ std::unique_ptr<CastWebView> cast_web_view_;
DISALLOW_COPY_AND_ASSIGN(CastBrowserTest);
};

Powered by Google App Engine
This is Rietveld 408576698