OLD | NEW |
(Empty) | |
| 1 // Copyright (c) 2010 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_TESTSUITE_H_ |
| 6 #define CHROME_TEST_WTFLIB_WTF_TESTSUITE_H_ |
| 7 |
| 8 #include <string> |
| 9 |
| 10 #include "base/scoped_nsautorelease_pool.h" |
| 11 #include "chrome/test/ui/ui_test.h" |
| 12 |
| 13 |
| 14 class WTFTestSuite : public UITestBase { |
| 15 public: |
| 16 // Only public methods are accessible from swig. |
| 17 |
| 18 // Constructor. Lookup pyauto.py for doc on these args. |
| 19 WTFTestSuite(bool clear_profile, std::wstring homepage); |
| 20 |
| 21 ~WTFTestSuite(); |
| 22 |
| 23 // Initialize the setup. Should be called before launching the browser. |
| 24 // |browser_dir| is the path to dir containing chromium binaries. |
| 25 void Initialize(const FilePath& browser_dir); |
| 26 |
| 27 // SetUp,TearDown is redeclared as public to make it accessible from swig. |
| 28 virtual void SetUp(); |
| 29 virtual void TearDown(); |
| 30 |
| 31 // Navigate to the given URL in the active tab. Blocks until page loaded. |
| 32 void NavigateToURL(const std::string url_string); |
| 33 |
| 34 // AutomationProxy methods |
| 35 // Open a new browser window. Returns false on failure. |
| 36 bool OpenNewBrowserWindow(bool show); |
| 37 |
| 38 private: |
| 39 base::ScopedNSAutoreleasePool pool_; |
| 40 |
| 41 DISALLOW_COPY_AND_ASSIGN(WTFTestSuite); |
| 42 }; |
| 43 |
| 44 #endif // CHROME_TEST_WTFLIB_WTF_TESTSUITE_H_ |
OLD | NEW |