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

Unified Diff: chrome/test/webdriver/dispatch.cc

Issue 3915004: Convert LOG(INFO) to VLOG(1) - chrome/test/. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/test/webdriver/dispatch.h ('k') | chrome/test/webdriver/keymap.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/webdriver/dispatch.cc
===================================================================
--- chrome/test/webdriver/dispatch.cc (revision 63075)
+++ chrome/test/webdriver/dispatch.cc (working copy)
@@ -26,10 +26,9 @@
<< "Vary: Accept-Charset, Accept-Encoding, Accept-Language, Accept\r\n"
<< "Accept-Ranges: bytes\r\n"
<< "Connection: close\r\n\r\n";
- if (strcmp(request_info->request_method, "HEAD") != 0) {
+ if (strcmp(request_info->request_method, "HEAD") != 0)
out << json << "\r\n";
- }
- LOG(INFO) << out.str();
+ VLOG(1) << out.str();
mg_printf(connection, "%s", out.str().c_str());
}
@@ -48,7 +47,7 @@
<< "Location: " << location << "\r\n"
<< "Content-Type: text/html\r\n"
<< "Content-Length: 0\r\n\r\n";
- LOG(INFO) << out.str();
+ VLOG(1) << out.str();
mg_printf(connection, "%s", out.str().c_str());
}
@@ -63,10 +62,9 @@
<< "Vary: Accept-Charset, Accept-Encoding, Accept-Language, Accept\r\n"
<< "Accept-Ranges: bytes\r\n"
<< "Connection: close\r\n\r\n";
- if (strcmp(request_info->request_method, "HEAD") != 0) {
+ if (strcmp(request_info->request_method, "HEAD") != 0)
out << json << "\r\n";
- }
- LOG(INFO) << out.str();
+ VLOG(1) << out.str();
mg_printf(connection, "%s", out.str().c_str());
}
@@ -81,10 +79,9 @@
<< "Vary: Accept-Charset, Accept-Encoding, Accept-Language, Accept\r\n"
<< "Accept-Ranges: bytes\r\n"
<< "Connection: close\r\n\r\n";
- if (strcmp(request_info->request_method, "HEAD") != 0) {
+ if (strcmp(request_info->request_method, "HEAD") != 0)
out << json << "\r\n";
- }
- LOG(INFO) << out.str();
+ VLOG(1) << out.str();
mg_printf(connection, "%s", out.str().c_str());
}
@@ -108,7 +105,7 @@
<< "Content-Type: text/html\r\n"
<< "Content-Length: 0\r\n"
<< "Allow: " << JoinString(allowed_methods, ',') << "\r\n\r\n";
- LOG(INFO) << out.str();
+ VLOG(1) << out.str();
mg_printf(connection, "%s", out.str().c_str());
}
@@ -123,10 +120,9 @@
<< "Vary: Accept-Charset, Accept-Encoding, Accept-Language, Accept\r\n"
<< "Accept-Ranges: bytes\r\n"
<< "Connection: close\r\n\r\n";
- if (strcmp(request_info->request_method, "HEAD") != 0) {
+ if (strcmp(request_info->request_method, "HEAD") != 0)
out << json << "\r\n";
- }
- LOG(INFO) << out.str();
+ VLOG(1) << out.str();
mg_printf(connection, "%s", out.str().c_str());
}
@@ -136,29 +132,24 @@
void DispatchCommand(Command* const command, const std::string& method,
Response* response) {
if (command->DoesPost() && method == "POST") {
- if (command->Init(response)) {
+ if (command->Init(response))
command->ExecutePost(response);
- }
} else if (command->DoesGet() && method == "GET") {
- if (command->Init(response)) {
+ if (command->Init(response))
command->ExecuteGet(response);
- }
} else if (command->DoesDelete() && method == "DELETE") {
- if (command->Init(response)) {
+ if (command->Init(response))
command->ExecuteDelete(response);
- }
} else {
ListValue* methods = new ListValue;
- if (command->DoesPost()) {
+ if (command->DoesPost())
methods->Append(Value::CreateStringValue("POST"));
- }
if (command->DoesGet()) {
methods->Append(Value::CreateStringValue("GET"));
methods->Append(Value::CreateStringValue("HEAD"));
}
- if (command->DoesDelete()) {
+ if (command->DoesDelete())
methods->Append(Value::CreateStringValue("DELETE"));
- }
response->set_status(kMethodNotAllowed);
response->set_value(methods); // Assumes ownership.
}
« no previous file with comments | « chrome/test/webdriver/dispatch.h ('k') | chrome/test/webdriver/keymap.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698