зеркало из https://github.com/mozilla/pjs.git
fix bugs that were preventing IPDL C++ unit tests from running on win32
This commit is contained in:
Родитель
1362779adb
Коммит
ca1a620edf
|
@ -37,7 +37,13 @@ IPDLUnitTestName()
|
|||
if (!gIPDLUnitTestName) {
|
||||
std::vector<std::wstring> args =
|
||||
CommandLine::ForCurrentProcess()->GetLooseValues();
|
||||
gIPDLUnitTestName = strdup(WideToUTF8(args[args.size()-1]).c_str());
|
||||
gIPDLUnitTestName = strdup(WideToUTF8(args[
|
||||
#ifndef OS_WIN
|
||||
args.size()-1
|
||||
#else
|
||||
args.size()-2
|
||||
#endif
|
||||
]).c_str());
|
||||
}
|
||||
return gIPDLUnitTestName;
|
||||
}
|
||||
|
|
|
@ -2,11 +2,11 @@
|
|||
#define mozilla__ipdltest_TestLatency_h 1
|
||||
|
||||
|
||||
#include "mozilla/TimeStamp.h"
|
||||
|
||||
#include "mozilla/_ipdltest/PTestLatencyParent.h"
|
||||
#include "mozilla/_ipdltest/PTestLatencyChild.h"
|
||||
|
||||
#include "mozilla/TimeStamp.h"
|
||||
|
||||
namespace mozilla {
|
||||
namespace _ipdltest {
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче