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

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

Issue 62117: linux: pass a bunch more ui tests. (Closed)
Patch Set: more tests Created 11 years, 8 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
« no previous file with comments | « chrome/common/temp_scaffolding_stubs.cc ('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) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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 7
8 // This file provides a common base for running UI unit tests, which operate 8 // This file provides a common base for running UI unit tests, which operate
9 // the entire browser application in a separate process for holistic 9 // the entire browser application in a separate process for holistic
10 // functional testing. 10 // functional testing.
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 virtual void SetUp(); 56 virtual void SetUp();
57 57
58 // Closes the browser window. 58 // Closes the browser window.
59 virtual void TearDown(); 59 virtual void TearDown();
60 60
61 // Set up the test time out values. 61 // Set up the test time out values.
62 virtual void InitializeTimeouts(); 62 virtual void InitializeTimeouts();
63 63
64 // ********* Utility functions ********* 64 // ********* Utility functions *********
65 65
66 // Tries to delete the specified file/directory returning true on success. 66 // Tries to delete the specified file/directory returning true on
67 // This differs from file_util::Delete in that it repeatedly invokes Delete 67 // success. This differs from file_util::Delete in that it
68 // until successful, or a timeout is reached. Returns true on success. 68 // repeatedly invokes Delete until successful, or a timeout is
69 // reached. (This retrying is to work around Windows file locks
70 // and shouldn't be necessary on POSIX, but it can't hurt.)
71 // Returns true on success.
72 bool DieFileDie(const FilePath& file, bool recurse);
73 // Deprecated backwards-compat version.
69 bool DieFileDie(const std::wstring& file, bool recurse); 74 bool DieFileDie(const std::wstring& file, bool recurse);
70 75
71 // Launches the browser and IPC testing server. 76 // Launches the browser and IPC testing server.
72 void LaunchBrowserAndServer(); 77 void LaunchBrowserAndServer();
73 78
74 // Overridable so that derived classes can provide their own AutomationProxy. 79 // Overridable so that derived classes can provide their own AutomationProxy.
75 virtual AutomationProxy* CreateAutomationProxy(int execution_timeout); 80 virtual AutomationProxy* CreateAutomationProxy(int execution_timeout);
76 81
77 // Closes the browser and IPC testing server. 82 // Closes the browser and IPC testing server.
78 void CloseBrowserAndServer(); 83 void CloseBrowserAndServer();
(...skipping 404 matching lines...) Expand 10 before | Expand all | Expand 10 after
483 #ifdef UNIT_TEST 488 #ifdef UNIT_TEST
484 std::ostream& operator<<(std::ostream& out, const std::wstring& wstr); 489 std::ostream& operator<<(std::ostream& out, const std::wstring& wstr);
485 490
486 template<typename T> 491 template<typename T>
487 std::ostream& operator<<(std::ostream& out, const ::scoped_ptr<T>& ptr) { 492 std::ostream& operator<<(std::ostream& out, const ::scoped_ptr<T>& ptr) {
488 return out << ptr.get(); 493 return out << ptr.get();
489 } 494 }
490 #endif // UNIT_TEST 495 #endif // UNIT_TEST
491 496
492 #endif // CHROME_TEST_UI_UI_TEST_H_ 497 #endif // CHROME_TEST_UI_UI_TEST_H_
OLDNEW
« no previous file with comments | « chrome/common/temp_scaffolding_stubs.cc ('k') | chrome/test/ui/ui_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698