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

Side by Side Diff: chrome/browser/ui/webui/web_ui_browsertest.h

Issue 7574002: Be able to print items that do window.print(); window.close() (airline tix e.g.) (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address Kausalya's comments. 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
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 #ifndef CHROME_BROWSER_UI_WEBUI_WEB_UI_BROWSERTEST_H_ 5 #ifndef CHROME_BROWSER_UI_WEBUI_WEB_UI_BROWSERTEST_H_
6 #define CHROME_BROWSER_UI_WEBUI_WEB_UI_BROWSERTEST_H_ 6 #define CHROME_BROWSER_UI_WEBUI_WEB_UI_BROWSERTEST_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after
100 // the javascript for the given |preload_test_fixture| and 100 // the javascript for the given |preload_test_fixture| and
101 // |preload_test_name|. chrome.send will be overridden to allow javascript 101 // |preload_test_name|. chrome.send will be overridden to allow javascript
102 // handler mocking. 102 // handler mocking.
103 void BrowsePreload(const GURL& browse_to, 103 void BrowsePreload(const GURL& browse_to,
104 const std::string& preload_test_fixture, 104 const std::string& preload_test_fixture,
105 const std::string& preload_test_name); 105 const std::string& preload_test_name);
106 106
107 // Called by javascript-generated test bodies to browse to a page and preload 107 // Called by javascript-generated test bodies to browse to a page and preload
108 // the javascript for the given |preload_test_fixture| and 108 // the javascript for the given |preload_test_fixture| and
109 // |preload_test_name|. chrome.send will be overridden to allow javascript 109 // |preload_test_name|. chrome.send will be overridden to allow javascript
110 // handler mocking. 110 // handler mocking. When |no_print| is false, call browser()->Print()
111 void BrowsePrintPreload(const GURL& browse_to, 111 void BrowsePrintPreload(const GURL& browse_to,
112 const std::string& preload_test_fixture, 112 const std::string& preload_test_fixture,
113 const std::string& preload_test_name); 113 const std::string& preload_test_name,
114 bool no_print);
114 115
115 protected: 116 protected:
116 WebUIBrowserTest(); 117 WebUIBrowserTest();
117 118
118 // Setup test path. 119 // Setup test path.
119 virtual void SetUpInProcessBrowserTestFixture(); 120 virtual void SetUpInProcessBrowserTestFixture();
120 121
121 // Returns a mock WebUI object under test (if any). 122 // Returns a mock WebUI object under test (if any).
122 virtual WebUIMessageHandler* GetMockMessageHandler(); 123 virtual WebUIMessageHandler* GetMockMessageHandler();
123 124
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
167 // again. 168 // again.
168 bool libraries_preloaded_; 169 bool libraries_preloaded_;
169 170
170 // Saves the states of |test_fixture| and |test_name| for calling 171 // Saves the states of |test_fixture| and |test_name| for calling
171 // PreloadJavascriptLibraries(). 172 // PreloadJavascriptLibraries().
172 std::string preload_test_fixture_; 173 std::string preload_test_fixture_;
173 std::string preload_test_name_; 174 std::string preload_test_name_;
174 }; 175 };
175 176
176 #endif // CHROME_BROWSER_UI_WEBUI_WEB_UI_BROWSERTEST_H_ 177 #endif // CHROME_BROWSER_UI_WEBUI_WEB_UI_BROWSERTEST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698