| Index: content/public/test/mock_render_process_host.cc
|
| diff --git a/content/public/test/mock_render_process_host.cc b/content/public/test/mock_render_process_host.cc
|
| index 4289b05671ede98f07237d5c59ff4e00041c5524..efabfce444a60371907bca9a41666f0b3fdac22d 100644
|
| --- a/content/public/test/mock_render_process_host.cc
|
| +++ b/content/public/test/mock_render_process_host.cc
|
| @@ -46,6 +46,7 @@ MockRenderProcessHost::MockRenderProcessHost(BrowserContext* browser_context)
|
| deletion_callback_called_(false),
|
| is_for_guests_only_(false),
|
| is_process_backgrounded_(false),
|
| + is_unused_(true),
|
| worker_ref_count_(0),
|
| weak_ptr_factory_(this) {
|
| // Child process security operations can't be unit tested unless we add
|
| @@ -358,6 +359,14 @@ bool MockRenderProcessHost::MayReuseHost() {
|
| return true;
|
| }
|
|
|
| +bool MockRenderProcessHost::IsUnused() {
|
| + return is_unused_;
|
| +}
|
| +
|
| +void MockRenderProcessHost::SetIsUsed() {
|
| + is_unused_ = false;
|
| +}
|
| +
|
| void MockRenderProcessHost::FilterURL(bool empty_allowed, GURL* url) {
|
| RenderProcessHostImpl::FilterURL(this, empty_allowed, url);
|
| }
|
|
|