| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // This file declares the C++ side of PyAuto, the python interface to | 5 // This file declares the C++ side of PyAuto, the python interface to |
| 6 // Chromium automation. It access Chromium's internals using Automation Proxy. | 6 // Chromium automation. It access Chromium's internals using Automation Proxy. |
| 7 | 7 |
| 8 #ifndef CHROME_TEST_PYAUTOLIB_PYAUTOLIB_H_ | 8 #ifndef CHROME_TEST_PYAUTOLIB_PYAUTOLIB_H_ |
| 9 #define CHROME_TEST_PYAUTOLIB_PYAUTOLIB_H_ | 9 #define CHROME_TEST_PYAUTOLIB_PYAUTOLIB_H_ |
| 10 | 10 |
| (...skipping 20 matching lines...) Expand all Loading... |
| 31 // Test Suite for Pyauto tests. All one-time initializations go here. | 31 // Test Suite for Pyauto tests. All one-time initializations go here. |
| 32 class PyUITestSuiteBase : public UITestSuite { | 32 class PyUITestSuiteBase : public UITestSuite { |
| 33 public: | 33 public: |
| 34 PyUITestSuiteBase(int argc, char** argv); | 34 PyUITestSuiteBase(int argc, char** argv); |
| 35 virtual ~PyUITestSuiteBase(); | 35 virtual ~PyUITestSuiteBase(); |
| 36 | 36 |
| 37 void InitializeWithPath(const base::FilePath& browser_dir); | 37 void InitializeWithPath(const base::FilePath& browser_dir); |
| 38 | 38 |
| 39 void SetCrSourceRoot(const base::FilePath& path); | 39 void SetCrSourceRoot(const base::FilePath& path); |
| 40 | 40 |
| 41 virtual bool IsBrowserTestSuite() OVERRIDE; | |
| 42 | |
| 43 private: | 41 private: |
| 44 #if defined(OS_MACOSX) | 42 #if defined(OS_MACOSX) |
| 45 base::mac::ScopedNSAutoreleasePool pool_; | 43 base::mac::ScopedNSAutoreleasePool pool_; |
| 46 #endif | 44 #endif |
| 47 }; | 45 }; |
| 48 | 46 |
| 49 // The primary class that interfaces with Automation Proxy. | 47 // The primary class that interfaces with Automation Proxy. |
| 50 // This class is accessed from python using swig. | 48 // This class is accessed from python using swig. |
| 51 class PyUITestBase : public UITestBase { | 49 class PyUITestBase : public UITestBase { |
| 52 public: | 50 public: |
| (...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 114 // TestCase at load time itself. | 112 // TestCase at load time itself. |
| 115 static base::MessageLoop* GetSharedMessageLoop( | 113 static base::MessageLoop* GetSharedMessageLoop( |
| 116 base::MessageLoop::Type msg_loop_type); | 114 base::MessageLoop::Type msg_loop_type); |
| 117 static base::MessageLoop* message_loop_; | 115 static base::MessageLoop* message_loop_; |
| 118 | 116 |
| 119 // Path to named channel id. | 117 // Path to named channel id. |
| 120 std::string named_channel_id_; | 118 std::string named_channel_id_; |
| 121 }; | 119 }; |
| 122 | 120 |
| 123 #endif // CHROME_TEST_PYAUTOLIB_PYAUTOLIB_H_ | 121 #endif // CHROME_TEST_PYAUTOLIB_PYAUTOLIB_H_ |
| OLD | NEW |