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

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

Issue 4223001: Add pyauto tests and helper files for system-level testing of Web SQL Databases. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/chrome/test/functional
Patch Set: ... Created 10 years, 1 month 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/pyautolib/pyauto.py ('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) 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 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
51 virtual void SetUp(); 51 virtual void SetUp();
52 virtual void TearDown(); 52 virtual void TearDown();
53 53
54 // Navigate to the given URL in the active tab. Blocks until page loaded. 54 // Navigate to the given URL in the active tab. Blocks until page loaded.
55 void NavigateToURL(const char* url_string); 55 void NavigateToURL(const char* url_string);
56 56
57 // Navigate to the given URL in given tab in the given window. 57 // Navigate to the given URL in given tab in the given window.
58 // Blocks until page loaded. 58 // Blocks until page loaded.
59 void NavigateToURL(const char* url_string, int window_index, int tab_index); 59 void NavigateToURL(const char* url_string, int window_index, int tab_index);
60 60
61 // Reloads the active tab in the given window.
62 // Blocks until page reloaded.
63 void ReloadActiveTab(int window_index = 0);
64
61 // Get the URL of the active tab. 65 // Get the URL of the active tab.
62 GURL GetActiveTabURL(int window_index = 0); 66 GURL GetActiveTabURL(int window_index = 0);
63 67
64 int GetTabCount(int window_index = 0); 68 int GetTabCount(int window_index = 0);
65 69
66 // Appends a new tab with the given URL in the given or first browser window. 70 // Appends a new tab with the given URL in the given or first browser window.
67 bool AppendTab(const GURL& tab_url, int window_index = 0); 71 bool AppendTab(const GURL& tab_url, int window_index = 0);
68 72
69 // Activate the tab at the given zero-based index in the given or first 73 // Activate the tab at the given zero-based index in the given or first
70 // browser window. 74 // browser window.
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 // Enables PostTask to main thread. 185 // Enables PostTask to main thread.
182 // Should be shared across multiple instances of PyUITestBase so that this 186 // Should be shared across multiple instances of PyUITestBase so that this
183 // class is re-entrant and multiple instances can be created. 187 // class is re-entrant and multiple instances can be created.
184 // This is necessary since python's unittest module creates instances of 188 // This is necessary since python's unittest module creates instances of
185 // TestCase at load time itself. 189 // TestCase at load time itself.
186 static MessageLoop* GetSharedMessageLoop(MessageLoop::Type msg_loop_type); 190 static MessageLoop* GetSharedMessageLoop(MessageLoop::Type msg_loop_type);
187 static MessageLoop* message_loop_; 191 static MessageLoop* message_loop_;
188 }; 192 };
189 193
190 #endif // CHROME_TEST_PYAUTOLIB_PYAUTOLIB_H_ 194 #endif // CHROME_TEST_PYAUTOLIB_PYAUTOLIB_H_
OLDNEW
« no previous file with comments | « chrome/test/pyautolib/pyauto.py ('k') | chrome/test/pyautolib/pyautolib.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698