[email protected] | 744c2a2 | 2012-03-15 18:42:04 | [diff] [blame] | 1 | // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
[email protected] | 81a3441 | 2009-01-05 19:17:24 | [diff] [blame] | 2 | // Use of this source code is governed by a BSD-style license that can be |
3 | // found in the LICENSE file. | ||||
4 | |||||
[email protected] | 15edee4 | 2011-10-10 21:07:09 | [diff] [blame] | 5 | #ifndef CONTENT_TEST_MOCK_RENDER_PROCESS_H_ |
6 | #define CONTENT_TEST_MOCK_RENDER_PROCESS_H_ | ||||
[email protected] | 81a3441 | 2009-01-05 19:17:24 | [diff] [blame] | 7 | |
[email protected] | 8704f89b | 2011-04-15 00:30:05 | [diff] [blame] | 8 | #include "content/renderer/render_process.h" |
[email protected] | 514e711 | 2009-02-20 05:23:36 | [diff] [blame] | 9 | |
[email protected] | eb39819 | 2012-10-22 20:16:19 | [diff] [blame] | 10 | namespace content { |
[email protected] | 00c3961 | 2010-03-06 02:53:28 | [diff] [blame] | 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 { | ||||
[email protected] | 81a3441 | 2009-01-05 19:17:24 | [diff] [blame] | 14 | public: |
[email protected] | 00c3961 | 2010-03-06 02:53:28 | [diff] [blame] | 15 | MockRenderProcess(); |
16 | virtual ~MockRenderProcess(); | ||||
17 | |||||
18 | // RenderProcess implementation. | ||||
anand.ratn | 71fc3adc | 2014-10-06 13:50:07 | [diff] [blame] | 19 | virtual void AddBindings(int bindings) override; |
20 | virtual int GetEnabledBindings() const override; | ||||
[email protected] | 00c3961 | 2010-03-06 02:53:28 | [diff] [blame] | 21 | |
22 | private: | ||||
[email protected] | 744c2a2 | 2012-03-15 18:42:04 | [diff] [blame] | 23 | int enabled_bindings_; |
[email protected] | 00c3961 | 2010-03-06 02:53:28 | [diff] [blame] | 24 | |
25 | DISALLOW_COPY_AND_ASSIGN(MockRenderProcess); | ||||
[email protected] | 81a3441 | 2009-01-05 19:17:24 | [diff] [blame] | 26 | }; |
27 | |||||
[email protected] | eb39819 | 2012-10-22 20:16:19 | [diff] [blame] | 28 | } // namespace content |
29 | |||||
[email protected] | 15edee4 | 2011-10-10 21:07:09 | [diff] [blame] | 30 | #endif // CONTENT_TEST_MOCK_RENDER_PROCESS_H_ |