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 "chrome/test/base/testing_profile.h" | 5 #include "chrome/test/base/testing_profile.h" |
6 | 6 |
7 #include "build/build_config.h" | 7 #include "build/build_config.h" |
8 | 8 |
9 #include "base/base_paths.h" | 9 #include "base/base_paths.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 #include "webkit/quota/mock_quota_manager.h" | 62 #include "webkit/quota/mock_quota_manager.h" |
63 #include "webkit/quota/quota_manager.h" | 63 #include "webkit/quota/quota_manager.h" |
64 | 64 |
65 #if defined(OS_CHROMEOS) | 65 #if defined(OS_CHROMEOS) |
66 #include "chrome/browser/chromeos/proxy_config_service_impl.h" | 66 #include "chrome/browser/chromeos/proxy_config_service_impl.h" |
67 #endif // defined(OS_CHROMEOS) | 67 #endif // defined(OS_CHROMEOS) |
68 | 68 |
69 using base::Time; | 69 using base::Time; |
70 using content::BrowserThread; | 70 using content::BrowserThread; |
71 using content::DownloadManager; | 71 using content::DownloadManager; |
| 72 using content::HostZoomMap; |
72 using testing::NiceMock; | 73 using testing::NiceMock; |
73 using testing::Return; | 74 using testing::Return; |
74 | 75 |
75 namespace { | 76 namespace { |
76 | 77 |
77 // Task used to make sure history has finished processing a request. Intended | 78 // Task used to make sure history has finished processing a request. Intended |
78 // for use with BlockUntilHistoryProcessesPendingRequests. | 79 // for use with BlockUntilHistoryProcessesPendingRequests. |
79 | 80 |
80 class QuittingHistoryDBTask : public HistoryDBTask { | 81 class QuittingHistoryDBTask : public HistoryDBTask { |
81 public: | 82 public: |
(...skipping 761 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
843 quota::SpecialStoragePolicy* TestingProfile::GetSpecialStoragePolicy() { | 844 quota::SpecialStoragePolicy* TestingProfile::GetSpecialStoragePolicy() { |
844 return GetExtensionSpecialStoragePolicy(); | 845 return GetExtensionSpecialStoragePolicy(); |
845 } | 846 } |
846 | 847 |
847 void TestingProfile::DestroyWebDataService() { | 848 void TestingProfile::DestroyWebDataService() { |
848 if (!web_data_service_.get()) | 849 if (!web_data_service_.get()) |
849 return; | 850 return; |
850 | 851 |
851 web_data_service_->Shutdown(); | 852 web_data_service_->Shutdown(); |
852 } | 853 } |
OLD | NEW |