summaryrefslogtreecommitdiffstats
path: root/chrome/common/main_function_params.h
diff options
context:
space:
mode:
authorsky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-30 00:40:43 +0000
committersky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2009-01-30 00:40:43 +0000
commitd4515eb94ad33ac2ab9bfd1094c8e1edd1eefa1b (patch)
treeadd4a98df5bcdbb3ca0e1f4471c77f453d52a1f4 /chrome/common/main_function_params.h
parent0815731ac884b41853725e51e26b0697449747b4 (diff)
downloadchromium_src-d4515eb94ad33ac2ab9bfd1094c8e1edd1eefa1b.zip
chromium_src-d4515eb94ad33ac2ab9bfd1094c8e1edd1eefa1b.tar.gz
chromium_src-d4515eb94ad33ac2ab9bfd1094c8e1edd1eefa1b.tar.bz2
Provides the ability to write a unit test that brings up a browser. As
a proof of concept I converted FindInPageControllerTest.FindInPageFrames over to this. See the description in InProcessBrowserTest for how it all works. BUG=none TEST=none Review URL: http://codereview.chromium.org/19644 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@8934 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/main_function_params.h')
-rw-r--r--chrome/common/main_function_params.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/chrome/common/main_function_params.h b/chrome/common/main_function_params.h
index e3a1c55..5537879 100644
--- a/chrome/common/main_function_params.h
+++ b/chrome/common/main_function_params.h
@@ -12,11 +12,16 @@
#include "base/command_line.h"
#include "chrome/common/sandbox_init_wrapper.h"
+class Task;
+
struct MainFunctionParams {
MainFunctionParams(const CommandLine& cl, const SandboxInitWrapper& sb)
- : command_line_(cl), sandbox_info_(sb) { }
+ : command_line_(cl), sandbox_info_(sb), ui_task(NULL) { }
const CommandLine& command_line_;
const SandboxInitWrapper& sandbox_info_;
+ // Used by InProcessBrowserTest. If non-null BrowserMain schedules this
+ // task to run on the MessageLoop and BrowserInit is not invoked.
+ Task* ui_task;
};
#endif // CHROME_COMMON_MAIN_FUNCTINON_PARAMS_H_