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

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

Issue 10532162: Rename IPC Sender and Listener in ppapi, content/public, and content/renderer (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 6 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
« no previous file with comments | « content/public/test/mock_render_thread.h ('k') | content/public/utility/utility_thread.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // RenderViewFakeResourcesTest can be used as a base class for tests that need 5 // RenderViewFakeResourcesTest can be used as a base class for tests that need
6 // to simulate loading network resources (such as http: urls) into a 6 // to simulate loading network resources (such as http: urls) into a
7 // RenderView. It does this by handling the relevant IPC messages that the 7 // RenderView. It does this by handling the relevant IPC messages that the
8 // renderer would normally send to the browser, and responding with static 8 // renderer would normally send to the browser, and responding with static
9 // content from an internal map. A request for a url that is not in the map 9 // content from an internal map. A request for a url that is not in the map
10 // will return a 404. Currently, content is always returned as text/html, and 10 // will return a 404. Currently, content is always returned as text/html, and
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 #ifndef CONTENT_PUBLIC_TEST_RENDER_VIEW_FAKE_RESOURCES_TEST_H_ 42 #ifndef CONTENT_PUBLIC_TEST_RENDER_VIEW_FAKE_RESOURCES_TEST_H_
43 #define CONTENT_PUBLIC_TEST_RENDER_VIEW_FAKE_RESOURCES_TEST_H_ 43 #define CONTENT_PUBLIC_TEST_RENDER_VIEW_FAKE_RESOURCES_TEST_H_
44 44
45 #include <map> 45 #include <map>
46 #include <string> 46 #include <string>
47 47
48 #include "base/memory/scoped_ptr.h" 48 #include "base/memory/scoped_ptr.h"
49 #include "base/message_loop.h" 49 #include "base/message_loop.h"
50 #include "content/public/renderer/content_renderer_client.h" 50 #include "content/public/renderer/content_renderer_client.h"
51 #include "content/public/renderer/render_view_visitor.h" 51 #include "content/public/renderer/render_view_visitor.h"
52 #include "ipc/ipc_channel.h" 52 #include "ipc/ipc_listener.h"
53 #include "testing/gtest/include/gtest/gtest.h" 53 #include "testing/gtest/include/gtest/gtest.h"
54 54
55 class MockRenderProcess; 55 class MockRenderProcess;
56 class RenderThreadImpl; 56 class RenderThreadImpl;
57 struct ResourceHostMsg_Request; 57 struct ResourceHostMsg_Request;
58 58
59 namespace WebKit { 59 namespace WebKit {
60 class WebFrame; 60 class WebFrame;
61 class WebHistoryItem; 61 class WebHistoryItem;
62 } 62 }
63 63
64 namespace content { 64 namespace content {
65 65
66 class RenderViewFakeResourcesTest : public ::testing::Test, 66 class RenderViewFakeResourcesTest : public ::testing::Test,
67 public IPC::Channel::Listener, 67 public IPC::Listener,
68 public RenderViewVisitor { 68 public RenderViewVisitor {
69 public: 69 public:
70 // IPC::Channel::Listener implementation. 70 // IPC::Listener implementation.
71 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE; 71 virtual bool OnMessageReceived(const IPC::Message& message) OVERRIDE;
72 72
73 // RenderViewVisitor implementation. 73 // RenderViewVisitor implementation.
74 virtual bool Visit(RenderView* render_view) OVERRIDE; 74 virtual bool Visit(RenderView* render_view) OVERRIDE;
75 75
76 protected: 76 protected:
77 RenderViewFakeResourcesTest(); 77 RenderViewFakeResourcesTest();
78 virtual ~RenderViewFakeResourcesTest(); 78 virtual ~RenderViewFakeResourcesTest();
79 79
80 // Call the base class SetUp and TearDown methods as part of your 80 // Call the base class SetUp and TearDown methods as part of your
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 // The previous state for whether sandbox support was enabled in 143 // The previous state for whether sandbox support was enabled in
144 // RenderViewWebKitPlatformSupportImpl. 144 // RenderViewWebKitPlatformSupportImpl.
145 bool sandbox_was_enabled_; 145 bool sandbox_was_enabled_;
146 146
147 DISALLOW_COPY_AND_ASSIGN(RenderViewFakeResourcesTest); 147 DISALLOW_COPY_AND_ASSIGN(RenderViewFakeResourcesTest);
148 }; 148 };
149 149
150 } // namespace content 150 } // namespace content
151 151
152 #endif // CONTENT_PUBLIC_TEST_RENDER_VIEW_FAKE_RESOURCES_TEST_H_ 152 #endif // CONTENT_PUBLIC_TEST_RENDER_VIEW_FAKE_RESOURCES_TEST_H_
OLDNEW
« no previous file with comments | « content/public/test/mock_render_thread.h ('k') | content/public/utility/utility_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698