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

Unified Diff: headless/test/headless_browser_test.h

Issue 1674263002: headless: Initial headless embedder API implementation (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fine, no console logging Mr. Presubmit. Created 4 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
« no previous file with comments | « headless/test/data/hello.html ('k') | headless/test/headless_browser_test.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: headless/test/headless_browser_test.h
diff --git a/headless/test/headless_browser_test.h b/headless/test/headless_browser_test.h
new file mode 100644
index 0000000000000000000000000000000000000000..9b5623495197854c9d83bae1d933184d13df89c2
--- /dev/null
+++ b/headless/test/headless_browser_test.h
@@ -0,0 +1,34 @@
+// Copyright 2016 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.
+
+#ifndef HEADLESS_TEST_HEADLESS_BROWSER_TEST_H_
+#define HEADLESS_TEST_HEADLESS_BROWSER_TEST_H_
+
+#include "content/public/test/browser_test_base.h"
+
+namespace headless {
+class HeadlessBrowser;
+
+// Base class for tests which require a full instance of the headless browser.
+class HeadlessBrowserTest : public content::BrowserTestBase {
+ protected:
+ HeadlessBrowserTest();
+ ~HeadlessBrowserTest() override;
+
+ // BrowserTestBase:
+ void RunTestOnMainThreadLoop() override;
+ void SetUpOnMainThread() override;
+ void TearDownOnMainThread() override;
+
+ protected:
+ // Returns the browser for the test.
+ HeadlessBrowser* browser() const;
+
+ private:
+ DISALLOW_COPY_AND_ASSIGN(HeadlessBrowserTest);
+};
+
+} // namespace headless
+
+#endif // HEADLESS_TEST_HEADLESS_BROWSER_TEST_H_
« no previous file with comments | « headless/test/data/hello.html ('k') | headless/test/headless_browser_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698