Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(18)

Side by Side Diff: third_party/crashpad/crashpad/test/win/child_launcher.h

Issue 2833533003: Update Crashpad to f487da4ff2c47a129e2f8f3a7e0c769b54e4585f (Closed)
Patch Set: Created 3 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2015 The Crashpad Authors. All rights reserved. 1 // Copyright 2015 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 21 matching lines...) Expand all
32 public: 32 public:
33 //! \brief Creates the object. \a executable will be escaped and prepended to 33 //! \brief Creates the object. \a executable will be escaped and prepended to
34 //! \a command_line to build the command line of the child. 34 //! \a command_line to build the command line of the child.
35 ChildLauncher(const std::wstring& executable, 35 ChildLauncher(const std::wstring& executable,
36 const std::wstring& command_line); 36 const std::wstring& command_line);
37 37
38 ~ChildLauncher(); 38 ~ChildLauncher();
39 39
40 //! \brief Starts the child process, after which the handle functions below 40 //! \brief Starts the child process, after which the handle functions below
41 //! will be valid. 41 //! will be valid.
42 //!
43 //! Errors are signaled via gtest assertions. This method may be invoked via
44 //! `ASSERT_NO_FATAL_FAILURE()` to assert that it succeeds.
42 void Start(); 45 void Start();
43 46
44 //! \brief Waits for the child process to exit. 47 //! \brief Waits for the child process to exit.
45 //! 48 //!
46 //! \return The process exit code. 49 //! \return The process exit code.
47 DWORD WaitForExit(); 50 DWORD WaitForExit();
48 51
49 //! \brief The child process's `HANDLE`. 52 //! \brief The child process's `HANDLE`.
50 HANDLE process_handle() const { return process_handle_.get(); } 53 HANDLE process_handle() const { return process_handle_.get(); }
51 54
(...skipping 12 matching lines...) Expand all
64 ScopedKernelHANDLE process_handle_; 67 ScopedKernelHANDLE process_handle_;
65 ScopedKernelHANDLE main_thread_handle_; 68 ScopedKernelHANDLE main_thread_handle_;
66 ScopedFileHANDLE stdout_read_handle_; 69 ScopedFileHANDLE stdout_read_handle_;
67 ScopedFileHANDLE stdin_write_handle_; 70 ScopedFileHANDLE stdin_write_handle_;
68 }; 71 };
69 72
70 } // namespace test 73 } // namespace test
71 } // namespace crashpad 74 } // namespace crashpad
72 75
73 #endif // CRASHPAD_TEST_WIN_CHILD_LAUNCHER_H_ 76 #endif // CRASHPAD_TEST_WIN_CHILD_LAUNCHER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698