diff --git a/src/client/mac/Framework/Breakpad.mm b/src/client/mac/Framework/Breakpad.mm index 2d69542f..12b5f283 100644 --- a/src/client/mac/Framework/Breakpad.mm +++ b/src/client/mac/Framework/Breakpad.mm @@ -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; diff --git a/src/client/mac/tests/exception_handler_test.cc b/src/client/mac/tests/exception_handler_test.cc index f949a8b1..09237313 100644 --- a/src/client/mac/tests/exception_handler_test.cc +++ b/src/client/mac/tests/exception_handler_test.cc @@ -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 { diff --git a/src/common/mac/MachIPC.h b/src/common/mac/MachIPC.h index 4df85fcf..2213fc6b 100644 --- a/src/common/mac/MachIPC.h +++ b/src/common/mac/MachIPC.h @@ -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__ diff --git a/src/common/mac/MachIPC.mm b/src/common/mac/MachIPC.mm index 35952e7e..4f58c02d 100644 --- a/src/common/mac/MachIPC.mm +++ b/src/common/mac/MachIPC.mm @@ -33,6 +33,7 @@ #import #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