mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Merge revision 448 and 453 changes:
- Add support for running unit tests without multi-threaded message loop mode (issue #338). - Mac: Fix unit test expectations. - Mac: cef_time_t.day_of_week is not supported. - Mac: Add support for building the 'Run cef_unittests' target from the command line. git-svn-id: https://chromiumembedded.googlecode.com/svn/branches/963@455 5089003a-bbd8-11dd-ad1f-f1f9622dbc98
This commit is contained in:
@@ -18,7 +18,8 @@ void NotifyEvent(base::WaitableEvent* event)
|
||||
// TestHandler
|
||||
|
||||
TestHandler::TestHandler()
|
||||
: browser_hwnd_(NULL), completion_event_(true, false)
|
||||
: browser_hwnd_(NULL),
|
||||
completion_event_(true, false)
|
||||
{
|
||||
}
|
||||
|
||||
@@ -88,12 +89,9 @@ void TestHandler::ExecuteTest()
|
||||
|
||||
void TestHandler::DestroyTest()
|
||||
{
|
||||
Lock();
|
||||
#if defined(OS_WIN)
|
||||
AutoLock lock_scope(this);
|
||||
if(browser_hwnd_ != NULL)
|
||||
PostMessage(browser_hwnd_, WM_CLOSE, 0, 0);
|
||||
#endif
|
||||
Unlock();
|
||||
browser_->CloseBrowser();
|
||||
}
|
||||
|
||||
void TestHandler::CreateBrowser(const CefString& url)
|
||||
|
Reference in New Issue
Block a user