diff options
author | jcampan@google.com <jcampan@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-12 01:25:41 +0000 |
---|---|---|
committer | jcampan@google.com <jcampan@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2008-08-12 01:25:41 +0000 |
commit | d65cab7ac310ea12c5d946ff40242a243ce911da (patch) | |
tree | fe3eaa4a4e6f14a7416c4b4da351e18cd34d34b2 /chrome/test/testing_browser_process.h | |
parent | 1a48f315b0ca5c26c4446070edfb5842ed06c8c7 (diff) | |
download | chromium_src-d65cab7ac310ea12c5d946ff40242a243ce911da.zip chromium_src-d65cab7ac310ea12c5d946ff40242a243ce911da.tar.gz chromium_src-d65cab7ac310ea12c5d946ff40242a243ce911da.tar.bz2 |
Enabling sync_channel in the browser to allow accessibility code making blocking calls. This replaces my previous CL that was somehow duplicating some of these functionalities.
BUG=None
TEST=Run the unit tests.
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@691 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/testing_browser_process.h')
-rw-r--r-- | chrome/test/testing_browser_process.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/chrome/test/testing_browser_process.h b/chrome/test/testing_browser_process.h index 650aa5b..5048022 100644 --- a/chrome/test/testing_browser_process.h +++ b/chrome/test/testing_browser_process.h @@ -37,6 +37,7 @@ #include <string> +#include "base/shared_event.h" #include "base/string_util.h" #include "chrome/browser/browser_process.h" #include "chrome/common/notification_service.h" @@ -44,7 +45,9 @@ class TestingBrowserProcess : public BrowserProcess { public: - TestingBrowserProcess() {} + TestingBrowserProcess() { + shutdown_event_ = ::CreateEvent(NULL, TRUE, FALSE, NULL); + } virtual ~TestingBrowserProcess() { } @@ -145,8 +148,11 @@ class TestingBrowserProcess : public BrowserProcess { virtual bool IsUsingNewFrames() { return false; } + virtual HANDLE shutdown_event() { return shutdown_event_; } + private: NotificationService notification_service_; + HANDLE shutdown_event_; DISALLOW_EVIL_CONSTRUCTORS(TestingBrowserProcess); }; |