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

Side by Side Diff: trunk/src/chrome/test/chromedriver/logging.h

Issue 392623005: Revert 283003 "[ChromeDriver] Subscribe PerformanceLogger to Com..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 6 years, 5 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 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_CHROMEDRIVER_LOGGING_H_ 5 #ifndef CHROME_TEST_CHROMEDRIVER_LOGGING_H_
6 #define CHROME_TEST_CHROMEDRIVER_LOGGING_H_ 6 #define CHROME_TEST_CHROMEDRIVER_LOGGING_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
11 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
12 #include "base/memory/scoped_vector.h" 12 #include "base/memory/scoped_vector.h"
13 #include "base/values.h" 13 #include "base/values.h"
14 #include "chrome/test/chromedriver/chrome/log.h" 14 #include "chrome/test/chromedriver/chrome/log.h"
15 15
16 struct Capabilities; 16 struct Capabilities;
17 class CommandListener;
18 class DevToolsEventListener; 17 class DevToolsEventListener;
19 class ListValue; 18 class ListValue;
20 class Status; 19 class Status;
21 20
22 // Accumulates WebDriver Logging API entries of a given type and minimum level. 21 // Accumulates WebDriver Logging API entries of a given type and minimum level.
23 // See https://code.google.com/p/selenium/wiki/Logging. 22 // See https://code.google.com/p/selenium/wiki/Logging.
24 class WebDriverLog : public Log { 23 class WebDriverLog : public Log {
25 public: 24 public:
26 static const char kBrowserType[]; 25 static const char kBrowserType[];
27 static const char kDriverType[]; 26 static const char kDriverType[];
(...skipping 30 matching lines...) Expand all
58 const std::string type_; // WebDriver log type. 57 const std::string type_; // WebDriver log type.
59 Level min_level_; // Minimum level of entries to store. 58 Level min_level_; // Minimum level of entries to store.
60 scoped_ptr<base::ListValue> entries_; // Accumulated entries. 59 scoped_ptr<base::ListValue> entries_; // Accumulated entries.
61 60
62 DISALLOW_COPY_AND_ASSIGN(WebDriverLog); 61 DISALLOW_COPY_AND_ASSIGN(WebDriverLog);
63 }; 62 };
64 63
65 // Initializes logging system for ChromeDriver. Returns true on success. 64 // Initializes logging system for ChromeDriver. Returns true on success.
66 bool InitLogging(); 65 bool InitLogging();
67 66
68 // Creates |Log|s, |DevToolsEventListener|s, and |CommandListener|s based on 67 // Creates Log's and DevToolsEventListener's based on logging preferences.
69 // logging preferences.
70 Status CreateLogs(const Capabilities& capabilities, 68 Status CreateLogs(const Capabilities& capabilities,
71 ScopedVector<WebDriverLog>* out_logs, 69 ScopedVector<WebDriverLog>* out_logs,
72 ScopedVector<DevToolsEventListener>* out_devtools_listeners, 70 ScopedVector<DevToolsEventListener>* out_listeners);
73 ScopedVector<CommandListener>* out_command_listeners);
74 71
75 #endif // CHROME_TEST_CHROMEDRIVER_LOGGING_H_ 72 #endif // CHROME_TEST_CHROMEDRIVER_LOGGING_H_
OLDNEW
« no previous file with comments | « trunk/src/chrome/test/chromedriver/commands_unittest.cc ('k') | trunk/src/chrome/test/chromedriver/logging.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698