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 #ifndef CHROME_TEST_WEBDRIVER_WEBDRIVER_LOGGING_H_ | 5 #ifndef CHROME_TEST_WEBDRIVER_WEBDRIVER_LOGGING_H_ |
6 #define CHROME_TEST_WEBDRIVER_WEBDRIVER_LOGGING_H_ | 6 #define CHROME_TEST_WEBDRIVER_WEBDRIVER_LOGGING_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "base/basictypes.h" | 11 #include "base/basictypes.h" |
12 #include "base/file_path.h" | 12 #include "base/file_path.h" |
13 #include "base/file_util.h" | 13 #include "base/file_util.h" |
14 #include "base/memory/scoped_ptr.h" | |
15 #include "base/synchronization/lock.h" | 14 #include "base/synchronization/lock.h" |
16 #include "base/values.h" | 15 #include "base/values.h" |
17 | 16 |
18 namespace base { | 17 namespace base { |
19 class Time; | 18 class Time; |
20 } | 19 } |
21 | 20 |
22 namespace webdriver { | 21 namespace webdriver { |
23 | 22 |
24 // WebDriver logging levels. | 23 // WebDriver logging levels. |
(...skipping 118 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
143 // Initializes logging for WebDriver. All logging below the given level | 142 // Initializes logging for WebDriver. All logging below the given level |
144 // will be discarded in the global file log. The file log will use the given | 143 // will be discarded in the global file log. The file log will use the given |
145 // log path. If the specified log path is empty, the log will write to | 144 // log path. If the specified log path is empty, the log will write to |
146 // 'chromedriver.log' in the current working directory, if writeable, or the | 145 // 'chromedriver.log' in the current working directory, if writeable, or the |
147 // system temp directory. Returns true on success. | 146 // system temp directory. Returns true on success. |
148 bool InitWebDriverLogging(const FilePath& log_path, LogLevel min_log_level); | 147 bool InitWebDriverLogging(const FilePath& log_path, LogLevel min_log_level); |
149 | 148 |
150 } // namespace webdriver | 149 } // namespace webdriver |
151 | 150 |
152 #endif // CHROME_TEST_WEBDRIVER_WEBDRIVER_LOGGING_H_ | 151 #endif // CHROME_TEST_WEBDRIVER_WEBDRIVER_LOGGING_H_ |
OLD | NEW |