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

Unified Diff: chromecast/shell/browser/test/chromecast_shell_browser_test.cc

Issue 518773003: Chromecast: end-to-end browser test based on content::BrowserTest. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cast-browser-process
Patch Set: teardown fixes Created 6 years, 3 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/shell/browser/test/chromecast_shell_browser_test.cc
diff --git a/chromecast/shell/browser/test/chromecast_shell_browser_test.cc b/chromecast/shell/browser/test/chromecast_shell_browser_test.cc
new file mode 100644
index 0000000000000000000000000000000000000000..a5d4a7cfc6f9f1c80c7dae09720740e471137809
--- /dev/null
+++ b/chromecast/shell/browser/test/chromecast_shell_browser_test.cc
@@ -0,0 +1,34 @@
+// Copyright 2014 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.
+
+#include "base/macros.h"
+#include "chromecast/shell/browser/test/chromecast_browser_test.h"
+#include "url/gurl.h"
+
+namespace chromecast {
+namespace shell {
+
+class ChromecastShellBrowserTest : public ChromecastBrowserTest {
+ public:
+ ChromecastShellBrowserTest() : url_("about:blank") {}
Paweł Hajdan Jr. 2014/09/09 12:24:31 nit: There is a constant for about:blank, please u
gunsch 2014/09/09 16:02:11 Done.
+
+ virtual void SetUpOnMainThread() OVERRIDE {
+ CreateBrowser();
+ NavigateToURL(web_contents(), url_);
+ }
+
+ private:
+ const GURL url_;
+
+ DISALLOW_COPY_AND_ASSIGN(ChromecastShellBrowserTest);
+};
+
+IN_PROC_BROWSER_TEST_F(ChromecastShellBrowserTest, EmptyTest) {
+ // Run an entire browser lifecycle to ensure nothing breaks.
+ // This test case can be removed once actual assertions are being tested.
Paweł Hajdan Jr. 2014/09/09 12:24:31 Please add a TODO to do this.
gunsch 2014/09/09 16:02:11 Done.
+ EXPECT_TRUE(true);
+}
+
+} // namespace shell
+} // namespace chromecast
« chromecast/chromecast.gyp ('K') | « chromecast/shell/browser/test/chromecast_browser_test_runner.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698