Upstream version 7.36.149.0
[platform/framework/web/crosswalk.git] / src / chrome / browser / extensions / api / activity_log_private / activity_log_private_apitest.cc
index acfff92..77c030f 100644 (file)
@@ -56,7 +56,7 @@ class ActivityLogApiTest : public ExtensionApiTest {
 // The test extension sends a message to its 'friend'. The test completes
 // if it successfully sees the 'friend' receive the message.
 IN_PROC_BROWSER_TEST_F(ActivityLogApiTest, MAYBE_TriggerEvent) {
-  ActivityLog::GetInstance(profile())->SetWatchdogAppActive(true);
+  ActivityLog::GetInstance(profile())->SetWatchdogAppActiveForTesting(true);
 
   host_resolver()->AddRule("*", "127.0.0.1");
   ASSERT_TRUE(StartEmbeddedTestServer());
@@ -67,7 +67,7 @@ IN_PROC_BROWSER_TEST_F(ActivityLogApiTest, MAYBE_TriggerEvent) {
       test_data_dir_.AppendASCII("activity_log_private/friend"));
   ASSERT_TRUE(friend_extension);
   ASSERT_TRUE(RunExtensionTest("activity_log_private/test"));
-  ActivityLog::GetInstance(profile())->SetWatchdogAppActive(false);
+  ActivityLog::GetInstance(profile())->SetWatchdogAppActiveForTesting(false);
 }
 
 }  // namespace extensions