summaryrefslogtreecommitdiffstats
path: root/content/test/mock_render_process.h
diff options
context:
space:
mode:
authorjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-10 21:07:09 +0000
committerjam@chromium.org <jam@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-10-10 21:07:09 +0000
commit15edee45516a54fd066c2ca60b0f9ca4f5baae28 (patch)
treec6adf8f5d3a68d8bf2d3113f2cdc5c7030043ac2 /content/test/mock_render_process.h
parent9c19439858bb0c4f050187f093631ea01176da46 (diff)
downloadchromium_src-15edee45516a54fd066c2ca60b0f9ca4f5baae28.zip
chromium_src-15edee45516a54fd066c2ca60b0f9ca4f5baae28.tar.gz
chromium_src-15edee45516a54fd066c2ca60b0f9ca4f5baae28.tar.bz2
Move some testing classes used by chrome to content\renderer, to match what we're doing with other test classes.
BUG=98716 Review URL: http://codereview.chromium.org/8216019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@104781 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content/test/mock_render_process.h')
-rw-r--r--content/test/mock_render_process.h31
1 files changed, 31 insertions, 0 deletions
diff --git a/content/test/mock_render_process.h b/content/test/mock_render_process.h
new file mode 100644
index 0000000..ef4db6c
--- /dev/null
+++ b/content/test/mock_render_process.h
@@ -0,0 +1,31 @@
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef CONTENT_TEST_MOCK_RENDER_PROCESS_H_
+#define CONTENT_TEST_MOCK_RENDER_PROCESS_H_
+#pragma once
+
+#include "content/renderer/render_process.h"
+
+// This class is a mock of the child process singleton which we use during
+// running of the RenderView unit tests.
+class MockRenderProcess : public RenderProcess {
+ public:
+ MockRenderProcess();
+ virtual ~MockRenderProcess();
+
+ // RenderProcess implementation.
+ virtual skia::PlatformCanvas* GetDrawingCanvas(TransportDIB** memory,
+ const gfx::Rect& rect);
+ virtual void ReleaseTransportDIB(TransportDIB* memory);
+ virtual bool UseInProcessPlugins() const;
+ virtual bool HasInitializedMediaLibrary() const;
+
+ private:
+ uint32 transport_dib_next_sequence_number_;
+
+ DISALLOW_COPY_AND_ASSIGN(MockRenderProcess);
+};
+
+#endif // CONTENT_TEST_MOCK_RENDER_PROCESS_H_