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

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

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
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/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 #include "base/time/time.h" 9 #include "base/time/time.h"
10 #include "content/browser/child_process_security_policy_impl.h" 10 #include "content/browser/child_process_security_policy_impl.h"
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 } 104 }
105 105
106 bool MockRenderProcessHost::IsGuest() const { 106 bool MockRenderProcessHost::IsGuest() const {
107 return false; 107 return false;
108 } 108 }
109 109
110 StoragePartition* MockRenderProcessHost::GetStoragePartition() const { 110 StoragePartition* MockRenderProcessHost::GetStoragePartition() const {
111 return NULL; 111 return NULL;
112 } 112 }
113 113
114 void MockRenderProcessHost::AddWord(const string16& word) { 114 void MockRenderProcessHost::AddWord(const base::string16& word) {
115 } 115 }
116 116
117 bool MockRenderProcessHost::FastShutdownIfPossible() { 117 bool MockRenderProcessHost::FastShutdownIfPossible() {
118 // We aren't actually going to do anything, but set |fast_shutdown_started_| 118 // We aren't actually going to do anything, but set |fast_shutdown_started_|
119 // to true so that tests know we've been called. 119 // to true so that tests know we've been called.
120 fast_shutdown_started_ = true; 120 fast_shutdown_started_ = true;
121 return true; 121 return true;
122 } 122 }
123 123
124 bool MockRenderProcessHost::FastShutdownStarted() const { 124 bool MockRenderProcessHost::FastShutdownStarted() const {
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
292 for (ScopedVector<MockRenderProcessHost>::iterator it = processes_.begin(); 292 for (ScopedVector<MockRenderProcessHost>::iterator it = processes_.begin();
293 it != processes_.end(); ++it) { 293 it != processes_.end(); ++it) {
294 if (*it == host) { 294 if (*it == host) {
295 processes_.weak_erase(it); 295 processes_.weak_erase(it);
296 break; 296 break;
297 } 297 }
298 } 298 }
299 } 299 }
300 300
301 } // content 301 } // content
OLDNEW
« no previous file with comments | « content/public/test/mock_render_process_host.h ('k') | content/public/test/mock_render_thread.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698