OLD | NEW |
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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
57 class TestDelegate : public ExceptionHandlerServer::Delegate { | 57 class TestDelegate : public ExceptionHandlerServer::Delegate { |
58 public: | 58 public: |
59 explicit TestDelegate(HANDLE server_ready) : server_ready_(server_ready) {} | 59 explicit TestDelegate(HANDLE server_ready) : server_ready_(server_ready) {} |
60 ~TestDelegate() override {} | 60 ~TestDelegate() override {} |
61 | 61 |
62 void ExceptionHandlerServerStarted() override { | 62 void ExceptionHandlerServerStarted() override { |
63 SetEvent(server_ready_); | 63 SetEvent(server_ready_); |
64 } | 64 } |
65 unsigned int ExceptionHandlerServerException( | 65 unsigned int ExceptionHandlerServerException( |
66 HANDLE process, | 66 HANDLE process, |
67 WinVMAddress exception_information_address) override { | 67 WinVMAddress exception_information_address, |
| 68 WinVMAddress debug_critical_section_address) override { |
68 return 0; | 69 return 0; |
69 } | 70 } |
70 | 71 |
71 void WaitForStart() { WaitForSingleObject(server_ready_, INFINITE); } | 72 void WaitForStart() { WaitForSingleObject(server_ready_, INFINITE); } |
72 | 73 |
73 private: | 74 private: |
74 HANDLE server_ready_; // weak | 75 HANDLE server_ready_; // weak |
75 bool started_; | 76 bool started_; |
76 | 77 |
77 DISALLOW_COPY_AND_ASSIGN(TestDelegate); | 78 DISALLOW_COPY_AND_ASSIGN(TestDelegate); |
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
200 | 201 |
201 ASSERT_EQ("OK", ReadString(handles_3->read.get())); | 202 ASSERT_EQ("OK", ReadString(handles_3->read.get())); |
202 ASSERT_EQ("OK", ReadString(handles_2->read.get())); | 203 ASSERT_EQ("OK", ReadString(handles_2->read.get())); |
203 ASSERT_EQ("OK", ReadString(handles_1->read.get())); | 204 ASSERT_EQ("OK", ReadString(handles_1->read.get())); |
204 } | 205 } |
205 } | 206 } |
206 | 207 |
207 } // namespace | 208 } // namespace |
208 } // namespace test | 209 } // namespace test |
209 } // namespace crashpad | 210 } // namespace crashpad |
OLD | NEW |