Home | History | Annotate | Download | only in webdriver

Lines Matching refs:http_response

11 #include "chrome/test/webdriver/http_response.h"
30 HttpResponse* const http_response) {
31 internal::PrepareHttpResponse(command_response, http_response);
32 EXPECT_EQ(expected_status, http_response->status());
37 HttpResponse* const http_response) {
39 http_response->set_status(HttpResponse::kOk); // Reset to detect changes.
41 *command_response, http_response);
47 HttpResponse http_response;
53 ExpectHttpStatus(HttpResponse::kOk, command_response, &http_response);
56 ExpectHttpStatus(HttpResponse::kSeeOther, command_response, &http_response);
57 ExpectHeaderValue(http_response, "location", "foobar");
58 http_response.ClearHeaders();
62 &http_response);
66 &http_response);
74 &http_response);
75 ExpectHeaderValue(http_response, "allow", "POST,GET");
76 http_response.ClearHeaders();
78 ExpectInternalError(kNoSuchElement, &command_response, &http_response);
79 ExpectInternalError(kNoSuchFrame, &command_response, &http_response);
80 ExpectInternalError(kUnknownCommand, &command_response, &http_response);
82 &http_response);
83 ExpectInternalError(kInvalidElementState, &command_response, &http_response);
84 ExpectInternalError(kUnknownError, &command_response, &http_response);
86 &http_response);
87 ExpectInternalError(kXPathLookupError, &command_response, &http_response);
88 ExpectInternalError(kNoSuchWindow, &command_response, &http_response);
89 ExpectInternalError(kInvalidCookieDomain, &command_response, &http_response);
90 ExpectInternalError(kUnableToSetCookie, &command_response, &http_response);
91 ExpectInternalError(kInternalServerError, &command_response, &http_response);
107 HttpResponse http_response;
109 &http_response);
119 HttpResponse http_response;
120 internal::PrepareHttpResponse(command_response, &http_response);
121 EXPECT_EQ(HttpResponse::kOk, http_response.status());
122 ExpectHeaderValue(http_response, "content-type",
131 http_response.body(), base::JSON_PARSE_RFC, &error_code, &error_message));
135 << "Response should be a dictionary: " << http_response.body();