| OLD | NEW |
| 1 // Copyright 2014 The Crashpad Authors. All rights reserved. | 1 // Copyright 2014 The Crashpad Authors. All rights reserved. |
| 2 // | 2 // |
| 3 // Licensed under the Apache License, Version 2.0 (the "License"); | 3 // Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 // you may not use this file except in compliance with the License. | 4 // you may not use this file except in compliance with the License. |
| 5 // You may obtain a copy of the License at | 5 // You may obtain a copy of the License at |
| 6 // | 6 // |
| 7 // http://www.apache.org/licenses/LICENSE-2.0 | 7 // http://www.apache.org/licenses/LICENSE-2.0 |
| 8 // | 8 // |
| 9 // Unless required by applicable law or agreed to in writing, software | 9 // Unless required by applicable law or agreed to in writing, software |
| 10 // distributed under the License is distributed on an "AS IS" BASIS, | 10 // distributed under the License is distributed on an "AS IS" BASIS, |
| (...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 61 //! \brief Returns a send right for the remote port. | 61 //! \brief Returns a send right for the remote port. |
| 62 //! | 62 //! |
| 63 //! This method may be called by either the parent or the child process. It | 63 //! This method may be called by either the parent or the child process. It |
| 64 //! returns a send right, with the corresponding receive right held in the | 64 //! returns a send right, with the corresponding receive right held in the |
| 65 //! opposing process. | 65 //! opposing process. |
| 66 mach_port_t RemotePort() const; | 66 mach_port_t RemotePort() const; |
| 67 | 67 |
| 68 //! \brief Returns a send right for the child’s task port. | 68 //! \brief Returns a send right for the child’s task port. |
| 69 //! | 69 //! |
| 70 //! This method may only be called by the parent process. | 70 //! This method may only be called by the parent process. |
| 71 mach_port_t ChildTask() const; | 71 task_t ChildTask() const; |
| 72 | 72 |
| 73 private: | 73 private: |
| 74 // Multiprocess: | 74 // Multiprocess: |
| 75 | 75 |
| 76 //! \brief Runs the parent side of the test. | 76 //! \brief Runs the parent side of the test. |
| 77 //! | 77 //! |
| 78 //! This method establishes the parent’s environment and calls | 78 //! This method establishes the parent’s environment and calls |
| 79 //! MachMultiprocessParent(). | 79 //! MachMultiprocessParent(). |
| 80 //! | 80 //! |
| 81 //! Subclasses must override MachMultiprocessParent() instead of this method. | 81 //! Subclasses must override MachMultiprocessParent() instead of this method. |
| (...skipping 29 matching lines...) Expand all Loading... |
| 111 | 111 |
| 112 internal::MachMultiprocessInfo* info_; | 112 internal::MachMultiprocessInfo* info_; |
| 113 | 113 |
| 114 DISALLOW_COPY_AND_ASSIGN(MachMultiprocess); | 114 DISALLOW_COPY_AND_ASSIGN(MachMultiprocess); |
| 115 }; | 115 }; |
| 116 | 116 |
| 117 } // namespace test | 117 } // namespace test |
| 118 } // namespace crashpad | 118 } // namespace crashpad |
| 119 | 119 |
| 120 #endif // CRASHPAD_UTIL_TEST_MAC_MACH_MULTIPROCESS_H_ | 120 #endif // CRASHPAD_UTIL_TEST_MAC_MACH_MULTIPROCESS_H_ |
| OLD | NEW |