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

Unified Diff: headless/test/headless_browser_test.h

Issue 1781193004: headless: Make it possible to configure an HTTP proxy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review comments. Created 4 years, 9 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/public/headless_web_contents.h ('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
index 9b5623495197854c9d83bae1d933184d13df89c2..f46fb90ba60c74f6867b391d9008f3da5d4bf88c 100644
--- a/headless/test/headless_browser_test.h
+++ b/headless/test/headless_browser_test.h
@@ -6,9 +6,10 @@
#define HEADLESS_TEST_HEADLESS_BROWSER_TEST_H_
#include "content/public/test/browser_test_base.h"
+#include "headless/public/headless_browser.h"
namespace headless {
-class HeadlessBrowser;
+class HeadlessWebContents;
// Base class for tests which require a full instance of the headless browser.
class HeadlessBrowserTest : public content::BrowserTestBase {
@@ -21,6 +22,15 @@ class HeadlessBrowserTest : public content::BrowserTestBase {
void SetUpOnMainThread() override;
void TearDownOnMainThread() override;
+ // Customize the options used in this test. Note that options which take
+ // effect before the message loop has been started (e.g., custom message
+ // pumps) cannot be set via this method.
+ void SetBrowserOptions(const HeadlessBrowser::Options& options);
+
+ // Navigate to |url| and wait for the document load to complete.
+ bool NavigateAndWaitForLoad(HeadlessWebContents* web_contents,
+ const GURL& url);
+
protected:
// Returns the browser for the test.
HeadlessBrowser* browser() const;
« no previous file with comments | « headless/public/headless_web_contents.h ('k') | headless/test/headless_browser_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698