Respond with QuotaExceededError when IndexedDB has no disk space on open.
[chromium-blink-merge.git] / content / test / mock_render_process.h
blob90bd3d94bdba105370111873d86b6f55ac8364cd
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 skia::PlatformCanvas* GetDrawingCanvas(
20 TransportDIB** memory,
21 const gfx::Rect& rect) OVERRIDE;
22 virtual void ReleaseTransportDIB(TransportDIB* memory) OVERRIDE;
23 virtual bool UseInProcessPlugins() const OVERRIDE;
24 virtual void AddBindings(int bindings) OVERRIDE;
25 virtual int GetEnabledBindings() const OVERRIDE;
26 virtual TransportDIB* CreateTransportDIB(size_t size) OVERRIDE;
27 virtual void FreeTransportDIB(TransportDIB*) OVERRIDE;
29 private:
30 uint32 transport_dib_next_sequence_number_;
31 int enabled_bindings_;
33 DISALLOW_COPY_AND_ASSIGN(MockRenderProcess);
36 } // namespace content
38 #endif // CONTENT_TEST_MOCK_RENDER_PROCESS_H_