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

Unified Diff: net/reporting/reporting_persister_unittest.cc

Issue 2835923005: Reporting: Remove persistence for now. (Closed)
Patch Set: Created 3 years, 8 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 | « net/reporting/reporting_persister.cc ('k') | net/reporting/reporting_service.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/reporting/reporting_persister_unittest.cc
diff --git a/net/reporting/reporting_persister_unittest.cc b/net/reporting/reporting_persister_unittest.cc
index ed109edacaed59bb0bf873bc0ea032f5660d772f..c0bda9fe4775c01970e7aac6154a3e81a8356f27 100644
--- a/net/reporting/reporting_persister_unittest.cc
+++ b/net/reporting/reporting_persister_unittest.cc
@@ -30,7 +30,8 @@ class ReportingPersisterTest : public ReportingTestBase {
const std::string kType_ = "default";
};
-TEST_F(ReportingPersisterTest, Test) {
+// Disabled because the Persister has no persistence layer to use yet.
+TEST_F(ReportingPersisterTest, DISABLED_Test) {
ReportingPolicy policy;
policy.persist_reports_across_restarts = true;
policy.persist_clients_across_restarts = true;
@@ -49,8 +50,7 @@ TEST_F(ReportingPersisterTest, Test) {
kGroup_,
tick_clock()->NowTicks() + base::TimeDelta::FromDays(1));
- EXPECT_TRUE(persistence_timer()->IsRunning());
- persistence_timer()->Fire();
+ // TODO: Actually trigger persistence, once it's possible.
SimulateRestart(/* delta= */ base::TimeDelta::FromHours(1),
/* delta_ticks= */ base::TimeDelta::FromHours(-3));
« no previous file with comments | « net/reporting/reporting_persister.cc ('k') | net/reporting/reporting_service.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698