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

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

Issue 102593002: Convert string16 to base::string16 in content. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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 | « content/public/test/render_view_test.cc ('k') | content/public/test/test_utils.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 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "base/message_loop/message_loop.h" 9 #include "base/message_loop/message_loop.h"
10 #include "content/public/browser/render_view_host.h" 10 #include "content/public/browser/render_view_host.h"
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
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. 66 // Returns whether the underlying web-page has any touch-event handlers.
67 static bool HasTouchEventHandler(RenderViewHost* rvh); 67 static bool HasTouchEventHandler(RenderViewHost* rvh);
68 68
69 virtual ~RenderViewHostTester() {} 69 virtual ~RenderViewHostTester() {}
70 70
71 // Gives tests access to RenderViewHostImpl::CreateRenderView. 71 // Gives tests access to RenderViewHostImpl::CreateRenderView.
72 virtual bool CreateRenderView(const string16& frame_name, 72 virtual bool CreateRenderView(const base::string16& frame_name,
73 int opener_route_id, 73 int opener_route_id,
74 int32 max_page_id) = 0; 74 int32 max_page_id) = 0;
75 75
76 // Calls OnMsgNavigate on the RenderViewHost with the given information, 76 // Calls OnMsgNavigate on the RenderViewHost with the given information,
77 // setting the rest of the parameters in the message to the "typical" values. 77 // setting the rest of the parameters in the message to the "typical" values.
78 // This is a helper function for simulating the most common types of loads. 78 // This is a helper function for simulating the most common types of loads.
79 virtual void SendNavigate(int page_id, const GURL& url) = 0; 79 virtual void SendNavigate(int page_id, const GURL& url) = 0;
80 virtual void SendFailedNavigate(int page_id, const GURL& url) = 0; 80 virtual void SendFailedNavigate(int page_id, const GURL& url) = 0;
81 81
82 // Calls OnMsgNavigate on the RenderViewHost with the given information, 82 // Calls OnMsgNavigate on the RenderViewHost with the given information,
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 197
198 int thread_bundle_options_; 198 int thread_bundle_options_;
199 scoped_ptr<TestBrowserThreadBundle> thread_bundle_; 199 scoped_ptr<TestBrowserThreadBundle> thread_bundle_;
200 200
201 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness); 201 DISALLOW_COPY_AND_ASSIGN(RenderViewHostTestHarness);
202 }; 202 };
203 203
204 } // namespace content 204 } // namespace content
205 205
206 #endif // CONTENT_PUBLIC_TEST_TEST_RENDERER_HOST_H_ 206 #endif // CONTENT_PUBLIC_TEST_TEST_RENDERER_HOST_H_
OLDNEW
« no previous file with comments | « content/public/test/render_view_test.cc ('k') | content/public/test/test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698