summaryrefslogtreecommitdiffstats
path: root/chrome/renderer/mock_render_process.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/renderer/mock_render_process.h')
-rw-r--r--chrome/renderer/mock_render_process.h12
1 files changed, 4 insertions, 8 deletions
diff --git a/chrome/renderer/mock_render_process.h b/chrome/renderer/mock_render_process.h
index d7bd178..629967f 100644
--- a/chrome/renderer/mock_render_process.h
+++ b/chrome/renderer/mock_render_process.h
@@ -5,21 +5,17 @@
#ifndef CHROME_RENDERER_MOCK_RENDER_PROCESS_H_
#define CHROME_RENDERER_MOCK_RENDER_PROCESS_H_
-#include <string>
-
#include "chrome/common/child_process.h"
+class ChildThread;
+
// This class is a trivial mock of the child process singleton. It is necessary
// so we don't trip DCHECKs in ChildProcess::ReleaseProcess() when destroying
// a render widget instance.
class MockProcess : public ChildProcess {
public:
- explicit MockProcess(const std::wstring& channel_name) {}
- static void GlobalInit() {
- ChildProcessFactory<MockProcess> factory;
- ChildProcess::GlobalInit(L"dummy", &factory);
- }
+ explicit MockProcess() : ChildProcess(NULL) {}
+ explicit MockProcess(ChildThread* thread) : ChildProcess(thread) {}
};
#endif // CHROME_RENDERER_MOCK_RENDER_PROCESS_H_
-