History log of /external/google-breakpad/src/common/tests/file_utils.h
Revision Date Author Comments (<<< Hide modified files) (Show modified files >>>)
9ddff1f4ef5afc9399ac35b10427fbe1c26ac06f 01-Feb-2012 Ben Chan <benchan@chromium.org> Modify CrashGenerator::CreateChildCrash to copy proc files.

LinuxCoreDumperTest previously assumes the proc files of the child
process created by CrashGenerator::CreateChildCrash() have the same
content as its parent process, which may not be true. This CL modifies
CrashGenerator to copy the proc files of the child process, created by
CreateChildCrash(), before crashing that process.

BUG=chromium-os:25252
TEST=Verified the following:
1. emerge google-breadpad for x86-generic, arm-generic and amd64-generic
2. cros_run_unit_tests --board=x86-generic -p google-breakpad

Change-Id: Ie804366ad28c409309d79d1c607ee7e8e4868ef5
Reviewed-on: https://gerrit.chromium.org/gerrit/15148
Reviewed-by: Michael Krebs <mkrebs@chromium.org>
Commit-Ready: Ben Chan <benchan@chromium.org>
Tested-by: Ben Chan <benchan@chromium.org>
/external/google-breakpad/src/common/tests/file_utils.h
86cbb1e5cc967853dfc2b10f8fc8da43fc734c77 07-Jan-2012 benchan@chromium.org <benchan@chromium.org@4c0a9323-5329-0410-9bdc-e9ce6186880e> Add utilities for processing Linux core dump files.

This patch is part of a bigger patch that helps merging the breakpad code
with the modified version in Chromium OS.

Specifically, this patch makes the following changes:
1. Add an ElfCoreDump class for processing Linux core dump files, which will
later be used to implement the core dump to minidump conversion.
2. Add a CrashGenerator class for generating a crash with a core dump file
for testing the functionalities of ElfCoreDump.
3. Move some utility functions for reading/writing files to file_utils.h.

BUG=455
TEST=Tested the following:
1. Build on 32-bit and 64-bit Linux with gcc 4.4.3 and gcc 4.6.
2. Build on Mac OS X 10.6.8 with gcc 4.2 and clang 3.0 (with latest gmock).
3. All unit tests pass.
Review URL: http://breakpad.appspot.com/337001

git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@900 4c0a9323-5329-0410-9bdc-e9ce6186880e
/external/google-breakpad/src/common/tests/file_utils.h