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

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

Issue 5255005: Add pyauto tests for the New Tab page. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ... Created 10 years 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
OLDNEW
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 // 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 #pragma once 10 #pragma once
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 bool IsFindInPageVisible(int window_index = 0); 96 bool IsFindInPageVisible(int window_index = 0);
97 97
98 // Get the path to the downloads directory 98 // Get the path to the downloads directory
99 FilePath GetDownloadDirectory(); 99 FilePath GetDownloadDirectory();
100 100
101 // AutomationProxy methods 101 // AutomationProxy methods
102 102
103 // Open a new browser window. Returns false on failure. 103 // Open a new browser window. Returns false on failure.
104 bool OpenNewBrowserWindow(bool show); 104 bool OpenNewBrowserWindow(bool show);
105 105
106 // Close a browser window. Returns false on failure.
107 bool CloseBrowserWindow(int window_index);
Nirnimesh 2010/11/24 09:58:23 Thanks for adding this
kkania 2010/11/24 17:40:35 Done.
108
106 // Fetch the number of browser windows. Includes popups. 109 // Fetch the number of browser windows. Includes popups.
107 int GetBrowserWindowCount(); 110 int GetBrowserWindowCount();
108 111
109 // Installs the extension crx. Returns true only if extension was installed 112 // Installs the extension crx. Returns true only if extension was installed
110 // and loaded successfully. Overinstalls will fail. 113 // and loaded successfully. Overinstalls will fail.
111 bool InstallExtension(const FilePath& crx_file, bool with_ui); 114 bool InstallExtension(const FilePath& crx_file, bool with_ui);
112 115
113 // Returns bookmark bar visibility state. 116 // Returns bookmark bar visibility state.
114 bool GetBookmarkBarVisibility(); 117 bool GetBookmarkBarVisibility();
115 118
(...skipping 69 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 // Enables PostTask to main thread. 188 // Enables PostTask to main thread.
186 // Should be shared across multiple instances of PyUITestBase so that this 189 // Should be shared across multiple instances of PyUITestBase so that this
187 // class is re-entrant and multiple instances can be created. 190 // class is re-entrant and multiple instances can be created.
188 // This is necessary since python's unittest module creates instances of 191 // This is necessary since python's unittest module creates instances of
189 // TestCase at load time itself. 192 // TestCase at load time itself.
190 static MessageLoop* GetSharedMessageLoop(MessageLoop::Type msg_loop_type); 193 static MessageLoop* GetSharedMessageLoop(MessageLoop::Type msg_loop_type);
191 static MessageLoop* message_loop_; 194 static MessageLoop* message_loop_;
192 }; 195 };
193 196
194 #endif // CHROME_TEST_PYAUTOLIB_PYAUTOLIB_H_ 197 #endif // CHROME_TEST_PYAUTOLIB_PYAUTOLIB_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698