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

Side by Side Diff: chrome/test/automation/automation_constants.h

Issue 3061036: Handle automation server crashes. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 years, 4 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 | « no previous file | chrome_frame/chrome_active_document.h » ('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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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 #ifndef CHROME_TEST_AUTOMATION_AUTOMATION_CONSTANTS_H_ 5 #ifndef CHROME_TEST_AUTOMATION_AUTOMATION_CONSTANTS_H_
6 #define CHROME_TEST_AUTOMATION_AUTOMATION_CONSTANTS_H_ 6 #define CHROME_TEST_AUTOMATION_AUTOMATION_CONSTANTS_H_
7 #pragma once 7 #pragma once
8 8
9 namespace automation { 9 namespace automation {
10 // Amount of time to wait before querying the browser. 10 // Amount of time to wait before querying the browser.
11 static const int kSleepTime = 250; 11 static const int kSleepTime = 250;
12 } 12 }
13 13
14 // Used by AutomationProxy, declared here so that other headers don't need 14 // Used by AutomationProxy, declared here so that other headers don't need
15 // to include automation_proxy.h. 15 // to include automation_proxy.h.
16 enum AutomationLaunchResult { 16 enum AutomationLaunchResult {
17 AUTOMATION_LAUNCH_RESULT_INVALID = -1,
17 AUTOMATION_SUCCESS, 18 AUTOMATION_SUCCESS,
18 AUTOMATION_TIMEOUT, 19 AUTOMATION_TIMEOUT,
19 AUTOMATION_VERSION_MISMATCH, 20 AUTOMATION_VERSION_MISMATCH,
20 AUTOMATION_CREATE_TAB_FAILED 21 AUTOMATION_CREATE_TAB_FAILED,
22 AUTOMATION_SERVER_CRASHED,
21 }; 23 };
22 24
23 enum AutomationMsg_NavigationResponseValues { 25 enum AutomationMsg_NavigationResponseValues {
24 AUTOMATION_MSG_NAVIGATION_ERROR = 0, 26 AUTOMATION_MSG_NAVIGATION_ERROR = 0,
25 AUTOMATION_MSG_NAVIGATION_SUCCESS, 27 AUTOMATION_MSG_NAVIGATION_SUCCESS,
26 AUTOMATION_MSG_NAVIGATION_AUTH_NEEDED, 28 AUTOMATION_MSG_NAVIGATION_AUTH_NEEDED,
27 }; 29 };
28 30
29 enum AutomationMsg_ExtensionResponseValues { 31 enum AutomationMsg_ExtensionResponseValues {
30 AUTOMATION_MSG_EXTENSION_INSTALL_SUCCEEDED = 0, 32 AUTOMATION_MSG_EXTENSION_INSTALL_SUCCEEDED = 0,
31 AUTOMATION_MSG_EXTENSION_INSTALL_FAILED 33 AUTOMATION_MSG_EXTENSION_INSTALL_FAILED
32 }; 34 };
33 35
34 // Used in the AutomationMsg_GetExtensionProperty to identify which extension 36 // Used in the AutomationMsg_GetExtensionProperty to identify which extension
35 // property should be retrieved, instead of having separate messages for each 37 // property should be retrieved, instead of having separate messages for each
36 // property. 38 // property.
37 enum AutomationMsg_ExtensionProperty { 39 enum AutomationMsg_ExtensionProperty {
38 AUTOMATION_MSG_EXTENSION_ID = 0, 40 AUTOMATION_MSG_EXTENSION_ID = 0,
39 AUTOMATION_MSG_EXTENSION_NAME, 41 AUTOMATION_MSG_EXTENSION_NAME,
40 AUTOMATION_MSG_EXTENSION_VERSION, 42 AUTOMATION_MSG_EXTENSION_VERSION,
41 AUTOMATION_MSG_EXTENSION_BROWSER_ACTION_INDEX, 43 AUTOMATION_MSG_EXTENSION_BROWSER_ACTION_INDEX,
42 }; 44 };
43 45
44 #endif // CHROME_TEST_AUTOMATION_AUTOMATION_CONSTANTS_H_ 46 #endif // CHROME_TEST_AUTOMATION_AUTOMATION_CONSTANTS_H_
OLDNEW
« no previous file with comments | « no previous file | chrome_frame/chrome_active_document.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698