Updating trunk VERSION from 2139.0 to 2140.0
[chromium-blink-merge.git] / content / test / mock_render_process.h
blob9c480daadfa00ea247b4af1cb1d84b485834da38
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
3 // found in the LICENSE file.
5 #ifndef CONTENT_TEST_MOCK_RENDER_PROCESS_H_
6 #define CONTENT_TEST_MOCK_RENDER_PROCESS_H_
8 #include "content/renderer/render_process.h"
10 namespace content {
11 // This class is a mock of the child process singleton which we use during
12 // running of the RenderView unit tests.
13 class MockRenderProcess : public RenderProcess {
14 public:
15 MockRenderProcess();
16 virtual ~MockRenderProcess();
18 // RenderProcess implementation.
19 virtual void AddBindings(int bindings) OVERRIDE;
20 virtual int GetEnabledBindings() const OVERRIDE;
22 private:
23 int enabled_bindings_;
25 DISALLOW_COPY_AND_ASSIGN(MockRenderProcess);
28 } // namespace content
30 #endif // CONTENT_TEST_MOCK_RENDER_PROCESS_H_