Mark Mentovai
a70edb3b7f
Add ServiceManagement*() and their tests.
...
TEST=util_test ServiceManagement
R=rsesek@chromium.org
Review URL: https://codereview.chromium.org/467923003
2014-08-15 22:30:24 -07:00
Mark Mentovai
d05166c26c
Add CheckedRange<> and its test.
...
TEST=util_test CheckedRange
R=rsesek@chromium.org
Review URL: https://codereview.chromium.org/467113002
2014-08-15 10:22:37 -07:00
Mark Mentovai
6997418cd4
Add InRangeCast<> and its test.
...
InRangeCast<> is similar to base::saturated_cast<>, but it allows the
caller to specify the value to be returned in the event that the source
value can’t be converted to the destination data type without data loss.
TEST=util_test InRangeCast
R=rsesek@chromium.org
Review URL: https://codereview.chromium.org/467103002
2014-08-14 16:00:44 -07:00
Mark Mentovai
01f9e396b8
Include <limits.h> in util/file/file_writer.cc because it uses IOV_MAX.
...
This also updates mini_chromium to abd6e3792f4f.
R=rsesek@chromium.org
Review URL: https://codereview.chromium.org/469093002
2014-08-14 09:58:31 -07:00
Mark Mentovai
5f554ff10e
Add ProcessArgumentsForPID() (process_util) and its test.
...
TEST=util_test ProcessUtil.ProcessArgumentsForPID
R=rsesek@chromium.org
Review URL: https://codereview.chromium.org/461253002
2014-08-14 09:57:19 -07: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
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