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

Unified Diff: content/test/test_browser_context.cc

Issue 7708010: Add more files to content_unittests. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: virtual dtor Created 9 years, 4 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « content/test/test_browser_context.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/test/test_browser_context.cc
diff --git a/content/test/test_browser_context.cc b/content/test/test_browser_context.cc
new file mode 100644
index 0000000000000000000000000000000000000000..728b98f744046c20dbf5f3c35dd1c722b2b243b3
--- /dev/null
+++ b/content/test/test_browser_context.cc
@@ -0,0 +1,81 @@
+// Copyright (c) 2011 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "content/test/test_browser_context.h"
+
+#include "base/file_path.h"
+#include "content/browser/mock_resource_context.h"
+
+TestBrowserContext::TestBrowserContext() {
+}
+
+TestBrowserContext::~TestBrowserContext() {
+}
+
+FilePath TestBrowserContext::GetPath() {
+ return FilePath();
+}
+
+bool TestBrowserContext::IsOffTheRecord() {
+ return false;
+}
+
+webkit_database::DatabaseTracker* TestBrowserContext::GetDatabaseTracker() {
+ return NULL;
+}
+
+SSLHostState* TestBrowserContext::GetSSLHostState() {
+ return NULL;
+}
+
+DownloadManager* TestBrowserContext::GetDownloadManager() {
+ return NULL;
+}
+
+bool TestBrowserContext::HasCreatedDownloadManager() const {
+ return false;
+}
+
+quota::QuotaManager* TestBrowserContext::GetQuotaManager() {
+ return NULL;
+}
+
+net::URLRequestContextGetter* TestBrowserContext::GetRequestContext() {
+ return NULL;
+}
+
+net::URLRequestContextGetter*
+TestBrowserContext::GetRequestContextForRenderProcess(int renderer_child_id) {
+ return NULL;
+}
+
+net::URLRequestContextGetter* TestBrowserContext::GetRequestContextForMedia() {
+ return NULL;
+}
+
+const content::ResourceContext& TestBrowserContext::GetResourceContext() {
+ // TODO(phajdan.jr): Get rid of this nasty global.
+ return *content::MockResourceContext::GetInstance();
+}
+
+HostZoomMap* TestBrowserContext::GetHostZoomMap() {
+ return NULL;
+}
+
+GeolocationPermissionContext*
+TestBrowserContext::GetGeolocationPermissionContext() {
+ return NULL;
+}
+
+bool TestBrowserContext::DidLastSessionExitCleanly() {
+ return true;
+}
+
+WebKitContext* TestBrowserContext::GetWebKitContext() {
+ return NULL;
+}
+
+ChromeBlobStorageContext* TestBrowserContext::GetBlobStorageContext() {
+ return NULL;
+}
« no previous file with comments | « content/test/test_browser_context.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698