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

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

Issue 7799019: Print Preview: Add a test for activating the initiator tab on print. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: reinterpret_cast -> static_cast Created 9 years, 3 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
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 108 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 virtual MHTMLGenerationManager* mhtml_generation_manager(); 119 virtual MHTMLGenerationManager* mhtml_generation_manager();
120 virtual GpuBlacklistUpdater* gpu_blacklist_updater(); 120 virtual GpuBlacklistUpdater* gpu_blacklist_updater();
121 virtual ComponentUpdateService* component_updater(); 121 virtual ComponentUpdateService* component_updater();
122 122
123 // Set the local state for tests. Consumer is responsible for cleaning it up 123 // Set the local state for tests. Consumer is responsible for cleaning it up
124 // afterwards (using ScopedTestingLocalState, for example). 124 // afterwards (using ScopedTestingLocalState, for example).
125 void SetLocalState(PrefService* local_state); 125 void SetLocalState(PrefService* local_state);
126 void SetGoogleURLTracker(GoogleURLTracker* google_url_tracker); 126 void SetGoogleURLTracker(GoogleURLTracker* google_url_tracker);
127 void SetProfileManager(ProfileManager* profile_manager); 127 void SetProfileManager(ProfileManager* profile_manager);
128 void SetIOThread(IOThread* io_thread); 128 void SetIOThread(IOThread* io_thread);
129 void SetDevToolsManager(DevToolsManager*); 129 void SetDevToolsManager(DevToolsManager* manager);
130 130
131 private: 131 private:
132 NotificationService notification_service_; 132 NotificationService notification_service_;
133 unsigned int module_ref_count_; 133 unsigned int module_ref_count_;
134 scoped_ptr<ui::Clipboard> clipboard_; 134 scoped_ptr<ui::Clipboard> clipboard_;
135 std::string app_locale_; 135 std::string app_locale_;
136 136
137 // Weak pointer. 137 // Weak pointer.
138 PrefService* local_state_; 138 PrefService* local_state_;
139 scoped_ptr<policy::BrowserPolicyConnector> browser_policy_connector_; 139 scoped_ptr<policy::BrowserPolicyConnector> browser_policy_connector_;
140 scoped_ptr<GoogleURLTracker> google_url_tracker_; 140 scoped_ptr<GoogleURLTracker> google_url_tracker_;
141 scoped_ptr<ProfileManager> profile_manager_; 141 scoped_ptr<ProfileManager> profile_manager_;
142 scoped_ptr<NotificationUIManager> notification_ui_manager_; 142 scoped_ptr<NotificationUIManager> notification_ui_manager_;
143 scoped_ptr<printing::BackgroundPrintingManager> background_printing_manager_; 143 scoped_ptr<printing::BackgroundPrintingManager> background_printing_manager_;
144 scoped_refptr<printing::PrintPreviewTabController>
145 print_preview_tab_controller_;
144 scoped_ptr<prerender::PrerenderTracker> prerender_tracker_; 146 scoped_ptr<prerender::PrerenderTracker> prerender_tracker_;
145 IOThread* io_thread_; 147 IOThread* io_thread_;
146 scoped_ptr<DevToolsManager> devtools_manager_; 148 scoped_ptr<DevToolsManager> devtools_manager_;
147 149
148 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcess); 150 DISALLOW_COPY_AND_ASSIGN(TestingBrowserProcess);
149 }; 151 };
150 152
151 #endif // CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_ 153 #endif // CHROME_TEST_BASE_TESTING_BROWSER_PROCESS_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698