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

Side by Side Diff: content/test/test_browser_context.cc

Issue 9416070: Move creation and ownership of HostZoomMap to content instead of having every embedder do this. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: fix mac/cros browsertests Created 8 years, 10 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
« no previous file with comments | « content/test/test_browser_context.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/test/test_browser_context.h" 5 #include "content/test/test_browser_context.h"
6 6
7 #include "base/file_path.h" 7 #include "base/file_path.h"
8 #include "content/browser/in_process_webkit/webkit_context.h" 8 #include "content/browser/in_process_webkit/webkit_context.h"
9 #include "content/browser/mock_resource_context.h" 9 #include "content/browser/mock_resource_context.h"
10 #include "testing/gtest/include/gtest/gtest.h" 10 #include "testing/gtest/include/gtest/gtest.h"
11 11
12 using content::DownloadManager; 12 using content::DownloadManager;
13 using content::HostZoomMap;
14 13
15 TestBrowserContext::TestBrowserContext() { 14 TestBrowserContext::TestBrowserContext() {
16 EXPECT_TRUE(browser_context_dir_.CreateUniqueTempDir()); 15 EXPECT_TRUE(browser_context_dir_.CreateUniqueTempDir());
17 } 16 }
18 17
19 TestBrowserContext::~TestBrowserContext() { 18 TestBrowserContext::~TestBrowserContext() {
20 } 19 }
21 20
22 FilePath TestBrowserContext::TakePath() { 21 FilePath TestBrowserContext::TakePath() {
23 return browser_context_dir_.Take(); 22 return browser_context_dir_.Take();
(...skipping 23 matching lines...) Expand all
47 net::URLRequestContextGetter* TestBrowserContext::GetRequestContextForMedia() { 46 net::URLRequestContextGetter* TestBrowserContext::GetRequestContextForMedia() {
48 return NULL; 47 return NULL;
49 } 48 }
50 49
51 content::ResourceContext* TestBrowserContext::GetResourceContext() { 50 content::ResourceContext* TestBrowserContext::GetResourceContext() {
52 if (!resource_context_.get()) 51 if (!resource_context_.get())
53 resource_context_.reset(new content::MockResourceContext()); 52 resource_context_.reset(new content::MockResourceContext());
54 return resource_context_.get(); 53 return resource_context_.get();
55 } 54 }
56 55
57 HostZoomMap* TestBrowserContext::GetHostZoomMap() {
58 return NULL;
59 }
60
61 content::GeolocationPermissionContext* 56 content::GeolocationPermissionContext*
62 TestBrowserContext::GetGeolocationPermissionContext() { 57 TestBrowserContext::GetGeolocationPermissionContext() {
63 return NULL; 58 return NULL;
64 } 59 }
65 60
66 content::SpeechInputPreferences* 61 content::SpeechInputPreferences*
67 TestBrowserContext::GetSpeechInputPreferences() { 62 TestBrowserContext::GetSpeechInputPreferences() {
68 return NULL; 63 return NULL;
69 } 64 }
70 65
71 bool TestBrowserContext::DidLastSessionExitCleanly() { 66 bool TestBrowserContext::DidLastSessionExitCleanly() {
72 return true; 67 return true;
73 } 68 }
74 69
75 quota::SpecialStoragePolicy* TestBrowserContext::GetSpecialStoragePolicy() { 70 quota::SpecialStoragePolicy* TestBrowserContext::GetSpecialStoragePolicy() {
76 return NULL; 71 return NULL;
77 } 72 }
OLDNEW
« 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