Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(6)

Side by Side Diff: content/test/mock_render_process.h

Issue 10696166: Remove #pragma once from content (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_TEST_MOCK_RENDER_PROCESS_H_ 5 #ifndef CONTENT_TEST_MOCK_RENDER_PROCESS_H_
6 #define CONTENT_TEST_MOCK_RENDER_PROCESS_H_ 6 #define CONTENT_TEST_MOCK_RENDER_PROCESS_H_
7 #pragma once
8 7
9 #include "content/renderer/render_process.h" 8 #include "content/renderer/render_process.h"
10 9
11 // This class is a mock of the child process singleton which we use during 10 // This class is a mock of the child process singleton which we use during
12 // running of the RenderView unit tests. 11 // running of the RenderView unit tests.
13 class MockRenderProcess : public RenderProcess { 12 class MockRenderProcess : public RenderProcess {
14 public: 13 public:
15 MockRenderProcess(); 14 MockRenderProcess();
16 virtual ~MockRenderProcess(); 15 virtual ~MockRenderProcess();
17 16
18 // RenderProcess implementation. 17 // RenderProcess implementation.
19 virtual skia::PlatformCanvas* GetDrawingCanvas( 18 virtual skia::PlatformCanvas* GetDrawingCanvas(
20 TransportDIB** memory, 19 TransportDIB** memory,
21 const gfx::Rect& rect) OVERRIDE; 20 const gfx::Rect& rect) OVERRIDE;
22 virtual void ReleaseTransportDIB(TransportDIB* memory) OVERRIDE; 21 virtual void ReleaseTransportDIB(TransportDIB* memory) OVERRIDE;
23 virtual bool UseInProcessPlugins() const OVERRIDE; 22 virtual bool UseInProcessPlugins() const OVERRIDE;
24 virtual void AddBindings(int bindings) OVERRIDE; 23 virtual void AddBindings(int bindings) OVERRIDE;
25 virtual int GetEnabledBindings() const OVERRIDE; 24 virtual int GetEnabledBindings() const OVERRIDE;
26 virtual bool HasInitializedMediaLibrary() const; 25 virtual bool HasInitializedMediaLibrary() const;
27 26
28 private: 27 private:
29 uint32 transport_dib_next_sequence_number_; 28 uint32 transport_dib_next_sequence_number_;
30 int enabled_bindings_; 29 int enabled_bindings_;
31 30
32 DISALLOW_COPY_AND_ASSIGN(MockRenderProcess); 31 DISALLOW_COPY_AND_ASSIGN(MockRenderProcess);
33 }; 32 };
34 33
35 #endif // CONTENT_TEST_MOCK_RENDER_PROCESS_H_ 34 #endif // CONTENT_TEST_MOCK_RENDER_PROCESS_H_
OLDNEW
« no previous file with comments | « content/test/mock_keyboard_driver_win.h ('k') | content/test/net/url_request_abort_on_end_job.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698