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

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

Issue 8437002: Move BrowserThread to content namespace. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: A few updates. Created 9 years, 1 month 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) 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/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 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 #include "net/url_request/url_request_context.h" 56 #include "net/url_request/url_request_context.h"
57 #include "net/url_request/url_request_context_getter.h" 57 #include "net/url_request/url_request_context_getter.h"
58 #include "net/url_request/url_request_test_util.h" 58 #include "net/url_request/url_request_test_util.h"
59 #include "testing/gmock/include/gmock/gmock.h" 59 #include "testing/gmock/include/gmock/gmock.h"
60 #include "webkit/database/database_tracker.h" 60 #include "webkit/database/database_tracker.h"
61 #include "webkit/fileapi/file_system_context.h" 61 #include "webkit/fileapi/file_system_context.h"
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 using base::Time; 65 using base::Time;
66 using content::BrowserThread;
66 using testing::NiceMock; 67 using testing::NiceMock;
67 using testing::Return; 68 using testing::Return;
68 69
69 namespace { 70 namespace {
70 71
71 // Task used to make sure history has finished processing a request. Intended 72 // Task used to make sure history has finished processing a request. Intended
72 // for use with BlockUntilHistoryProcessesPendingRequests. 73 // for use with BlockUntilHistoryProcessesPendingRequests.
73 74
74 class QuittingHistoryDBTask : public HistoryDBTask { 75 class QuittingHistoryDBTask : public HistoryDBTask {
75 public: 76 public:
(...skipping 716 matching lines...) Expand 10 before | Expand all | Expand 10 after
792 quota::SpecialStoragePolicy* TestingProfile::GetSpecialStoragePolicy() { 793 quota::SpecialStoragePolicy* TestingProfile::GetSpecialStoragePolicy() {
793 return GetExtensionSpecialStoragePolicy(); 794 return GetExtensionSpecialStoragePolicy();
794 } 795 }
795 796
796 void TestingProfile::DestroyWebDataService() { 797 void TestingProfile::DestroyWebDataService() {
797 if (!web_data_service_.get()) 798 if (!web_data_service_.get())
798 return; 799 return;
799 800
800 web_data_service_->Shutdown(); 801 web_data_service_->Shutdown();
801 } 802 }
OLDNEW
« no previous file with comments | « chrome/test/base/test_url_request_context_getter.cc ('k') | chrome/test/base/thread_observer_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698