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

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

Issue 365513002: Port identity_internals to mojo (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase to ToT for commit Created 6 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
« no previous file with comments | « chrome/test/base/js2gtest.js ('k') | chrome/test/base/web_ui_browser_test.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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_TEST_BASE_WEB_UI_BROWSER_TEST_H_ 5 #ifndef CHROME_TEST_BASE_WEB_UI_BROWSER_TEST_H_
6 #define CHROME_TEST_BASE_WEB_UI_BROWSER_TEST_H_ 6 #define CHROME_TEST_BASE_WEB_UI_BROWSER_TEST_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
88 void PreLoadJavascriptLibraries(const std::string& preload_test_fixture, 88 void PreLoadJavascriptLibraries(const std::string& preload_test_fixture,
89 const std::string& preload_test_name, 89 const std::string& preload_test_name,
90 content::RenderViewHost* preload_host); 90 content::RenderViewHost* preload_host);
91 91
92 // Called by javascript-generated test bodies to browse to a page and preload 92 // Called by javascript-generated test bodies to browse to a page and preload
93 // the javascript for the given |preload_test_fixture| and 93 // the javascript for the given |preload_test_fixture| and
94 // |preload_test_name|. chrome.send will be overridden to allow javascript 94 // |preload_test_name|. chrome.send will be overridden to allow javascript
95 // handler mocking. 95 // handler mocking.
96 void BrowsePreload(const GURL& browse_to); 96 void BrowsePreload(const GURL& browse_to);
97 97
98 // Called by javascript-generated test bodies. In addition to doing
99 // everything in BrowsePreload(), it also waits until the
100 // DidRunWebUIMojoMain() event fires.
101 void BrowsePreloadAndWaitForMain(const GURL& browse_to);
102
98 // Called by javascript-generated test bodies to browse to a page and preload 103 // Called by javascript-generated test bodies to browse to a page and preload
99 // the javascript for the given |preload_test_fixture| and 104 // the javascript for the given |preload_test_fixture| and
100 // |preload_test_name|. chrome.send will be overridden to allow javascript 105 // |preload_test_name|. chrome.send will be overridden to allow javascript
101 // handler mocking. 106 // handler mocking.
102 void BrowsePrintPreload(const GURL& browse_to); 107 void BrowsePrintPreload(const GURL& browse_to);
103 108
104 protected: 109 protected:
105 // URL to dummy WebUI page for testing framework. 110 // URL to dummy WebUI page for testing framework.
106 static const char kDummyURL[]; 111 static const char kDummyURL[];
107 112
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
155 std::string preload_test_name_; 160 std::string preload_test_name_;
156 161
157 // When this is non-NULL, this is The WebUI instance used for testing. 162 // When this is non-NULL, this is The WebUI instance used for testing.
158 // Otherwise the selected tab's web_ui is used. 163 // Otherwise the selected tab's web_ui is used.
159 content::WebUI* override_selected_web_ui_; 164 content::WebUI* override_selected_web_ui_;
160 165
161 scoped_ptr<TestChromeWebUIControllerFactory> test_factory_; 166 scoped_ptr<TestChromeWebUIControllerFactory> test_factory_;
162 }; 167 };
163 168
164 #endif // CHROME_TEST_BASE_WEB_UI_BROWSER_TEST_H_ 169 #endif // CHROME_TEST_BASE_WEB_UI_BROWSER_TEST_H_
OLDNEW
« no previous file with comments | « chrome/test/base/js2gtest.js ('k') | chrome/test/base/web_ui_browser_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698