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

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

Issue 11346016: Move remaining content test code into the content namespace. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 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 | Annotate | Revision Log
« no previous file with comments | « content/public/test/mock_download_manager.cc ('k') | content/public/test/mock_render_thread.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 #include "content/public/test/mock_render_process_host.h" 5 #include "content/public/test/mock_render_process_host.h"
6 6
7 #include "base/lazy_instance.h" 7 #include "base/lazy_instance.h"
8 #include "base/message_loop.h" 8 #include "base/message_loop.h"
9 #include "base/time.h" 9 #include "base/time.h"
10 #include "content/browser/child_process_security_policy_impl.h" 10 #include "content/browser/child_process_security_policy_impl.h"
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
177 void MockRenderProcessHost::RemovePendingView() { 177 void MockRenderProcessHost::RemovePendingView() {
178 } 178 }
179 179
180 void MockRenderProcessHost::SetSuddenTerminationAllowed(bool allowed) { 180 void MockRenderProcessHost::SetSuddenTerminationAllowed(bool allowed) {
181 } 181 }
182 182
183 bool MockRenderProcessHost::SuddenTerminationAllowed() const { 183 bool MockRenderProcessHost::SuddenTerminationAllowed() const {
184 return true; 184 return true;
185 } 185 }
186 186
187 content::RenderWidgetHost* MockRenderProcessHost::GetRenderWidgetHostByID( 187 RenderWidgetHost* MockRenderProcessHost::GetRenderWidgetHostByID(
188 int routing_id) { 188 int routing_id) {
189 return render_widget_hosts_.Lookup(routing_id); 189 return render_widget_hosts_.Lookup(routing_id);
190 } 190 }
191 191
192 BrowserContext* MockRenderProcessHost::GetBrowserContext() const { 192 BrowserContext* MockRenderProcessHost::GetBrowserContext() const {
193 return browser_context_; 193 return browser_context_;
194 } 194 }
195 195
196 bool MockRenderProcessHost::InSameStoragePartition( 196 bool MockRenderProcessHost::InSameStoragePartition(
197 StoragePartition* partition) const { 197 StoragePartition* partition) const {
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
256 for (ScopedVector<MockRenderProcessHost>::iterator it = processes_.begin(); 256 for (ScopedVector<MockRenderProcessHost>::iterator it = processes_.begin();
257 it != processes_.end(); ++it) { 257 it != processes_.end(); ++it) {
258 if (*it == host) { 258 if (*it == host) {
259 processes_.weak_erase(it); 259 processes_.weak_erase(it);
260 break; 260 break;
261 } 261 }
262 } 262 }
263 } 263 }
264 264
265 } // content 265 } // content
OLDNEW
« no previous file with comments | « content/public/test/mock_download_manager.cc ('k') | content/public/test/mock_render_thread.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698