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

Side by Side Diff: content/public/test/mock_render_process_host.h

Issue 2473003002: content: Cleanup class/struct forward declarations (Closed)
Patch Set: Another missing forward declaration Created 4 years, 1 month 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
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_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ 5 #ifndef CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_
6 #define CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ 6 #define CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 #include <memory> 10 #include <memory>
11 #include <utility> 11 #include <utility>
12 12
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "base/memory/scoped_vector.h" 14 #include "base/memory/scoped_vector.h"
15 #include "base/metrics/persistent_memory_allocator.h" 15 #include "base/metrics/persistent_memory_allocator.h"
16 #include "base/observer_list.h" 16 #include "base/observer_list.h"
17 #include "content/public/browser/render_process_host.h" 17 #include "content/public/browser/render_process_host.h"
18 #include "content/public/browser/render_process_host_factory.h" 18 #include "content/public/browser/render_process_host_factory.h"
19 #include "ipc/ipc_test_sink.h" 19 #include "ipc/ipc_test_sink.h"
20 #include "mojo/public/cpp/bindings/associated_interface_ptr.h" 20 #include "mojo/public/cpp/bindings/associated_interface_ptr.h"
21 #include "services/service_manager/public/cpp/interface_provider.h" 21 #include "services/service_manager/public/cpp/interface_provider.h"
22 22
23 class StoragePartition; 23 class StoragePartition;
24 24
25 namespace content { 25 namespace content {
26 26
27 class MockRenderProcessHostFactory; 27 class MockRenderProcessHostFactory;
28 class RenderWidgetHost;
28 29
29 // A mock render process host that has no corresponding renderer process. All 30 // A mock render process host that has no corresponding renderer process. All
30 // IPC messages are sent into the message sink for inspection by tests. 31 // IPC messages are sent into the message sink for inspection by tests.
31 class MockRenderProcessHost : public RenderProcessHost { 32 class MockRenderProcessHost : public RenderProcessHost {
32 public: 33 public:
33 explicit MockRenderProcessHost(BrowserContext* browser_context); 34 explicit MockRenderProcessHost(BrowserContext* browser_context);
34 ~MockRenderProcessHost() override; 35 ~MockRenderProcessHost() override;
35 36
36 // Provides access to all IPC messages that would have been sent to the 37 // Provides access to all IPC messages that would have been sent to the
37 // renderer via this RenderProcessHost. 38 // renderer via this RenderProcessHost.
(...skipping 151 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 // for deleting all MockRenderProcessHosts that have not deleted by a test in 190 // for deleting all MockRenderProcessHosts that have not deleted by a test in
190 // the destructor and prevent them from being leaked. 191 // the destructor and prevent them from being leaked.
191 mutable ScopedVector<MockRenderProcessHost> processes_; 192 mutable ScopedVector<MockRenderProcessHost> processes_;
192 193
193 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory); 194 DISALLOW_COPY_AND_ASSIGN(MockRenderProcessHostFactory);
194 }; 195 };
195 196
196 } // namespace content 197 } // namespace content
197 198
198 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_ 199 #endif // CONTENT_PUBLIC_TEST_MOCK_RENDER_PROCESS_HOST_H_
OLDNEW
« no previous file with comments | « content/public/test/layouttest_support.h ('k') | content/public/test/test_file_error_injector.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698