Commit 32463c7c authored by Jonathon Kereliuk's avatar Jonathon Kereliuk Committed by Commit Bot

[Chromedriver] Update status to include invalid argument code

WIP needed for Actions API

Bug: 
Change-Id: Ia0e93cc3a7c67b7ae0d4792de60816d44c6867e2
Reviewed-on: https://chromium-review.googlesource.com/579868Reviewed-by: default avatarJohn Budorick <jbudorick@chromium.org>
Commit-Queue: Jonathon Kereliuk <kereliuk@chromium.org>
Cr-Commit-Position: refs/heads/master@{#488664}
parent b2900345
...@@ -30,6 +30,8 @@ const char* DefaultMessageForStatusCode(StatusCode code) { ...@@ -30,6 +30,8 @@ const char* DefaultMessageForStatusCode(StatusCode code) {
return "invalid element state"; return "invalid element state";
case kUnknownError: case kUnknownError:
return "unknown error"; return "unknown error";
case kInvalidArgument:
return "invalid argument";
case kJavaScriptError: case kJavaScriptError:
return "javascript error"; return "javascript error";
case kXPathLookupError: case kXPathLookupError:
......
...@@ -18,6 +18,7 @@ enum StatusCode { ...@@ -18,6 +18,7 @@ enum StatusCode {
kElementNotVisible = 11, kElementNotVisible = 11,
kInvalidElementState = 12, kInvalidElementState = 12,
kUnknownError = 13, kUnknownError = 13,
kInvalidArgument = 14,
kJavaScriptError = 17, kJavaScriptError = 17,
kXPathLookupError = 19, kXPathLookupError = 19,
kTimeout = 21, kTimeout = 21,
......
...@@ -672,6 +672,7 @@ HttpHandler::PrepareStandardResponse( ...@@ -672,6 +672,7 @@ HttpHandler::PrepareStandardResponse(
case kInvalidSelector: case kInvalidSelector:
case kXPathLookupError: case kXPathLookupError:
case kNoAlertOpen: case kNoAlertOpen:
case kInvalidArgument:
case kNoSuchExecutionContext: case kNoSuchExecutionContext:
response.reset(new net::HttpServerResponseInfo(net::HTTP_BAD_REQUEST)); response.reset(new net::HttpServerResponseInfo(net::HTTP_BAD_REQUEST));
break; break;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment