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

Unified Diff: chrome/browser/drive/event_logger_unittest.cc

Issue 20609006: Add severity info to drive::EventLogger. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase - the 2nd try - Created 7 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/drive/event_logger.cc ('k') | chrome/browser/sync_file_system/logger.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/drive/event_logger_unittest.cc
diff --git a/chrome/browser/drive/event_logger_unittest.cc b/chrome/browser/drive/event_logger_unittest.cc
index c57078f2db74ec0392e37a7271d5d563fa657b51..2d41d2c47a44d30b325f3053f867eca49320811d 100644
--- a/chrome/browser/drive/event_logger_unittest.cc
+++ b/chrome/browser/drive/event_logger_unittest.cc
@@ -13,9 +13,9 @@ TEST(EventLoggerTest, BasicLogging) {
logger.SetHistorySize(3); // At most 3 events are kept.
EXPECT_EQ(0U, logger.GetHistory().size());
- logger.Log("first");
- logger.Log("%dnd", 2);
- logger.Log("third");
+ logger.Log(logging::LOG_INFO, "first");
+ logger.Log(logging::LOG_INFO, "2nd");
+ logger.Log(logging::LOG_INFO, "third");
// Events are recorded in the chronological order with sequential IDs.
std::vector<EventLogger::Event> history = logger.GetHistory();
@@ -27,7 +27,7 @@ TEST(EventLoggerTest, BasicLogging) {
EXPECT_EQ(2, history[2].id);
EXPECT_EQ("third", history[2].what);
- logger.Log("fourth");
+ logger.Log(logging::LOG_INFO, "fourth");
// It does not log events beyond the specified.
history = logger.GetHistory();
ASSERT_EQ(3U, history.size());
« no previous file with comments | « chrome/browser/drive/event_logger.cc ('k') | chrome/browser/sync_file_system/logger.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698