From d65cab7ac310ea12c5d946ff40242a243ce911da Mon Sep 17 00:00:00 2001 From: "jcampan@google.com" Date: Tue, 12 Aug 2008 01:25:41 +0000 Subject: 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 --- chrome/test/testing_browser_process.h | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'chrome/test') 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 +#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); }; -- cgit v1.1