| 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" |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 64 | 64 |
| 65 namespace remoting { | 65 namespace remoting { |
| 66 | 66 |
| 67 void InitializeCrashReportingForTest(const wchar_t* pipe_name); | 67 void InitializeCrashReportingForTest(const wchar_t* pipe_name); |
| 68 | 68 |
| 69 class BreakpadWinDeathTest : public testing::Test { | 69 class BreakpadWinDeathTest : public testing::Test { |
| 70 public: | 70 public: |
| 71 BreakpadWinDeathTest(); | 71 BreakpadWinDeathTest(); |
| 72 virtual ~BreakpadWinDeathTest(); | 72 virtual ~BreakpadWinDeathTest(); |
| 73 | 73 |
| 74 virtual void SetUp() OVERRIDE; | 74 virtual void SetUp() override; |
| 75 | 75 |
| 76 protected: | 76 protected: |
| 77 scoped_ptr<google_breakpad::CrashGenerationServer> crash_server_; | 77 scoped_ptr<google_breakpad::CrashGenerationServer> crash_server_; |
| 78 scoped_ptr<MockCrashServerCallbacks> callbacks_; | 78 scoped_ptr<MockCrashServerCallbacks> callbacks_; |
| 79 std::wstring pipe_name_; | 79 std::wstring pipe_name_; |
| 80 }; | 80 }; |
| 81 | 81 |
| 82 BreakpadWinDeathTest::BreakpadWinDeathTest() { | 82 BreakpadWinDeathTest::BreakpadWinDeathTest() { |
| 83 } | 83 } |
| 84 | 84 |
| (...skipping 74 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 |