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

Unified Diff: net/tools/testserver/run_testserver.cc

Issue 5196001: Made testserver communicate to parent process with JSON (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed cbentzel's comments Created 10 years, 1 month 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
Index: net/tools/testserver/run_testserver.cc
diff --git a/net/tools/testserver/run_testserver.cc b/net/tools/testserver/run_testserver.cc
index e92dfb248b76944379cfcfcde0bd48e8472e9a4e..d34a64c2cad0604d809dbf4b71ee914b83e49177 100644
--- a/net/tools/testserver/run_testserver.cc
+++ b/net/tools/testserver/run_testserver.cc
@@ -6,6 +6,7 @@
#include "base/at_exit.h"
#include "base/command_line.h"
+#include "base/file_path.h"
#include "base/logging.h"
#include "base/message_loop.h"
#include "net/test/test_server.h"
@@ -23,6 +24,11 @@ int main(int argc, const char* argv[]) {
CommandLine::Init(argc, argv);
CommandLine* command_line = CommandLine::ForCurrentProcess();
+ (void)logging::InitLogging(FILE_PATH_LITERAL("testserver.log"),
Paweł Hajdan Jr. 2010/11/18 10:35:12 nit: I think we have a macro to explicitly ignore
+ logging::LOG_TO_BOTH_FILE_AND_SYSTEM_DEBUG_LOG,
+ logging::LOCK_LOG_FILE,
+ logging::APPEND_TO_OLD_LOG_FILE);
+
if (command_line->GetSwitchCount() == 0 ||
command_line->HasSwitch("help")) {
PrintUsage();

Powered by Google App Engine
This is Rietveld 408576698