OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include <stdio.h> | 5 #include <stdio.h> |
6 #include <string> | 6 #include <string> |
7 | 7 |
8 #include "base/compiler_specific.h" | 8 #include "base/compiler_specific.h" |
9 #include "base/environment.h" | 9 #include "base/environment.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/memory/scoped_ptr.h" | 11 #include "base/memory/scoped_ptr.h" |
12 #include "base/stringprintf.h" | 12 #include "base/strings/stringprintf.h" |
13 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
14 #include "breakpad/src/client/windows/crash_generation/client_info.h" | 14 #include "breakpad/src/client/windows/crash_generation/client_info.h" |
15 #include "breakpad/src/client/windows/crash_generation/crash_generation_server.h
" | 15 #include "breakpad/src/client/windows/crash_generation/crash_generation_server.h
" |
16 #include "testing/gmock/include/gmock/gmock.h" | 16 #include "testing/gmock/include/gmock/gmock.h" |
17 #include "testing/gtest/include/gtest/gtest.h" | 17 #include "testing/gtest/include/gtest/gtest.h" |
18 | 18 |
19 namespace { | 19 namespace { |
20 | 20 |
21 // The name of the environment variable used to pass the crash server pipe name | 21 // The name of the environment variable used to pass the crash server pipe name |
22 // to the crashing child process. | 22 // to the crashing child process. |
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
159 TEST_F(BreakpadWinDeathTest, TestDebugbreak) { | 159 TEST_F(BreakpadWinDeathTest, TestDebugbreak) { |
160 if (callbacks_.get()) { | 160 if (callbacks_.get()) { |
161 EXPECT_CALL(*callbacks_, OnClientDumpRequested()); | 161 EXPECT_CALL(*callbacks_, OnClientDumpRequested()); |
162 } | 162 } |
163 | 163 |
164 // See if __debugbreak() is intercepted. | 164 // See if __debugbreak() is intercepted. |
165 ASSERT_DEATH(__debugbreak(), ""); | 165 ASSERT_DEATH(__debugbreak(), ""); |
166 } | 166 } |
167 | 167 |
168 } // namespace remoting | 168 } // namespace remoting |
OLD | NEW |