| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 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 | 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 // Swig Interface for PyAuto. | 5 // Swig Interface for PyAuto. |
| 6 // PyAuto makes the Automation Proxy interface available in Python | 6 // PyAuto makes the Automation Proxy interface available in Python |
| 7 // | 7 // |
| 8 // Running swig as: | 8 // Running swig as: |
| 9 // swig -python -c++ chrome/test/pyautolib/pyautolib.i | 9 // swig -python -c++ chrome/test/pyautolib/pyautolib.i |
| 10 // would generate pyautolib.py, pyautolib_wrap.cxx | 10 // would generate pyautolib.py, pyautolib_wrap.cxx |
| (...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 160 %feature("docstring", "Cancel authentication to a login prompt. ") | 160 %feature("docstring", "Cancel authentication to a login prompt. ") |
| 161 CancelAuth; | 161 CancelAuth; |
| 162 bool CancelAuth(); | 162 bool CancelAuth(); |
| 163 | 163 |
| 164 }; | 164 }; |
| 165 | 165 |
| 166 class PyUITestSuiteBase { | 166 class PyUITestSuiteBase { |
| 167 public: | 167 public: |
| 168 %feature("docstring", "Create the suite.") PyUITestSuiteBase; | 168 %feature("docstring", "Create the suite.") PyUITestSuiteBase; |
| 169 PyUITestSuiteBase(int argc, char** argv); | 169 PyUITestSuiteBase(int argc, char** argv); |
| 170 ~PyUITestSuiteBase(); | 170 virtual ~PyUITestSuiteBase(); |
| 171 | 171 |
| 172 %feature("docstring", "Initialize from the path to browser dir.") Initialize; | 172 %feature("docstring", "Initialize from the path to browser dir.") |
| 173 void Initialize(const FilePath& browser_dir); | 173 InitializeWithPath; |
| 174 void InitializeWithPath(const FilePath& browser_dir); |
| 174 %feature("docstring", "Set chrome source root path, used in some tests") | 175 %feature("docstring", "Set chrome source root path, used in some tests") |
| 175 SetCrSourceRoot; | 176 SetCrSourceRoot; |
| 176 void SetCrSourceRoot(const FilePath& path); | 177 void SetCrSourceRoot(const FilePath& path); |
| 177 }; | 178 }; |
| 178 | 179 |
| 179 class PyUITestBase { | 180 class PyUITestBase { |
| 180 public: | 181 public: |
| 181 PyUITestBase(bool clear_profile, std::wstring homepage); | 182 PyUITestBase(bool clear_profile, std::wstring homepage); |
| 182 | 183 |
| 183 %feature("docstring", "Initialize the entire setup. Should be called " | 184 %feature("docstring", "Initialize the entire setup. Should be called " |
| (...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 429 %feature("docstring", "Get FilePath to the document root") document_root; | 430 %feature("docstring", "Get FilePath to the document root") document_root; |
| 430 const FilePath& document_root() const; | 431 const FilePath& document_root() const; |
| 431 | 432 |
| 432 std::string GetScheme() const; | 433 std::string GetScheme() const; |
| 433 | 434 |
| 434 %feature("docstring", "Get URL for a file path") GetURL; | 435 %feature("docstring", "Get URL for a file path") GetURL; |
| 435 GURL GetURL(const std::string& path) const; | 436 GURL GetURL(const std::string& path) const; |
| 436 }; | 437 }; |
| 437 } | 438 } |
| 438 | 439 |
| OLD | NEW |