Index: third_party/WebKit/Source/core/workers/InProcessWorkerObjectProxy.h |
diff --git a/third_party/WebKit/Source/core/workers/InProcessWorkerObjectProxy.h b/third_party/WebKit/Source/core/workers/InProcessWorkerObjectProxy.h |
index d07a023056fb9036f0a96a1a7a27103d45c8ee99..a59dffdc856554915aba5e9e7b73ab3fd32627c8 100644 |
--- a/third_party/WebKit/Source/core/workers/InProcessWorkerObjectProxy.h |
+++ b/third_party/WebKit/Source/core/workers/InProcessWorkerObjectProxy.h |
@@ -107,8 +107,12 @@ class CORE_EXPORT InProcessWorkerObjectProxy : public WorkerReportingProxy { |
// cancelled when the worker global scope is destroyed. |
std::unique_ptr<Timer<InProcessWorkerObjectProxy>> m_timer; |
+ // The default interval duration of the timer. This is usually |
+ // kDefaultIntervalInSec but made as a member variable for testing. |
+ double m_defaultIntervalInSec; |
+ |
// The next interval duration of the timer. This is initially set to |
- // kDefaultIntervalInSec and exponentially increased up to |
+ // |m_defaultIntervalInSec| and exponentially increased up to |
// |m_maxIntervalInSec|. |
double m_nextIntervalInSec; |