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

Side by Side Diff: content/browser/mock_content_browser_client.cc

Issue 7800004: Move more files to content_unittests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 3 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/browser/mock_content_browser_client.h" 5 #include "content/browser/mock_content_browser_client.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/file_path.h" 9 #include "base/file_path.h"
10 #include "content/browser/webui/empty_web_ui_factory.h" 10 #include "content/browser/webui/empty_web_ui_factory.h"
(...skipping 23 matching lines...) Expand all
34 void MockContentBrowserClient::PluginProcessHostCreated( 34 void MockContentBrowserClient::PluginProcessHostCreated(
35 PluginProcessHost* host) { 35 PluginProcessHost* host) {
36 } 36 }
37 37
38 void MockContentBrowserClient::WorkerProcessHostCreated( 38 void MockContentBrowserClient::WorkerProcessHostCreated(
39 WorkerProcessHost* host) { 39 WorkerProcessHost* host) {
40 } 40 }
41 41
42 WebUIFactory* MockContentBrowserClient::GetWebUIFactory() { 42 WebUIFactory* MockContentBrowserClient::GetWebUIFactory() {
43 // Return an empty factory so callsites don't have to check for NULL. 43 // Return an empty factory so callsites don't have to check for NULL.
44 return EmptyWebUIFactory::Get(); 44 return EmptyWebUIFactory::GetInstance();
45 } 45 }
46 46
47 GURL MockContentBrowserClient::GetEffectiveURL( 47 GURL MockContentBrowserClient::GetEffectiveURL(
48 content::BrowserContext* browser_context, const GURL& url) { 48 content::BrowserContext* browser_context, const GURL& url) {
49 return GURL(); 49 return GURL();
50 } 50 }
51 51
52 bool MockContentBrowserClient::ShouldUseProcessPerSite( 52 bool MockContentBrowserClient::ShouldUseProcessPerSite(
53 BrowserContext* browser_context, const GURL& effective_url) { 53 BrowserContext* browser_context, const GURL& effective_url) {
54 return false; 54 return false;
(...skipping 215 matching lines...) Expand 10 before | Expand all | Expand 10 after
270 #endif 270 #endif
271 271
272 #if defined(USE_NSS) 272 #if defined(USE_NSS)
273 crypto::CryptoModuleBlockingPasswordDelegate* 273 crypto::CryptoModuleBlockingPasswordDelegate*
274 MockContentBrowserClient::GetCryptoPasswordDelegate(const GURL& url) { 274 MockContentBrowserClient::GetCryptoPasswordDelegate(const GURL& url) {
275 return NULL; 275 return NULL;
276 } 276 }
277 #endif 277 #endif
278 278
279 } // namespace content 279 } // namespace content
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698