mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-11-24 05:11:16 +00:00
Bug 1227775 - Call mozilla::ipc::windows::InitUIThread() in RunGtestFunc(). r=benwa
This commit is contained in:
parent
1badb94490
commit
c9a6b8d6a4
@ -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