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
7090b209ad
Use the gtest_main target for test executables.
...
There’s no need to build a separate copy of gtest_main.cc for each test
executable.
R=rsesek@chromium.org
Review URL: https://codereview.chromium.org/465363004
2014-08-13 15:28:59 -07:00
Mark Mentovai
293964f69b
Add CFPropertyToLaunchData() and its test.
...
TEST=util_test Launchd
R=rsesek@chromium.org
Review URL: https://codereview.chromium.org/438673003
2014-08-03 18:53:10 -04: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
9f6d86742d
Add TaskMemory, which can read another Mach task’s memory, and its test.
...
This also adds MachErrorMessage(), a test-only function that’s a
dependency of TaskMemory’s test, and related test-only error message
functions.
TEST=util_test TaskMemory.*
R=rsesek@chromium.org
Review URL: https://codereview.chromium.org/438993002
2014-08-03 18:48:40 -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
Mark Mentovai
6e720f1421
Fix StringFileWriter::Seek().
...
The final range check needs to check that the value fits in a size_t,
because that’s what StringFileWriter uses for its offset_.
TEST=util_test StringFileWriter.SeekInvalid
R=rsesek@chromium.org
Review URL: https://codereview.chromium.org/434103003
2014-08-01 13:30:27 -04:00
Mark Mentovai
995012534e
Introduce MinidumpWritable, its dependencies, and their tests.
...
MinidumpWritable is the base class for all minidump-writing operations.
R=rsesek@chromium.org
Review URL: https://codereview.chromium.org/432003005
2014-08-01 12:48:28 -04:00