OLD | NEW |
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 Loading... |
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 Loading... |
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 } |
OLD | NEW |