blob: 6068dbae39711756d8c8a809751d76decc86de0b [file] [log] [blame]
[email protected]744c2a22012-03-15 18:42:041// Copyright (c) 2012 The Chromium Authors. All rights reserved.
[email protected]81a34412009-01-05 19:17:242// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
[email protected]15edee42011-10-10 21:07:095#ifndef CONTENT_TEST_MOCK_RENDER_PROCESS_H_
6#define CONTENT_TEST_MOCK_RENDER_PROCESS_H_
[email protected]81a34412009-01-05 19:17:247
[email protected]8704f89b2011-04-15 00:30:058#include "content/renderer/render_process.h"
[email protected]514e7112009-02-20 05:23:369
[email protected]eb398192012-10-22 20:16:1910namespace content {
[email protected]00c39612010-03-06 02:53:2811// This class is a mock of the child process singleton which we use during
12// running of the RenderView unit tests.
13class MockRenderProcess : public RenderProcess {
[email protected]81a34412009-01-05 19:17:2414 public:
[email protected]00c39612010-03-06 02:53:2815 MockRenderProcess();
16 virtual ~MockRenderProcess();
17
18 // RenderProcess implementation.
anand.ratn71fc3adc2014-10-06 13:50:0719 virtual void AddBindings(int bindings) override;
20 virtual int GetEnabledBindings() const override;
[email protected]00c39612010-03-06 02:53:2821
22 private:
[email protected]744c2a22012-03-15 18:42:0423 int enabled_bindings_;
[email protected]00c39612010-03-06 02:53:2824
25 DISALLOW_COPY_AND_ASSIGN(MockRenderProcess);
[email protected]81a34412009-01-05 19:17:2426};
27
[email protected]eb398192012-10-22 20:16:1928} // namespace content
29
[email protected]15edee42011-10-10 21:07:0930#endif // CONTENT_TEST_MOCK_RENDER_PROCESS_H_