Index: content/public/test/browser_test_base.h |
=================================================================== |
--- content/public/test/browser_test_base.h (revision 195684) |
+++ content/public/test/browser_test_base.h (working copy) |
@@ -5,9 +5,10 @@ |
#ifndef CONTENT_PUBLIC_TEST_BROWSER_TEST_BASE_H_ |
#define CONTENT_PUBLIC_TEST_BROWSER_TEST_BASE_H_ |
+#include "base/callback.h" |
#include "base/compiler_specific.h" |
+#include "net/test/test_server.h" |
#include "testing/gtest/include/gtest/gtest.h" |
-#include "net/test/test_server.h" |
class CommandLine; |
@@ -82,6 +83,11 @@ |
// server. |
void CreateTestServer(const base::FilePath& test_server_base); |
+ // When the test is running in --single-process mode, runs the given task on |
+ // the in-process renderer thread. A nested message loop is run until it |
+ // returns. |
+ void PostTaskToInProcessRendererAndWait(const base::Closure& task); |
+ |
private: |
void ProxyRunTestOnMainThreadLoop(); |