OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 #include "base/macros.h" | 5 #include "base/macros.h" |
6 #include "chromecast/browser/test/chromecast_browser_test.h" | 6 #include "chromecast/browser/test/chromecast_browser_test.h" |
7 #include "url/gurl.h" | 7 #include "url/gurl.h" |
8 #include "url/url_constants.h" | 8 #include "url/url_constants.h" |
9 | 9 |
10 namespace chromecast { | 10 namespace chromecast { |
11 namespace shell { | 11 namespace shell { |
12 | 12 |
13 class ChromecastShellBrowserTest : public ChromecastBrowserTest { | 13 class ChromecastShellBrowserTest : public ChromecastBrowserTest { |
14 public: | 14 public: |
15 ChromecastShellBrowserTest() : url_(url::kAboutBlankURL) {} | 15 ChromecastShellBrowserTest() : url_(url::kAboutBlankURL) {} |
16 | 16 |
17 virtual void SetUpOnMainThread() override { | 17 void SetUpOnMainThread() override { |
18 CreateBrowser(); | 18 CreateBrowser(); |
19 NavigateToURL(web_contents(), url_); | 19 NavigateToURL(web_contents(), url_); |
20 } | 20 } |
21 | 21 |
22 private: | 22 private: |
23 const GURL url_; | 23 const GURL url_; |
24 | 24 |
25 DISALLOW_COPY_AND_ASSIGN(ChromecastShellBrowserTest); | 25 DISALLOW_COPY_AND_ASSIGN(ChromecastShellBrowserTest); |
26 }; | 26 }; |
27 | 27 |
28 IN_PROC_BROWSER_TEST_F(ChromecastShellBrowserTest, EmptyTest) { | 28 IN_PROC_BROWSER_TEST_F(ChromecastShellBrowserTest, EmptyTest) { |
29 // Run an entire browser lifecycle to ensure nothing breaks. | 29 // Run an entire browser lifecycle to ensure nothing breaks. |
30 // TODO(gunsch): Remove this test case once there are actual assertions to | 30 // TODO(gunsch): Remove this test case once there are actual assertions to |
31 // test in a ChromecastBrowserTest instance. | 31 // test in a ChromecastBrowserTest instance. |
32 EXPECT_TRUE(true); | 32 EXPECT_TRUE(true); |
33 } | 33 } |
34 | 34 |
35 } // namespace shell | 35 } // namespace shell |
36 } // namespace chromecast | 36 } // namespace chromecast |
OLD | NEW |