summaryrefslogtreecommitdiffstats
path: root/chrome/test/automation/automation_messages_internal.h
diff options
context:
space:
mode:
authorjnd@google.com <jnd@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-19 01:48:16 +0000
committerjnd@google.com <jnd@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2008-12-19 01:48:16 +0000
commit97fa6ce336fe635fc0ac06ebefe925d1bc235897 (patch)
treee8797c5e25c209305a8d864a9f17744486626cce /chrome/test/automation/automation_messages_internal.h
parent0844615584c64925c47141d519942655b04b52eb (diff)
downloadchromium_src-97fa6ce336fe635fc0ac06ebefe925d1bc235897.zip
chromium_src-97fa6ce336fe635fc0ac06ebefe925d1bc235897.tar.gz
chromium_src-97fa6ce336fe635fc0ac06ebefe925d1bc235897.tar.bz2
We need to add UI test for "Encoding" menu to avoid regression.
For this purpose, I have created several methods in automation API. They can be used for the above UI tests. 1 get the current used encoding name of the page in the specified tab. 2 get value of the encoding auto detection option. 3 enables and disable the encoding auto detection. 4 use the specified encoding to override the encoding of the page in the specified tab. BUG=5515 The corresponding UI test is coming soon Review URL: http://codereview.chromium.org/14162 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@7286 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/automation/automation_messages_internal.h')
-rw-r--r--chrome/test/automation/automation_messages_internal.h50
1 files changed, 45 insertions, 5 deletions
diff --git a/chrome/test/automation/automation_messages_internal.h b/chrome/test/automation/automation_messages_internal.h
index 165b606..47bb11a 100644
--- a/chrome/test/automation/automation_messages_internal.h
+++ b/chrome/test/automation/automation_messages_internal.h
@@ -600,7 +600,8 @@ IPC_BEGIN_MESSAGES(Automation, 0)
IPC_MESSAGE_ROUTED2(AutomationMsg_ActionOnSSLBlockingPage, int, bool)
IPC_MESSAGE_ROUTED1(AutomationMsg_ActionOnSSLBlockingPageResponse, bool)
- // Message to request that a browser window is brought to the front and activated.
+ // Message to request that a browser window is brought to the front and
+ // activated.
// Request:
// - int: handle of the browser window.
// Response:
@@ -608,8 +609,8 @@ IPC_BEGIN_MESSAGES(Automation, 0)
IPC_MESSAGE_ROUTED1(AutomationMsg_BringBrowserToFront, int)
IPC_MESSAGE_ROUTED1(AutomationMsg_BringBrowserToFrontResponse, bool)
- // Message to request whether a certain item is enabled of disabled in the "Page"
- // menu in the browser window
+ // Message to request whether a certain item is enabled of disabled in the
+ // "Page" menu in the browser window
//
// Request:
// - int: handle of the browser window.
@@ -641,8 +642,8 @@ IPC_BEGIN_MESSAGES(Automation, 0)
IPC_MESSAGE_ROUTED1(AutomationMsg_LastActiveBrowserWindowResponse, int)
// This message requests the bounds of a constrained window (relative to its
- // containing TabContents). On an internal error, the boolean in the result will
- // be set to false.
+ // containing TabContents). On an internal error, the boolean in the result
+ // will be set to false.
IPC_MESSAGE_ROUTED1(AutomationMsg_ConstrainedWindowBoundsRequest,
int /* tab_handle */)
IPC_MESSAGE_ROUTED2(AutomationMsg_ConstrainedWindowBoundsResponse,
@@ -821,4 +822,43 @@ IPC_BEGIN_MESSAGES(Automation, 0)
IPC_MESSAGE_ROUTED1(AutomationMsg_ClickAppModalDialogButtonResponse,
bool /* success */)
+ // This messages sets a string-value preference.
+ IPC_MESSAGE_ROUTED3(AutomationMsg_SetStringPreferenceRequest,
+ int /* browser handle */,
+ std::wstring /* pref name */,
+ std::wstring /* pref value */)
+ IPC_MESSAGE_ROUTED1(AutomationMsg_SetStringPreferenceResponse,
+ bool /* success */)
+
+ // This messages gets a boolean-value preference.
+ IPC_MESSAGE_ROUTED2(AutomationMsg_GetBooleanPreferenceRequest,
+ int /* browser handle */,
+ std::wstring /* pref name */)
+ IPC_MESSAGE_ROUTED2(AutomationMsg_GetBooleanPreferenceResponse,
+ bool /* success */,
+ bool /* pref value */)
+
+ // This messages sets a boolean-value preference.
+ IPC_MESSAGE_ROUTED3(AutomationMsg_SetBooleanPreferenceRequest,
+ int /* browser handle */,
+ std::wstring /* pref name */,
+ bool /* pref value */)
+ IPC_MESSAGE_ROUTED1(AutomationMsg_SetBooleanPreferenceResponse,
+ bool /* success */)
+
+ // Queries the current used encoding name of the page in the specified
+ // web content tab.
+ IPC_MESSAGE_ROUTED1(AutomationMsg_GetPageCurrentEncodingRequest,
+ int /* tab handle */)
+ IPC_MESSAGE_ROUTED1(AutomationMsg_GetPageCurrentEncodingResponse,
+ std::wstring /* current used encoding name */)
+
+ // Uses the specified encoding to override the encoding of the page in the
+ // specified web content tab.
+ IPC_MESSAGE_ROUTED2(AutomationMsg_OverrideEncodingRequest,
+ int /* tab handle */,
+ std::wstring /* overrided encoding name */)
+ IPC_MESSAGE_ROUTED1(AutomationMsg_OverrideEncodingResponse,
+ bool /* success */)
+
IPC_END_MESSAGES(Automation)