mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1227775 - Call mozilla::ipc::windows::InitUIThread() in RunGtestFunc(). r=benwa
This commit is contained in:
parent
d87868b210
commit
51d0604783
@ -75,4 +75,9 @@ if CONFIG['ENABLE_TESTS']:
|
||||
'gtest/include',
|
||||
]
|
||||
|
||||
if CONFIG['OS_ARCH'] == 'WINNT':
|
||||
LOCAL_INCLUDES += [
|
||||
'/security/sandbox/chromium',
|
||||
]
|
||||
|
||||
FINAL_LIBRARY = 'xul-gtest'
|
||||
|
@ -11,6 +11,9 @@
|
||||
#endif
|
||||
#include "testing/TestHarness.h"
|
||||
#include "prenv.h"
|
||||
#ifdef XP_WIN
|
||||
#include "mozilla/ipc/WindowsMessageLoop.h"
|
||||
#endif
|
||||
|
||||
using ::testing::EmptyTestEventListener;
|
||||
using ::testing::InitGoogleTest;
|
||||
@ -86,6 +89,9 @@ int RunGTestFunc()
|
||||
|
||||
ScopedXPCOM xpcom("GTest");
|
||||
|
||||
#ifdef XP_WIN
|
||||
mozilla::ipc::windows::InitUIThread();
|
||||
#endif
|
||||
#ifdef MOZ_CRASHREPORTER
|
||||
nsCOMPtr<nsICrashReporter> crashreporter;
|
||||
char *crashreporterStr = PR_GetEnv("MOZ_CRASHREPORTER");
|
||||
|
Loading…
Reference in New Issue
Block a user