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

Side by Side Diff: chrome/test/testing_profile.cc

Issue 7129018: Time-based removal of temporary file systems via BrowsingDataRemover (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/test/testing_profile.h ('k') | webkit/quota/mock_quota_manager.h » ('j') | 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/testing_profile.h" 5 #include "chrome/test/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 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 #include "content/browser/mock_resource_context.h" 52 #include "content/browser/mock_resource_context.h"
53 #include "content/common/notification_service.h" 53 #include "content/common/notification_service.h"
54 #include "net/base/cookie_monster.h" 54 #include "net/base/cookie_monster.h"
55 #include "net/url_request/url_request_context.h" 55 #include "net/url_request/url_request_context.h"
56 #include "net/url_request/url_request_context_getter.h" 56 #include "net/url_request/url_request_context_getter.h"
57 #include "net/url_request/url_request_test_util.h" 57 #include "net/url_request/url_request_test_util.h"
58 #include "testing/gmock/include/gmock/gmock.h" 58 #include "testing/gmock/include/gmock/gmock.h"
59 #include "webkit/database/database_tracker.h" 59 #include "webkit/database/database_tracker.h"
60 #include "webkit/fileapi/file_system_context.h" 60 #include "webkit/fileapi/file_system_context.h"
61 #include "webkit/quota/quota_manager.h" 61 #include "webkit/quota/quota_manager.h"
62 #include "webkit/quota/mock_quota_manager.h"
62 63
63 using base::Time; 64 using base::Time;
64 using testing::NiceMock; 65 using testing::NiceMock;
65 using testing::Return; 66 using testing::Return;
66 67
67 namespace { 68 namespace {
68 69
69 // Task used to make sure history has finished processing a request. Intended 70 // Task used to make sure history has finished processing a request. Intended
70 // for use with BlockUntilHistoryProcessesPendingRequests. 71 // for use with BlockUntilHistoryProcessesPendingRequests.
71 72
(...skipping 464 matching lines...) Expand 10 before | Expand all | Expand 10 after
536 NULL, 537 NULL,
537 GetPath(), 538 GetPath(),
538 IsOffTheRecord(), 539 IsOffTheRecord(),
539 true, // Allow file access from files. 540 true, // Allow file access from files.
540 true, // Unlimited quota. 541 true, // Unlimited quota.
541 NULL); 542 NULL);
542 } 543 }
543 return file_system_context_.get(); 544 return file_system_context_.get();
544 } 545 }
545 546
547 void TestingProfile::SetQuotaManager(quota::QuotaManager* manager) {
548 quota_manager_ = manager;
549 }
550
546 quota::QuotaManager* TestingProfile::GetQuotaManager() { 551 quota::QuotaManager* TestingProfile::GetQuotaManager() {
547 return NULL; 552 return quota_manager_.get();
548 } 553 }
549 554
550 BrowserSignin* TestingProfile::GetBrowserSignin() { 555 BrowserSignin* TestingProfile::GetBrowserSignin() {
551 return NULL; 556 return NULL;
552 } 557 }
553 558
554 bool TestingProfile::HasCreatedDownloadManager() const { 559 bool TestingProfile::HasCreatedDownloadManager() const {
555 return false; 560 return false;
556 } 561 }
557 562
(...skipping 229 matching lines...) Expand 10 before | Expand all | Expand 10 after
787 quota::SpecialStoragePolicy* TestingProfile::GetSpecialStoragePolicy() { 792 quota::SpecialStoragePolicy* TestingProfile::GetSpecialStoragePolicy() {
788 return GetExtensionSpecialStoragePolicy(); 793 return GetExtensionSpecialStoragePolicy();
789 } 794 }
790 795
791 void TestingProfile::DestroyWebDataService() { 796 void TestingProfile::DestroyWebDataService() {
792 if (!web_data_service_.get()) 797 if (!web_data_service_.get())
793 return; 798 return;
794 799
795 web_data_service_->Shutdown(); 800 web_data_service_->Shutdown();
796 } 801 }
OLDNEW
« no previous file with comments | « chrome/test/testing_profile.h ('k') | webkit/quota/mock_quota_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698