| OLD | NEW |
| 1 // Copyright (c) 2008 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2008 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 #ifndef CHROME_RENDERER_MOCK_RENDER_PROCESS_H_ | 5 #ifndef CHROME_RENDERER_MOCK_RENDER_PROCESS_H_ |
| 6 #define CHROME_RENDERER_MOCK_RENDER_PROCESS_H_ | 6 #define CHROME_RENDERER_MOCK_RENDER_PROCESS_H_ |
| 7 | 7 |
| 8 #include "chrome/common/child_process.h" | 8 #include "chrome/common/child_process.h" |
| 9 | 9 |
| 10 class ChildThread; | 10 class ChildThread; |
| 11 | 11 |
| 12 // This class is a trivial mock of the child process singleton. It is necessary | 12 // This class is a trivial mock of the child process singleton. It is necessary |
| 13 // so we don't trip DCHECKs in ChildProcess::ReleaseProcess() when destroying | 13 // so we don't trip DCHECKs in ChildProcess::ReleaseProcess() when destroying |
| 14 // a render widget instance. | 14 // a render widget instance. |
| 15 class MockProcess : public ChildProcess { | 15 class MockProcess : public ChildProcess { |
| 16 public: | 16 public: |
| 17 explicit MockProcess() : ChildProcess(NULL) {} | 17 explicit MockProcess() : ChildProcess() {} |
| 18 explicit MockProcess(ChildThread* thread) : ChildProcess(thread) {} | |
| 19 }; | 18 }; |
| 20 | 19 |
| 21 #endif // CHROME_RENDERER_MOCK_RENDER_PROCESS_H_ | 20 #endif // CHROME_RENDERER_MOCK_RENDER_PROCESS_H_ |
| OLD | NEW |