diff options
author | sky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-30 00:40:43 +0000 |
---|---|---|
committer | sky@google.com <sky@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2009-01-30 00:40:43 +0000 |
commit | d4515eb94ad33ac2ab9bfd1094c8e1edd1eefa1b (patch) | |
tree | add4a98df5bcdbb3ca0e1f4471c77f453d52a1f4 /chrome/common/main_function_params.h | |
parent | 0815731ac884b41853725e51e26b0697449747b4 (diff) | |
download | chromium_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.h | 7 |
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_ |