Put MachIPC into the google_breakpad namespace

R=mark at http://breakpad.appspot.com/151001/show

git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@650 4c0a9323-5329-0410-9bdc-e9ce6186880e
This commit is contained in:
ted.mielczarek@gmail.com 2010-08-16 16:44:47 +00:00
parent f5c8f6fb61
commit a599ae80aa
4 changed files with 14 additions and 0 deletions

View File

@ -55,6 +55,10 @@
using google_breakpad::KeyValueEntry;
using google_breakpad::MachPortSender;
using google_breakpad::MachReceiveMessage;
using google_breakpad::MachSendMessage;
using google_breakpad::ReceivePort;
using google_breakpad::SimpleStringDictionary;
using google_breakpad::SimpleStringDictionaryIterator;

View File

@ -41,6 +41,10 @@ namespace {
using std::string;
using google_breakpad::AutoTempDir;
using google_breakpad::ExceptionHandler;
using google_breakpad::MachPortSender;
using google_breakpad::MachReceiveMessage;
using google_breakpad::MachSendMessage;
using google_breakpad::ReceivePort;
using testing::Test;
class ExceptionHandlerTest : public Test {

View File

@ -94,6 +94,7 @@
// kern_return_t result = sender.SendMessage(message, 1000); // timeout 1000ms
//
namespace google_breakpad {
#define PRINT_MACH_RESULT(result_, message_) \
printf(message_" %s (%d)\n", mach_error_string(result_), result_ );
@ -301,4 +302,6 @@ class MachPortSender {
kern_return_t init_result_;
};
} // namespace google_breakpad
#endif // MACH_IPC_H__

View File

@ -33,6 +33,7 @@
#import <stdio.h>
#import "MachIPC.h"
namespace google_breakpad {
//==============================================================================
MachSendMessage::MachSendMessage(int32_t message_id) : MachMessage() {
head.msgh_bits = MACH_MSGH_BITS(MACH_MSG_TYPE_COPY_SEND, 0);
@ -299,3 +300,5 @@ kern_return_t MachPortSender::SendMessage(MachSendMessage &message,
return result;
}
} // namespace google_breakpad