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

Unified Diff: content/test/layout_browsertest.h

Issue 9959028: Convert the media and audio UI test to a browser_test. browser_tests are sharded and run quicker, a… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync before bad v8 roll and fix failing test Created 8 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
Index: content/test/layout_browsertest.h
===================================================================
--- content/test/layout_browsertest.h (revision 129871)
+++ content/test/layout_browsertest.h (working copy)
@@ -34,6 +34,8 @@
void AddResourceForLayoutTest(const FilePath& parent_dir,
const FilePath& resource_name);
+ void set_wait_until_done(bool value) { wait_until_done_ = value; }
+
private:
void RunLayoutTestInternal(const std::string& test_case_file_name,
const GURL& url);
@@ -49,6 +51,9 @@
FilePath rebase_result_win_dir_;
ScopedTempDir scoped_temp_dir_;
int port_; // -2 means no port. -1 means random.
+ // By default, tests will wait until layoutTestController.notifyDone() is
+ // called.
+ bool wait_until_done_;
scoped_ptr<LayoutTestHttpServer> test_http_server_;
DISALLOW_COPY_AND_ASSIGN(InProcessBrowserLayoutTest);

Powered by Google App Engine
This is Rietveld 408576698