| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "webkit/support/webkit_support.h" | 5 #include "webkit/support/webkit_support.h" |
| 6 | 6 |
| 7 #include "base/at_exit.h" | 7 #include "base/at_exit.h" |
| 8 #include "base/base64.h" | 8 #include "base/base64.h" |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/debug/debugger.h" | 10 #include "base/debug/debugger.h" |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 PathService::Get(base::DIR_EXE, &log_filename); | 99 PathService::Get(base::DIR_EXE, &log_filename); |
| 100 log_filename = log_filename.AppendASCII("DumpRenderTree.log"); | 100 log_filename = log_filename.AppendASCII("DumpRenderTree.log"); |
| 101 logging::InitLogging( | 101 logging::InitLogging( |
| 102 log_filename.value().c_str(), | 102 log_filename.value().c_str(), |
| 103 // Only log to a file. This prevents debugging output from disrupting | 103 // Only log to a file. This prevents debugging output from disrupting |
| 104 // whether or not we pass. | 104 // whether or not we pass. |
| 105 logging::LOG_ONLY_TO_FILE, | 105 logging::LOG_ONLY_TO_FILE, |
| 106 // We might have multiple DumpRenderTree processes going at once. | 106 // We might have multiple DumpRenderTree processes going at once. |
| 107 logging::LOCK_LOG_FILE, | 107 logging::LOCK_LOG_FILE, |
| 108 logging::DELETE_OLD_LOG_FILE, | 108 logging::DELETE_OLD_LOG_FILE, |
| 109 logging::DISABLE_DCHECK_FOR_NON_OFFICIAL_RELEASE_BUILDS); | 109 logging::DISABLE_DCHECK_FOR_NON_OFFICIAL_RELEASE_BUILDS, |
| 110 logging::DISABLE_DLOG_FOR_NON_OFFICIAL_RELEASE_BUILDS); |
| 110 | 111 |
| 111 // We want process and thread IDs because we may have multiple processes. | 112 // We want process and thread IDs because we may have multiple processes. |
| 112 const bool kProcessId = true; | 113 const bool kProcessId = true; |
| 113 const bool kThreadId = true; | 114 const bool kThreadId = true; |
| 114 const bool kTimestamp = true; | 115 const bool kTimestamp = true; |
| 115 const bool kTickcount = true; | 116 const bool kTickcount = true; |
| 116 logging::SetLogItems(kProcessId, kThreadId, !kTimestamp, kTickcount); | 117 logging::SetLogItems(kProcessId, kThreadId, !kTimestamp, kTickcount); |
| 117 } | 118 } |
| 118 | 119 |
| 119 class TestEnvironment { | 120 class TestEnvironment { |
| (...skipping 519 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 639 return ui::GdkNativeKeyCodeForWindowsKeyCode(code, shift); | 640 return ui::GdkNativeKeyCodeForWindowsKeyCode(code, shift); |
| 640 } | 641 } |
| 641 #endif | 642 #endif |
| 642 | 643 |
| 643 // Timers | 644 // Timers |
| 644 double GetForegroundTabTimerInterval() { | 645 double GetForegroundTabTimerInterval() { |
| 645 return webkit_glue::kForegroundTabTimerInterval; | 646 return webkit_glue::kForegroundTabTimerInterval; |
| 646 } | 647 } |
| 647 | 648 |
| 648 } // namespace webkit_support | 649 } // namespace webkit_support |
| OLD | NEW |