OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_TEST_WTFLIB_WTF_H_ |
| 6 #define CHROME_TEST_WTFLIB_WTF_H_ |
| 7 |
| 8 #include <string> |
| 9 #include "base/basictypes.h" |
| 10 #include "base/scoped_ptr.h" |
| 11 |
| 12 |
| 13 namespace base { |
| 14 class ShadowingAtExitManager; |
| 15 } // namespace base |
| 16 class WTFTestSuite; |
| 17 |
| 18 |
| 19 class WTF { |
| 20 public: |
| 21 WTF(); |
| 22 ~WTF(); |
| 23 |
| 24 void Initialize(const std::string& browser_dir); |
| 25 |
| 26 // Navigate to the given URL in the active tab. Blocks until page loaded. |
| 27 void NavigateToURL(const std::string url_string); |
| 28 // Open a new browser window. Returns false on failure. |
| 29 bool OpenNewBrowserWindow(bool show); |
| 30 |
| 31 private: |
| 32 base::ShadowingAtExitManager* at_exit_manager_; |
| 33 WTFTestSuite* wtf_testsuite_; |
| 34 |
| 35 // Allow operator= and copy constructor for glue dependencies. |
| 36 }; |
| 37 |
| 38 |
| 39 #endif // CHROME_TEST_WTFLIB_WTF_H_ |
OLD | NEW |