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

Side by Side Diff: chromecast/browser/test/chromecast_browser_test.h

Issue 2502143002: Revert of [chromecast] Make testnames consistent. (Closed)
Patch Set: Created 4 years, 1 month 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 unified diff | Download patch
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROMECAST_BROWSER_TEST_CHROMECAST_BROWSER_TEST_H_
6 #define CHROMECAST_BROWSER_TEST_CHROMECAST_BROWSER_TEST_H_
7
8 #include <memory>
9
10 #include "base/macros.h"
11 #include "content/public/test/browser_test.h"
12 #include "content/public/test/browser_test_base.h"
13
14 namespace content {
15 class WebContents;
16 }
17
18 namespace chromecast {
19 namespace shell {
20
21 class CastContentWindow;
22
23 // This test allows for running an entire browser-process lifecycle per unit
24 // test, using Chromecast's cast_shell. This starts up the shell, runs a test
25 // case, then shuts down the entire shell.
26 // Note that this process takes 7-10 seconds per test case on Chromecast, so
27 // fewer test cases with more assertions are preferable.
28 class ChromecastBrowserTest : public content::BrowserTestBase {
29 protected:
30 ChromecastBrowserTest();
31 ~ChromecastBrowserTest() override;
32
33 // content::BrowserTestBase implementation:
34 void SetUp() override;
35 void TearDownOnMainThread() override;
36 void RunTestOnMainThreadLoop() override;
37
38 content::WebContents* NavigateToURL(const GURL& url);
39
40 private:
41 std::unique_ptr<CastContentWindow> window_;
42 std::unique_ptr<content::WebContents> web_contents_;
43
44 DISALLOW_COPY_AND_ASSIGN(ChromecastBrowserTest);
45 };
46
47 } // namespace shell
48 } // namespace chromecast
49
50 #endif // CHROMECAST_BROWSER_TEST_CHROMECAST_BROWSER_TEST_H_
OLDNEW
« no previous file with comments | « chromecast/browser/test/cast_test_launcher.cc ('k') | chromecast/browser/test/chromecast_browser_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698