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

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

Issue 9564001: Clean up password manager code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add a unit test for sub-frame navigation Created 8 years, 9 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) 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/mock_resource_context.h" 8 #include "content/browser/mock_resource_context.h"
9 #include "testing/gtest/include/gtest/gtest.h" 9 #include "testing/gtest/include/gtest/gtest.h"
10 #include "webkit/quota/special_storage_policy.h" 10 #include "webkit/quota/special_storage_policy.h"
(...skipping 13 matching lines...) Expand all
24 24
25 void TestBrowserContext::SetSpecialStoragePolicy( 25 void TestBrowserContext::SetSpecialStoragePolicy(
26 quota::SpecialStoragePolicy* policy) { 26 quota::SpecialStoragePolicy* policy) {
27 special_storage_policy_ = policy; 27 special_storage_policy_ = policy;
28 } 28 }
29 29
30 FilePath TestBrowserContext::GetPath() { 30 FilePath TestBrowserContext::GetPath() {
31 return browser_context_dir_.path(); 31 return browser_context_dir_.path();
32 } 32 }
33 33
34 bool TestBrowserContext::IsOffTheRecord() { 34 bool TestBrowserContext::IsOffTheRecord() const {
35 return false; 35 return false;
36 } 36 }
37 37
38 DownloadManager* TestBrowserContext::GetDownloadManager() { 38 DownloadManager* TestBrowserContext::GetDownloadManager() {
39 return NULL; 39 return NULL;
40 } 40 }
41 41
42 net::URLRequestContextGetter* TestBrowserContext::GetRequestContext() { 42 net::URLRequestContextGetter* TestBrowserContext::GetRequestContext() {
43 return NULL; 43 return NULL;
44 } 44 }
(...skipping 23 matching lines...) Expand all
68 return NULL; 68 return NULL;
69 } 69 }
70 70
71 bool TestBrowserContext::DidLastSessionExitCleanly() { 71 bool TestBrowserContext::DidLastSessionExitCleanly() {
72 return true; 72 return true;
73 } 73 }
74 74
75 quota::SpecialStoragePolicy* TestBrowserContext::GetSpecialStoragePolicy() { 75 quota::SpecialStoragePolicy* TestBrowserContext::GetSpecialStoragePolicy() {
76 return special_storage_policy_.get(); 76 return special_storage_policy_.get();
77 } 77 }
OLDNEW
« chrome/browser/password_manager/password_manager.h ('K') | « content/test/test_browser_context.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698