Index: net/reporting/reporting_test_util.h |
diff --git a/net/reporting/reporting_test_util.h b/net/reporting/reporting_test_util.h |
index 73ef979d74de46405a76ef40f19c5f1d20f6ce05..d9a0906dfc90526bd7759ade6e9c71ccfb686470 100644 |
--- a/net/reporting/reporting_test_util.h |
+++ b/net/reporting/reporting_test_util.h |
@@ -18,6 +18,7 @@ |
class GURL; |
namespace base { |
+class MockTimer; |
class SimpleTestClock; |
class SimpleTestTickClock; |
class Value; |
@@ -31,6 +32,7 @@ namespace net { |
class ReportingCache; |
struct ReportingClient; |
+class ReportingGarbageCollector; |
// Finds a particular client (by origin and endpoint) in the cache and returns |
// it (or nullptr if not found). |
@@ -102,6 +104,9 @@ class TestReportingContext : public ReportingContext { |
TestReportingDelegate* test_delegate() { return test_delegate_; } |
base::SimpleTestClock* test_clock() { return test_clock_; } |
base::SimpleTestTickClock* test_tick_clock() { return test_tick_clock_; } |
+ base::MockTimer* test_garbage_collection_timer() { |
+ return test_garbage_collection_timer_; |
+ } |
TestReportingUploader* test_uploader() { return test_uploader_; } |
private: |
@@ -110,6 +115,7 @@ class TestReportingContext : public ReportingContext { |
TestReportingDelegate* test_delegate_; |
base::SimpleTestClock* test_clock_; |
base::SimpleTestTickClock* test_tick_clock_; |
+ base::MockTimer* test_garbage_collection_timer_; |
TestReportingUploader* test_uploader_; |
DISALLOW_COPY_AND_ASSIGN(TestReportingContext); |
@@ -133,6 +139,9 @@ class ReportingTestBase : public ::testing::Test { |
base::SimpleTestTickClock* tick_clock() { |
return context_->test_tick_clock(); |
} |
+ base::MockTimer* garbage_collection_timer() { |
+ return context_->test_garbage_collection_timer(); |
+ } |
TestReportingUploader* uploader() { return context_->test_uploader(); } |
ReportingCache* cache() { return context_->cache(); } |
@@ -142,6 +151,9 @@ class ReportingTestBase : public ::testing::Test { |
ReportingDeliveryAgent* delivery_agent() { |
return context_->delivery_agent(); |
} |
+ ReportingGarbageCollector* garbage_collector() { |
+ return context_->garbage_collector(); |
+ } |
base::TimeTicks yesterday(); |