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

Unified Diff: chrome/browser/extensions/activity_database_unittest.cc

Issue 11946028: Record event activity to the extension activity log. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Rename ActivityLog::IsLoggingEnabled Created 7 years, 11 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/extensions/activity_database.cc ('k') | chrome/browser/extensions/activity_log.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/activity_database_unittest.cc
diff --git a/chrome/browser/extensions/activity_database_unittest.cc b/chrome/browser/extensions/activity_database_unittest.cc
index 86d1a6b6330470ea1be58333153355143aaad6a4..fff0a126bafba651c19664ca976f2d6c4edc7c1f 100644
--- a/chrome/browser/extensions/activity_database_unittest.cc
+++ b/chrome/browser/extensions/activity_database_unittest.cc
@@ -52,6 +52,7 @@ TEST(ActivityDatabaseTest, RecordAction) {
scoped_refptr<APIAction> action = new APIAction(
"punky",
base::Time::Now(),
+ APIAction::CALL,
APIAction::READ,
APIAction::BOOKMARK,
"brewster",
@@ -69,9 +70,10 @@ TEST(ActivityDatabaseTest, RecordAction) {
sql::Statement statement(db.GetUniqueStatement(sql_str.c_str()));
ASSERT_TRUE(statement.Step());
ASSERT_EQ("punky", statement.ColumnString(0));
- ASSERT_EQ("READ", statement.ColumnString(2));
- ASSERT_EQ("BOOKMARK", statement.ColumnString(3));
- ASSERT_EQ("brewster", statement.ColumnString(4));
+ ASSERT_EQ("CALL", statement.ColumnString(2));
+ ASSERT_EQ("READ", statement.ColumnString(3));
+ ASSERT_EQ("BOOKMARK", statement.ColumnString(4));
+ ASSERT_EQ("brewster", statement.ColumnString(5));
}
// Check that nothing explodes if the DB isn't initialized.
@@ -87,6 +89,7 @@ TEST(ActivityDatabaseTest, InitFailure) {
scoped_refptr<APIAction> action = new APIAction(
"punky",
base::Time::Now(),
+ APIAction::CALL,
APIAction::READ,
APIAction::BOOKMARK,
"brewster",
« no previous file with comments | « chrome/browser/extensions/activity_database.cc ('k') | chrome/browser/extensions/activity_log.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698