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

Side by Side Diff: chrome/browser/ui/webui/print_preview/print_preview_ui.h

Issue 1362223002: Cleanup: Remove references to tests that no longer exists / are unused. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: IWYU Created 5 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
OLDNEW
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 #ifndef CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_UI_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_UI_H_
6 #define CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_UI_H_ 6 #define CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_UI_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/callback_forward.h" 10 #include "base/callback_forward.h"
(...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after
163 // Allows for tests to set a file path to print a PDF to. This also initiates 163 // Allows for tests to set a file path to print a PDF to. This also initiates
164 // the printing without having to click a button on the print preview dialog. 164 // the printing without having to click a button on the print preview dialog.
165 void SetSelectedFileForTesting(const base::FilePath& path); 165 void SetSelectedFileForTesting(const base::FilePath& path);
166 166
167 // Passes |closure| to PrintPreviewHandler::SetPdfSavedClosureForTesting(). 167 // Passes |closure| to PrintPreviewHandler::SetPdfSavedClosureForTesting().
168 void SetPdfSavedClosureForTesting(const base::Closure& closure); 168 void SetPdfSavedClosureForTesting(const base::Closure& closure);
169 169
170 base::WeakPtr<PrintPreviewUI> GetWeakPtr(); 170 base::WeakPtr<PrintPreviewUI> GetWeakPtr();
171 171
172 private: 172 private:
173 friend class PrintPreviewHandlerTest;
174 FRIEND_TEST_ALL_PREFIXES(PrintPreviewHandlerTest, StickyMarginsCustom);
175 FRIEND_TEST_ALL_PREFIXES(PrintPreviewHandlerTest, StickyMarginsDefault);
176 FRIEND_TEST_ALL_PREFIXES(PrintPreviewHandlerTest,
177 StickyMarginsCustomThenDefault);
178 FRIEND_TEST_ALL_PREFIXES(PrintPreviewHandlerTest,
179 GetLastUsedMarginSettingsCustom);
180 FRIEND_TEST_ALL_PREFIXES(PrintPreviewHandlerTest,
181 GetLastUsedMarginSettingsDefault);
182 FRIEND_TEST_ALL_PREFIXES(PrintPreviewDialogControllerUnitTest, 173 FRIEND_TEST_ALL_PREFIXES(PrintPreviewDialogControllerUnitTest,
183 TitleAfterReload); 174 TitleAfterReload);
184 175
185 // Returns the Singleton instance of the PrintPreviewDataService. 176 // Returns the Singleton instance of the PrintPreviewDataService.
186 PrintPreviewDataService* print_preview_data_service(); 177 PrintPreviewDataService* print_preview_data_service();
187 178
188 base::TimeTicks initial_preview_start_time_; 179 base::TimeTicks initial_preview_start_time_;
189 180
190 // The unique ID for this class instance. Stored here to avoid calling 181 // The unique ID for this class instance. Stored here to avoid calling
191 // GetIDForPrintPreviewUI() everywhere. 182 // GetIDForPrintPreviewUI() everywhere.
(...skipping 17 matching lines...) Expand all
209 200
210 // Keeps track of whether OnClosePrintPreviewDialog() has been called or not. 201 // Keeps track of whether OnClosePrintPreviewDialog() has been called or not.
211 bool dialog_closed_; 202 bool dialog_closed_;
212 203
213 base::WeakPtrFactory<PrintPreviewUI> weak_ptr_factory_; 204 base::WeakPtrFactory<PrintPreviewUI> weak_ptr_factory_;
214 205
215 DISALLOW_COPY_AND_ASSIGN(PrintPreviewUI); 206 DISALLOW_COPY_AND_ASSIGN(PrintPreviewUI);
216 }; 207 };
217 208
218 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_UI_H_ 209 #endif // CHROME_BROWSER_UI_WEBUI_PRINT_PREVIEW_PRINT_PREVIEW_UI_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/ntp/new_tab_ui.h ('k') | chrome/browser/ui/webui/print_preview/sticky_settings.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698