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

Side by Side Diff: util/win/exception_handler_server_test.cc

Issue 1392093003: win: Capture some CRITICAL_SECTION debugging data (Closed) Base URL: https://chromium.googlesource.com/crashpad/crashpad@master
Patch Set: . Created 5 years, 2 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
« no previous file with comments | « util/win/exception_handler_server.cc ('k') | util/win/process_structs.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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
OLDNEW
« no previous file with comments | « util/win/exception_handler_server.cc ('k') | util/win/process_structs.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698