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

Unified Diff: net/reporting/reporting_persister_unittest.cc

Issue 2769083005: Reporting: Set up in ProfileImplIOData. (Closed)
Patch Set: rebase 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.h ('k') | net/reporting/reporting_service.cc » ('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 c0bda9fe4775c01970e7aac6154a3e81a8356f27..1ac54c06e8debabd162f96ca93b1a2e9ec6c78bb 100644
--- a/net/reporting/reporting_persister_unittest.cc
+++ b/net/reporting/reporting_persister_unittest.cc
@@ -11,6 +11,7 @@
#include "base/time/time.h"
#include "base/timer/mock_timer.h"
#include "base/values.h"
+#include "net/base/test_completion_callback.h"
#include "net/reporting/reporting_cache.h"
#include "net/reporting/reporting_client.h"
#include "net/reporting/reporting_policy.h"
@@ -50,11 +51,13 @@ TEST_F(ReportingPersisterTest, DISABLED_Test) {
kGroup_,
tick_clock()->NowTicks() + base::TimeDelta::FromDays(1));
- // TODO: Actually trigger persistence, once it's possible.
+ // TODO: Actually save data, once it's possible.
SimulateRestart(/* delta= */ base::TimeDelta::FromHours(1),
/* delta_ticks= */ base::TimeDelta::FromHours(-3));
+ // TODO: Actually load data, once it's possible.
+
std::vector<const ReportingReport*> reports;
cache()->GetReports(&reports);
ASSERT_EQ(1u, reports.size());
@@ -76,5 +79,7 @@ TEST_F(ReportingPersisterTest, DISABLED_Test) {
client->expires);
}
+// TODO(juliatuttle): Test asynchronous behavior.
+
} // namespace
} // namespace net
« no previous file with comments | « net/reporting/reporting_persister.h ('k') | net/reporting/reporting_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698