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

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

Issue 395783002: [DevTools] Move DevToolsWindow testing code to a separate class. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased, added cleanup to some tests Created 6 years, 5 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/chrome_tests.gypi ('k') | chrome/test/base/ui_test_utils.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 (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_TEST_BASE_UI_TEST_UTILS_H_ 5 #ifndef CHROME_TEST_BASE_UI_TEST_UTILS_H_
6 #define CHROME_TEST_BASE_UI_TEST_UTILS_H_ 6 #define CHROME_TEST_BASE_UI_TEST_UTILS_H_
7 7
8 #include <map> 8 #include <map>
9 #include <queue> 9 #include <queue>
10 #include <set> 10 #include <set>
(...skipping 10 matching lines...) Expand all
21 #include "content/public/browser/notification_source.h" 21 #include "content/public/browser/notification_source.h"
22 #include "content/public/test/test_utils.h" 22 #include "content/public/test/test_utils.h"
23 #include "testing/gtest/include/gtest/gtest.h" 23 #include "testing/gtest/include/gtest/gtest.h"
24 #include "ui/base/window_open_disposition.h" 24 #include "ui/base/window_open_disposition.h"
25 #include "ui/events/keycodes/keyboard_codes.h" 25 #include "ui/events/keycodes/keyboard_codes.h"
26 #include "ui/gfx/native_widget_types.h" 26 #include "ui/gfx/native_widget_types.h"
27 #include "url/gurl.h" 27 #include "url/gurl.h"
28 28
29 class AppModalDialog; 29 class AppModalDialog;
30 class Browser; 30 class Browser;
31 class DevToolsWindow;
32 class LocationBar; 31 class LocationBar;
33 class Profile; 32 class Profile;
34 class SkBitmap; 33 class SkBitmap;
35 class TemplateURLService; 34 class TemplateURLService;
36 35
37 namespace base { 36 namespace base {
38 class FilePath; 37 class FilePath;
39 } 38 }
40 39
41 namespace chrome { 40 namespace chrome {
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
104 const GURL& url, 103 const GURL& url,
105 WindowOpenDisposition disposition, 104 WindowOpenDisposition disposition,
106 int browser_test_flags); 105 int browser_test_flags);
107 106
108 // Navigates the selected tab of |browser| to |url|, blocking until the 107 // Navigates the selected tab of |browser| to |url|, blocking until the
109 // number of navigations specified complete. 108 // number of navigations specified complete.
110 void NavigateToURLBlockUntilNavigationsComplete(Browser* browser, 109 void NavigateToURLBlockUntilNavigationsComplete(Browser* browser,
111 const GURL& url, 110 const GURL& url,
112 int number_of_navigations); 111 int number_of_navigations);
113 112
114 // Blocks until DevTools window is loaded.
115 void WaitUntilDevToolsWindowLoaded(DevToolsWindow* window);
116
117 // Generate the file path for testing a particular test. 113 // Generate the file path for testing a particular test.
118 // The file for the tests is all located in 114 // The file for the tests is all located in
119 // test_root_directory/dir/<file> 115 // test_root_directory/dir/<file>
120 // The returned path is base::FilePath format. 116 // The returned path is base::FilePath format.
121 base::FilePath GetTestFilePath(const base::FilePath& dir, 117 base::FilePath GetTestFilePath(const base::FilePath& dir,
122 const base::FilePath& file); 118 const base::FilePath& file);
123 119
124 // Generate the URL for testing a particular test. 120 // Generate the URL for testing a particular test.
125 // HTML for the tests is all located in 121 // HTML for the tests is all located in
126 // test_root_directory/dir/<file> 122 // test_root_directory/dir/<file>
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
306 std::vector<GURL> urls_; 302 std::vector<GURL> urls_;
307 303
308 base::CancelableTaskTracker tracker_; 304 base::CancelableTaskTracker tracker_;
309 305
310 DISALLOW_COPY_AND_ASSIGN(HistoryEnumerator); 306 DISALLOW_COPY_AND_ASSIGN(HistoryEnumerator);
311 }; 307 };
312 308
313 } // namespace ui_test_utils 309 } // namespace ui_test_utils
314 310
315 #endif // CHROME_TEST_BASE_UI_TEST_UTILS_H_ 311 #endif // CHROME_TEST_BASE_UI_TEST_UTILS_H_
OLDNEW
« no previous file with comments | « chrome/chrome_tests.gypi ('k') | chrome/test/base/ui_test_utils.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698