Mark Mentovai
8decf86db8
Add, test, and use clock utilities.
...
This includes ClockMonotonicNanoseconds() and SleepNanoseconds().
SleepNanoseconds() is like base::PlatformThread::Sleep(), but
PlatformThread is not in mini_chromium and I’m not keen on adding it
because I’m not sold on the interface. I’m not convinced Sleep() belongs
there, and I don’t want to have to bring all of base::Time* along for
the ride.
TEST=util_test Clock.*:MachMessageServer.*:ServiceManagement.*
R=rsesek@chromium.org
Review URL: https://codereview.chromium.org/597533002
2014-09-24 14:08:48 -04:00
Mark Mentovai
a01c87059b
Add symbolic_constants_posix and its test.
...
This includes the functions SignalToString() and StringToSignal().
TEST=util_test SymbolicConstantsPOSIX.*
R=rsesek@chromium.org
Review URL: https://codereview.chromium.org/565453002
2014-09-10 17:30:21 -04:00
Mark Mentovai
35865a00d5
Fix problems discovered with gcc 4.9.1.
...
BUG=
R=rsesek@chromium.org
Review URL: https://codereview.chromium.org/538233002
2014-09-05 12:39:09 -04:00
Mark Mentovai
4f74716f6d
Add MachOImageReader and its test, which also tests
...
MachOImageSegmentReader.
TEST=util_test MachOImageReader.*
R=rsesek@chromium.org
Review URL: https://codereview.chromium.org/535343004
2014-09-04 11:45:40 -04:00
Mark Mentovai
0cc86a24f9
Add ScopedForbidReturn and its test.
...
Use ScopedForbidReturn in ProcessReader::InitializeThreads().
TEST=util_test ScopedForbidReturn*.*
R=rsesek@chromium.org
Review URL: https://codereview.chromium.org/493203005
2014-08-26 16:50:08 -04:00
Mark Mentovai
21af173940
Add InitializationStateDcheck, its base class, and their tests.
...
TEST=util_test InitializationState*
R=rsesek@chromium.org
Review URL: https://codereview.chromium.org/465103002
2014-08-14 09:51:26 -07:00
Mark Mentovai
4ae57690fa
Put back the standard-layout checks lost in 5bbb7e8abbe0.
...
TEST=util_test UUID.UUID
R=rsesek@chromium.org
Review URL: https://codereview.chromium.org/440603002
2014-08-03 18:50:09 -04:00
Mark Mentovai
5bbb7e8abb
Fix the UUID structure to have distinct fields, as expected by
...
Breakpad’s minidump reader.
TEST=util_test UUID.UUID
R=rsesek@chromium.org
Review URL: https://codereview.chromium.org/436933002
2014-08-01 16:10:58 -04:00
Mark Mentovai
4d6b867a1f
Add UUID, c16lcpy (strlcpy for char16*), and their tests to util.
...
These are dependencies of the upcoming MinidumpStringWriter.
R=rsesek@chromium.org
Review URL: https://codereview.chromium.org/430003003
2014-08-01 14:39:55 -04:00