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

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

Issue 2072613003: Convert GetSearchProviderInstallState to Mojo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge Created 4 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
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 <algorithm> 7 #include <algorithm>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 230 matching lines...) Expand 10 before | Expand all | Expand 10 after
241 return true; 241 return true;
242 } 242 }
243 243
244 IPC::ChannelProxy* MockRenderProcessHost::GetChannel() { 244 IPC::ChannelProxy* MockRenderProcessHost::GetChannel() {
245 return NULL; 245 return NULL;
246 } 246 }
247 247
248 void MockRenderProcessHost::AddFilter(BrowserMessageFilter* filter) { 248 void MockRenderProcessHost::AddFilter(BrowserMessageFilter* filter) {
249 } 249 }
250 250
251 void MockRenderProcessHost::AddOwnedInterface(
252 std::unique_ptr<OwnedInterface> impl) {}
253
251 bool MockRenderProcessHost::FastShutdownForPageCount(size_t count) { 254 bool MockRenderProcessHost::FastShutdownForPageCount(size_t count) {
252 if (GetActiveViewCount() == count) 255 if (GetActiveViewCount() == count)
253 return FastShutdownIfPossible(); 256 return FastShutdownIfPossible();
254 return false; 257 return false;
255 } 258 }
256 259
257 base::TimeDelta MockRenderProcessHost::GetChildProcessIdleTime() const { 260 base::TimeDelta MockRenderProcessHost::GetChildProcessIdleTime() const {
258 return base::TimeDelta::FromMilliseconds(0); 261 return base::TimeDelta::FromMilliseconds(0);
259 } 262 }
260 263
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
375 for (ScopedVector<MockRenderProcessHost>::iterator it = processes_.begin(); 378 for (ScopedVector<MockRenderProcessHost>::iterator it = processes_.begin();
376 it != processes_.end(); ++it) { 379 it != processes_.end(); ++it) {
377 if (*it == host) { 380 if (*it == host) {
378 processes_.weak_erase(it); 381 processes_.weak_erase(it);
379 break; 382 break;
380 } 383 }
381 } 384 }
382 } 385 }
383 386
384 } // namespace content 387 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698