OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/test/webdriver/webdriver_logging.h" | 5 #include "chrome/test/webdriver/webdriver_logging.h" |
6 | 6 |
7 #include <cmath> | 7 #include <cmath> |
8 | 8 |
9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
10 #include "base/files/file_path.h" | 10 #include "base/files/file_path.h" |
11 #include "base/logging.h" | 11 #include "base/logging.h" |
12 #include "base/string_util.h" | |
13 #include "base/stringprintf.h" | |
14 #include "base/strings/string_number_conversions.h" | 12 #include "base/strings/string_number_conversions.h" |
| 13 #include "base/strings/string_util.h" |
| 14 #include "base/strings/stringprintf.h" |
15 #include "base/time.h" | 15 #include "base/time.h" |
16 #include "build/build_config.h" | 16 #include "build/build_config.h" |
17 | 17 |
18 using base::DictionaryValue; | 18 using base::DictionaryValue; |
19 using base::ListValue; | 19 using base::ListValue; |
20 using base::Value; | 20 using base::Value; |
21 | 21 |
22 namespace webdriver { | 22 namespace webdriver { |
23 | 23 |
24 FileLog* FileLog::singleton_ = NULL; | 24 FileLog* FileLog::singleton_ = NULL; |
(...skipping 223 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
248 log = FileLog::CreateFileLog(FILE_PATH_LITERAL("chromedriver.log"), | 248 log = FileLog::CreateFileLog(FILE_PATH_LITERAL("chromedriver.log"), |
249 min_log_level); | 249 min_log_level); |
250 } else { | 250 } else { |
251 log = new FileLog(log_path, min_log_level); | 251 log = new FileLog(log_path, min_log_level); |
252 } | 252 } |
253 FileLog::SetGlobalLog(log); | 253 FileLog::SetGlobalLog(log); |
254 return log->IsOpen(); | 254 return log->IsOpen(); |
255 } | 255 } |
256 | 256 |
257 } // namespace webdriver | 257 } // namespace webdriver |
OLD | NEW |