summaryrefslogtreecommitdiffstats
path: root/chrome/browser/extensions/activity_log_unittest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/extensions/activity_log_unittest.cc')
-rw-r--r--chrome/browser/extensions/activity_log_unittest.cc32
1 files changed, 10 insertions, 22 deletions
diff --git a/chrome/browser/extensions/activity_log_unittest.cc b/chrome/browser/extensions/activity_log_unittest.cc
index f678d7b..a5ecc95 100644
--- a/chrome/browser/extensions/activity_log_unittest.cc
+++ b/chrome/browser/extensions/activity_log_unittest.cc
@@ -93,10 +93,8 @@ TEST_F(ActivityLogTest, Construct) {
extension_service_->AddExtension(extension);
scoped_ptr<ListValue> args(new ListValue());
ASSERT_TRUE(ActivityLog::IsLogEnabled());
- activity_log->LogAPIAction(extension,
- std::string("tabs.testMethod"),
- args.get(),
- "");
+ activity_log->LogAPIAction(
+ extension, std::string("tabs.testMethod"), args.get(), std::string());
}
TEST_F(ActivityLogTest, LogAndFetchActions) {
@@ -113,10 +111,8 @@ TEST_F(ActivityLogTest, LogAndFetchActions) {
ASSERT_TRUE(ActivityLog::IsLogEnabled());
// Write some API calls
- activity_log->LogAPIAction(extension,
- std::string("tabs.testMethod"),
- args.get(),
- "");
+ activity_log->LogAPIAction(
+ extension, std::string("tabs.testMethod"), args.get(), std::string());
activity_log->LogDOMAction(extension,
GURL("http://www.google.com"),
string16(),
@@ -144,14 +140,10 @@ TEST_F(ActivityLogTest, LogWithoutArguments) {
scoped_ptr<ListValue> args(new ListValue());
args->Set(0, new base::StringValue("hello"));
args->Set(1, new base::StringValue("world"));
- activity_log->LogAPIAction(extension,
- std::string("tabs.testMethod"),
- args.get(),
- "");
+ activity_log->LogAPIAction(
+ extension, std::string("tabs.testMethod"), args.get(), std::string());
activity_log->GetActions(
- extension->id(),
- 0,
- base::Bind(ActivityLogTest::Arguments_Missing));
+ extension->id(), 0, base::Bind(ActivityLogTest::Arguments_Missing));
}
TEST_F(ActivityLogTest, LogWithArguments) {
@@ -169,14 +161,10 @@ TEST_F(ActivityLogTest, LogWithArguments) {
scoped_ptr<ListValue> args(new ListValue());
args->Set(0, new base::StringValue("hello"));
args->Set(1, new base::StringValue("world"));
- activity_log->LogAPIAction(extension,
- std::string("extension.connect"),
- args.get(),
- "");
+ activity_log->LogAPIAction(
+ extension, std::string("extension.connect"), args.get(), std::string());
activity_log->GetActions(
- extension->id(),
- 0,
- base::Bind(ActivityLogTest::Arguments_Present));
+ extension->id(), 0, base::Bind(ActivityLogTest::Arguments_Present));
}
} // namespace extensions