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

Side by Side Diff: chrome/test/base/testing_browser_process.h

Issue 8769013: Remove BrowserThread::UnsafeGetBrowserThread, add UnsafeGetMessageLoopForThread. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge to lkgr (pure merge). Created 9 years 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 // An implementation of BrowserProcess for unit tests that fails for most 5 // An implementation of BrowserProcess for unit tests that fails for most
6 // services. By preventing creation of services, we reduce dependencies and 6 // services. By preventing creation of services, we reduce dependencies and
7 // keep the profile clean. Clients of this class must handle the NULL return 7 // keep the profile clean. Clients of this class must handle the NULL return
8 // value, however. 8 // value, however.
9 9
10 #ifndef CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_ 10 #ifndef CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_
(...skipping 30 matching lines...) Expand all
41 41
42 class TestingBrowserProcess : public BrowserProcess { 42 class TestingBrowserProcess : public BrowserProcess {
43 public: 43 public:
44 TestingBrowserProcess(); 44 TestingBrowserProcess();
45 virtual ~TestingBrowserProcess(); 45 virtual ~TestingBrowserProcess();
46 46
47 virtual void EndSession() OVERRIDE; 47 virtual void EndSession() OVERRIDE;
48 virtual ResourceDispatcherHost* resource_dispatcher_host() OVERRIDE; 48 virtual ResourceDispatcherHost* resource_dispatcher_host() OVERRIDE;
49 virtual MetricsService* metrics_service() OVERRIDE; 49 virtual MetricsService* metrics_service() OVERRIDE;
50 virtual IOThread* io_thread() OVERRIDE; 50 virtual IOThread* io_thread() OVERRIDE;
51
52 virtual base::Thread* file_thread() OVERRIDE;
53 virtual base::Thread* db_thread() OVERRIDE;
54 virtual WatchDogThread* watchdog_thread() OVERRIDE; 51 virtual WatchDogThread* watchdog_thread() OVERRIDE;
55
56 #if defined(OS_CHROMEOS)
57 virtual base::Thread* web_socket_proxy_thread() OVERRIDE;
58 #endif
59
60 virtual ProfileManager* profile_manager() OVERRIDE; 52 virtual ProfileManager* profile_manager() OVERRIDE;
61 virtual PrefService* local_state() OVERRIDE; 53 virtual PrefService* local_state() OVERRIDE;
62 virtual policy::BrowserPolicyConnector* browser_policy_connector() OVERRIDE; 54 virtual policy::BrowserPolicyConnector* browser_policy_connector() OVERRIDE;
63 virtual IconManager* icon_manager() OVERRIDE; 55 virtual IconManager* icon_manager() OVERRIDE;
64 virtual ThumbnailGenerator* GetThumbnailGenerator() OVERRIDE; 56 virtual ThumbnailGenerator* GetThumbnailGenerator() OVERRIDE;
65 virtual SidebarManager* sidebar_manager() OVERRIDE; 57 virtual SidebarManager* sidebar_manager() OVERRIDE;
66 virtual TabCloseableStateWatcher* tab_closeable_state_watcher() OVERRIDE; 58 virtual TabCloseableStateWatcher* tab_closeable_state_watcher() OVERRIDE;
67 virtual BackgroundModeManager* background_mode_manager() OVERRIDE; 59 virtual BackgroundModeManager* background_mode_manager() OVERRIDE;
68 virtual StatusTray* status_tray() OVERRIDE; 60 virtual StatusTray* status_tray() OVERRIDE;
69 virtual SafeBrowsingService* safe_browsing_service() OVERRIDE; 61 virtual SafeBrowsingService* safe_browsing_service() OVERRIDE;
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 scoped_ptr<printing::BackgroundPrintingManager> background_printing_manager_; 126 scoped_ptr<printing::BackgroundPrintingManager> background_printing_manager_;
135 scoped_refptr<printing::PrintPreviewTabController> 127 scoped_refptr<printing::PrintPreviewTabController>
136 print_preview_tab_controller_; 128 print_preview_tab_controller_;
137 scoped_ptr<prerender::PrerenderTracker> prerender_tracker_; 129 scoped_ptr<prerender::PrerenderTracker> prerender_tracker_;
138 IOThread* io_thread_; 130 IOThread* io_thread_;
139 131
140 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcess); 132 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcess);
141 }; 133 };
142 134
143 #endif // CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_ 135 #endif // CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/options/advanced_options_utils_win.cc ('k') | chrome/test/base/testing_browser_process.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698