Fix compile by adding needed includes.

Review URL: http://breakpad.appspot.com/253001

git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@753 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
thestig@chromium.org 2011-01-12 00:14:27 +00:00
parent 78aaf6a665
commit 972ae49d47

View File

@ -1,4 +1,4 @@
// Copyright (c) 2010 Google Inc. // Copyright (c) 2011 Google Inc.
// All rights reserved. // All rights reserved.
// //
// Redistribution and use in source and binary forms, with or without // Redistribution and use in source and binary forms, with or without
@ -27,10 +27,14 @@
// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE // (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
// OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. // OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#include <unistd.h> #include <fcntl.h>
#include <sys/poll.h> #include <sys/poll.h>
#include <sys/stat.h> #include <sys/stat.h>
#include <sys/syscall.h> #include <sys/syscall.h>
#include <sys/types.h>
#include <unistd.h>
#include <string>
#include "breakpad_googletest_includes.h" #include "breakpad_googletest_includes.h"
#include "client/linux/handler/exception_handler.h" #include "client/linux/handler/exception_handler.h"
@ -259,7 +263,8 @@ TEST(MinidumpWriterTest, MappingInfoContained) {
mapping.first = info; mapping.first = info;
memcpy(mapping.second, kModuleGUID, sizeof(MDGUID)); memcpy(mapping.second, kModuleGUID, sizeof(MDGUID));
mappings.push_back(mapping); mappings.push_back(mapping);
ASSERT_TRUE(WriteMinidump(dumpfile, child, &context, sizeof(context), mappings)); ASSERT_TRUE(
WriteMinidump(dumpfile, child, &context, sizeof(context), mappings));
// Read the minidump. Load the module list, and ensure that // Read the minidump. Load the module list, and ensure that
// the mmap'ed |memory| is listed with the given module name // the mmap'ed |memory| is listed with the given module name