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

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

Issue 10665007: ppapi: Add test for touch-event support. (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
« no previous file with comments | « chrome/test/ui/ppapi_uitest.cc ('k') | content/test/test_renderer_host.cc » ('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 #ifndef CONTENT_PUBLIC_TEST_TEST_RENDERER_HOST_H_ 5 #ifndef CONTENT_PUBLIC_TEST_TEST_RENDERER_HOST_H_
6 #define CONTENT_PUBLIC_TEST_TEST_RENDERER_HOST_H_ 6 #define CONTENT_PUBLIC_TEST_TEST_RENDERER_HOST_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 // 56 //
57 // This is safe to call on any RenderViewHost, not just ones 57 // This is safe to call on any RenderViewHost, not just ones
58 // constructed while a RenderViewHostTestEnabler is in play. 58 // constructed while a RenderViewHostTestEnabler is in play.
59 static bool IsRenderViewHostSwappedOut(RenderViewHost* rvh); 59 static bool IsRenderViewHostSwappedOut(RenderViewHost* rvh);
60 60
61 // Calls the RenderViewHosts' private OnMessageReceived function with the 61 // Calls the RenderViewHosts' private OnMessageReceived function with the
62 // given message. 62 // given message.
63 static bool TestOnMessageReceived(RenderViewHost* rvh, 63 static bool TestOnMessageReceived(RenderViewHost* rvh,
64 const IPC::Message& msg); 64 const IPC::Message& msg);
65 65
66 // Returns whether the underlying web-page has any touch-event handlers.
67 static bool HasTouchEventHandler(RenderViewHost* rvh);
68
66 virtual ~RenderViewHostTester() {} 69 virtual ~RenderViewHostTester() {}
67 70
68 // Gives tests access to RenderViewHostImpl::CreateRenderView. 71 // Gives tests access to RenderViewHostImpl::CreateRenderView.
69 virtual bool CreateRenderView(const string16& frame_name, 72 virtual bool CreateRenderView(const string16& frame_name,
70 int opener_route_id, 73 int opener_route_id,
71 int32 max_page_id, 74 int32 max_page_id,
72 const std::string& embedder_channel_name, 75 const std::string& embedder_channel_name,
73 int embedder_container_id) = 0; 76 int embedder_container_id) = 0;
74 77
75 // Calls OnMsgNavigate on the RenderViewHost with the given information, 78 // Calls OnMsgNavigate on the RenderViewHost with the given information,
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
178 scoped_ptr<aura::test::AuraTestHelper> aura_test_helper_; 181 scoped_ptr<aura::test::AuraTestHelper> aura_test_helper_;
179 #endif 182 #endif
180 RenderViewHostTestEnabler rvh_test_enabler_; 183 RenderViewHostTestEnabler rvh_test_enabler_;
181 184
182 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); 185 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness);
183 }; 186 };
184 187
185 } // namespace content 188 } // namespace content
186 189
187 #endif // CONTENT_PUBLIC_TEST_TEST_RENDERER_HOST_H_ 190 #endif // CONTENT_PUBLIC_TEST_TEST_RENDERER_HOST_H_
OLDNEW
« no previous file with comments | « chrome/test/ui/ppapi_uitest.cc ('k') | content/test/test_renderer_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698