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

Side by Side Diff: chrome/test/ui/ui_test.h

Issue 6159001: Modifying some downloads hooks to act per-window (so that incognito windows c... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 11 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/pyautolib/pyautolib.i ('k') | chrome/test/ui/ui_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 (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_TEST_UI_UI_TEST_H_ 5 #ifndef CHROME_TEST_UI_UI_TEST_H_
6 #define CHROME_TEST_UI_UI_TEST_H_ 6 #define CHROME_TEST_UI_UI_TEST_H_
7 #pragma once 7 #pragma once
8 8
9 // This file provides a common base for running UI unit tests, which operate 9 // This file provides a common base for running UI unit tests, which operate
10 // the entire browser application in a separate process for holistic 10 // the entire browser application in a separate process for holistic
(...skipping 102 matching lines...) Expand 10 before | Expand all | Expand 10 after
113 // Tells the browser to navigate to the given URL in the active tab 113 // Tells the browser to navigate to the given URL in the active tab
114 // of the first app window. 114 // of the first app window.
115 // Does not wait for the navigation to complete to return. 115 // Does not wait for the navigation to complete to return.
116 void NavigateToURLAsync(const GURL& url); 116 void NavigateToURLAsync(const GURL& url);
117 117
118 // Tells the browser to navigate to the given URL in the active tab 118 // Tells the browser to navigate to the given URL in the active tab
119 // of the first app window. 119 // of the first app window.
120 // This method doesn't return until the navigation is complete. 120 // This method doesn't return until the navigation is complete.
121 void NavigateToURL(const GURL& url); 121 void NavigateToURL(const GURL& url);
122 122
123 // Navigate to the given URL in the active tab of the given app window.
124 void NavigateToURL(const GURL& url, int window_index);
125
123 // Same as above, except in the given tab and window. 126 // Same as above, except in the given tab and window.
124 void NavigateToURL(const GURL& url, int window_index, int tab_index); 127 void NavigateToURL(const GURL& url, int window_index, int tab_index);
125 128
126 // Tells the browser to navigate to the given URL in the active tab 129 // Tells the browser to navigate to the given URL in the active tab
127 // of the first app window. 130 // of the first app window.
128 // This method doesn't return until the |number_of_navigations| navigations 131 // This method doesn't return until the |number_of_navigations| navigations
129 // complete. 132 // complete.
130 void NavigateToURLBlockUntilNavigationsComplete(const GURL& url, 133 void NavigateToURLBlockUntilNavigationsComplete(const GURL& url,
131 int number_of_navigations); 134 int number_of_navigations);
132 135
(...skipping 375 matching lines...) Expand 10 before | Expand all | Expand 10 after
508 #ifdef UNIT_TEST 511 #ifdef UNIT_TEST
509 std::ostream& operator<<(std::ostream& out, const std::wstring& wstr); 512 std::ostream& operator<<(std::ostream& out, const std::wstring& wstr);
510 513
511 template<typename T> 514 template<typename T>
512 std::ostream& operator<<(std::ostream& out, const ::scoped_ptr<T>& ptr) { 515 std::ostream& operator<<(std::ostream& out, const ::scoped_ptr<T>& ptr) {
513 return out << ptr.get(); 516 return out << ptr.get();
514 } 517 }
515 #endif // UNIT_TEST 518 #endif // UNIT_TEST
516 519
517 #endif // CHROME_TEST_UI_UI_TEST_H_ 520 #endif // CHROME_TEST_UI_UI_TEST_H_
OLDNEW
« no previous file with comments | « chrome/test/pyautolib/pyautolib.i ('k') | chrome/test/ui/ui_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698