summaryrefslogtreecommitdiffstats
path: root/chrome/test/automation/automation_messages.h
diff options
context:
space:
mode:
authorrogerta@chromium.org <rogerta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-20 23:26:40 +0000
committerrogerta@chromium.org <rogerta@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2009-10-20 23:26:40 +0000
commitd11c8e956955c9dd87e98033c7c4fa152da9fd76 (patch)
treec6f396cd5c37092550ade19561c9e0cc083943d5 /chrome/test/automation/automation_messages.h
parentf3c0de82e9c1dcc822882243b0ba776953d4e4e3 (diff)
downloadchromium_src-d11c8e956955c9dd87e98033c7c4fa152da9fd76.zip
chromium_src-d11c8e956955c9dd87e98033c7c4fa152da9fd76.tar.gz
chromium_src-d11c8e956955c9dd87e98033c7c4fa152da9fd76.tar.bz2
Add support for to automation interface load install and load extensions.
TEST=None BUG=0 Review URL: http://codereview.chromium.org/274076 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@29586 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/test/automation/automation_messages.h')
-rw-r--r--chrome/test/automation/automation_messages.h34
1 files changed, 34 insertions, 0 deletions
diff --git a/chrome/test/automation/automation_messages.h b/chrome/test/automation/automation_messages.h
index 416d168..388b6f2 100644
--- a/chrome/test/automation/automation_messages.h
+++ b/chrome/test/automation/automation_messages.h
@@ -93,6 +93,40 @@ struct ParamTraits<AutomationMsg_NavigationResponseValues> {
};
template <>
+struct ParamTraits<AutomationMsg_ExtensionResponseValues> {
+ typedef AutomationMsg_ExtensionResponseValues param_type;
+ static void Write(Message* m, const param_type& p) {
+ m->WriteInt(p);
+ }
+ static bool Read(const Message* m, void** iter, param_type* p) {
+ int type;
+ if (!m->ReadInt(iter, &type))
+ return false;
+ *p = static_cast<AutomationMsg_ExtensionResponseValues>(type);
+ return true;
+ }
+ static void Log(const param_type& p, std::wstring* l) {
+ std::wstring control;
+ switch (p) {
+ case AUTOMATION_MSG_EXTENSION_INSTALL_SUCCEEDED:
+ control = L"AUTOMATION_MSG_EXTENSION_INSTALL_SUCCEEDED";
+ break;
+ case AUTOMATION_MSG_EXTENSION_INSTALL_FAILED:
+ control = L"AUTOMATION_MSG_EXTENSION_INSTALL_FAILED";
+ break;
+ case AUTOMATION_MSG_EXTENSION_ALREADY_INSTALLED:
+ control = L"AUTOMATION_MSG_EXTENSION_ALREADY_INSTALLED";
+ break;
+ default:
+ control = L"UNKNOWN";
+ break;
+ }
+
+ LogParam(control, l);
+ }
+};
+
+template <>
struct ParamTraits<SecurityStyle> {
typedef SecurityStyle param_type;
static void Write(Message* m, const param_type& p) {