Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(237)

Side by Side Diff: chrome/test/pyautolib/pyautolib.h

Issue 190663012: Run ContentMain in a browser_test's browser process. This removes duplication of code in the browse… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: try to fix android by restoring old path just for it Created 6 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/test/ppapi/ppapi_test.cc ('k') | chrome/test/pyautolib/pyautolib.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chrome/test/ppapi/ppapi_test.cc ('k') | chrome/test/pyautolib/pyautolib.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698