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

Unified Diff: trunk/src/chrome/browser/extensions/activity_log/fullstream_ui_policy_unittest.cc

Issue 23600024: Revert 222242 "[Activity Log] when extension is uninstalled, del..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 years, 3 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 | « trunk/src/chrome/browser/extensions/activity_log/fullstream_ui_policy.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: trunk/src/chrome/browser/extensions/activity_log/fullstream_ui_policy_unittest.cc
===================================================================
--- trunk/src/chrome/browser/extensions/activity_log/fullstream_ui_policy_unittest.cc (revision 222255)
+++ trunk/src/chrome/browser/extensions/activity_log/fullstream_ui_policy_unittest.cc (working copy)
@@ -633,63 +633,6 @@
policy->Close();
}
-TEST_F(FullStreamUIPolicyTest, RemoveExtensionData) {
- FullStreamUIPolicy* policy = new FullStreamUIPolicy(profile_.get());
-
- // Use a mock clock to ensure that events are not recorded on the wrong day
- // when the test is run close to local midnight.
- base::SimpleTestClock* mock_clock = new base::SimpleTestClock();
- mock_clock->SetNow(base::Time::Now().LocalMidnight() +
- base::TimeDelta::FromHours(12));
- policy->SetClockForTesting(scoped_ptr<base::Clock>(mock_clock));
-
- // Record some actions
- scoped_refptr<Action> action = new Action("deleteextensiondata",
- mock_clock->Now(),
- Action::ACTION_DOM_ACCESS,
- "lets");
- action->mutable_args()->AppendString("vamoose");
- action->set_page_title("Google");
- action->set_arg_url(GURL("http://www.google.com"));
- policy->ProcessAction(action);
- policy->ProcessAction(action);
- policy->ProcessAction(action);
-
- scoped_refptr<Action> action2 = new Action("dontdelete",
- mock_clock->Now(),
- Action::ACTION_DOM_ACCESS,
- "lets");
- action->mutable_args()->AppendString("vamoose");
- action->set_page_title("Google");
- action->set_arg_url(GURL("http://www.google.com"));
- policy->ProcessAction(action2);
-
- policy->Flush();
- policy->RemoveExtensionData("deleteextensiondata");
-
- CheckReadFilteredData(
- policy,
- "deleteextensiondata",
- Action::ACTION_ANY,
- "",
- "",
- "",
- -1,
- base::Bind(
- &FullStreamUIPolicyTest::RetrieveActions_FetchFilteredActions0));
-
- CheckReadFilteredData(
- policy,
- "dontdelete",
- Action::ACTION_ANY,
- "",
- "",
- "",
- -1,
- base::Bind(
- &FullStreamUIPolicyTest::RetrieveActions_FetchFilteredActions1));
-}
-
TEST_F(FullStreamUIPolicyTest, CapReturns) {
FullStreamUIPolicy* policy = new FullStreamUIPolicy(profile_.get());
« no previous file with comments | « trunk/src/chrome/browser/extensions/activity_log/fullstream_ui_policy.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698