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

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

Issue 637933002: Replace FINAL and OVERRIDE with their C++11 counterparts in chrome/test (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
« no previous file with comments | « chrome/test/chromedriver/commands_unittest.cc ('k') | chrome/test/chromedriver/net/net_util.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 scoped_ptr<base::ListValue> GetAndClearEntries(); 42 scoped_ptr<base::ListValue> GetAndClearEntries();
43 43
44 // Finds the first error message in the log and returns it. If none exist, 44 // Finds the first error message in the log and returns it. If none exist,
45 // returns an empty string. Does not clear entries. 45 // returns an empty string. Does not clear entries.
46 std::string GetFirstErrorMessage() const; 46 std::string GetFirstErrorMessage() const;
47 47
48 // Translates a Log entry level into a WebDriver level and stores the entry. 48 // Translates a Log entry level into a WebDriver level and stores the entry.
49 virtual void AddEntryTimestamped(const base::Time& timestamp, 49 virtual void AddEntryTimestamped(const base::Time& timestamp,
50 Level level, 50 Level level,
51 const std::string& source, 51 const std::string& source,
52 const std::string& message) OVERRIDE; 52 const std::string& message) override;
53 53
54 const std::string& type() const; 54 const std::string& type() const;
55 void set_min_level(Level min_level); 55 void set_min_level(Level min_level);
56 Level min_level() const; 56 Level min_level() const;
57 57
58 private: 58 private:
59 const std::string type_; // WebDriver log type. 59 const std::string type_; // WebDriver log type.
60 Level min_level_; // Minimum level of entries to store. 60 Level min_level_; // Minimum level of entries to store.
61 scoped_ptr<base::ListValue> entries_; // Accumulated entries. 61 scoped_ptr<base::ListValue> entries_; // Accumulated entries.
62 62
63 DISALLOW_COPY_AND_ASSIGN(WebDriverLog); 63 DISALLOW_COPY_AND_ASSIGN(WebDriverLog);
64 }; 64 };
65 65
66 // Initializes logging system for ChromeDriver. Returns true on success. 66 // Initializes logging system for ChromeDriver. Returns true on success.
67 bool InitLogging(); 67 bool InitLogging();
68 68
69 // Creates |Log|s, |DevToolsEventListener|s, and |CommandListener|s based on 69 // Creates |Log|s, |DevToolsEventListener|s, and |CommandListener|s based on
70 // logging preferences. 70 // logging preferences.
71 Status CreateLogs(const Capabilities& capabilities, 71 Status CreateLogs(const Capabilities& capabilities,
72 const Session* session, 72 const Session* session,
73 ScopedVector<WebDriverLog>* out_logs, 73 ScopedVector<WebDriverLog>* out_logs,
74 ScopedVector<DevToolsEventListener>* out_devtools_listeners, 74 ScopedVector<DevToolsEventListener>* out_devtools_listeners,
75 ScopedVector<CommandListener>* out_command_listeners); 75 ScopedVector<CommandListener>* out_command_listeners);
76 76
77 #endif // CHROME_TEST_CHROMEDRIVER_LOGGING_H_ 77 #endif // CHROME_TEST_CHROMEDRIVER_LOGGING_H_
OLDNEW
« no previous file with comments | « chrome/test/chromedriver/commands_unittest.cc ('k') | chrome/test/chromedriver/net/net_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698