Index: chrome/test/wtflib/wtf_testsuite.h |
=================================================================== |
--- chrome/test/wtflib/wtf_testsuite.h (revision 0) |
+++ chrome/test/wtflib/wtf_testsuite.h (revision 0) |
@@ -0,0 +1,44 @@ |
+// Copyright (c) 2010 The Chromium Authors. All rights reserved. |
+// Use of this source code is governed by a BSD-style license that can be |
+// found in the LICENSE file. |
+ |
+#ifndef CHROME_TEST_WTFLIB_WTF_TESTSUITE_H_ |
+#define CHROME_TEST_WTFLIB_WTF_TESTSUITE_H_ |
+ |
+#include <string> |
+ |
+#include "base/scoped_nsautorelease_pool.h" |
+#include "chrome/test/ui/ui_test.h" |
+ |
+ |
+class WTFTestSuite : public UITestBase { |
+ public: |
+ // Only public methods are accessible from swig. |
+ |
+ // Constructor. Lookup pyauto.py for doc on these args. |
+ WTFTestSuite(bool clear_profile, std::wstring homepage); |
+ |
+ ~WTFTestSuite(); |
+ |
+ // Initialize the setup. Should be called before launching the browser. |
+ // |browser_dir| is the path to dir containing chromium binaries. |
+ void Initialize(const FilePath& browser_dir); |
+ |
+ // SetUp,TearDown is redeclared as public to make it accessible from swig. |
+ virtual void SetUp(); |
+ virtual void TearDown(); |
+ |
+ // Navigate to the given URL in the active tab. Blocks until page loaded. |
+ void NavigateToURL(const std::string url_string); |
+ |
+ // AutomationProxy methods |
+ // Open a new browser window. Returns false on failure. |
+ bool OpenNewBrowserWindow(bool show); |
+ |
+ private: |
+ base::ScopedNSAutoreleasePool pool_; |
+ |
+ DISALLOW_COPY_AND_ASSIGN(WTFTestSuite); |
+}; |
+ |
+#endif // CHROME_TEST_WTFLIB_WTF_TESTSUITE_H_ |
Property changes on: chrome/test/wtflib/wtf_testsuite.h |
___________________________________________________________________ |
Added: svn:eol-style |
+ LF |