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

Unified Diff: third_party/WebKit/Source/core/workers/InProcessWorkerObjectProxy.h

Issue 2384723002: Worker: Shorten running time of DedicatedWorkerTests (Closed)
Patch Set: revise comments Created 4 years, 2 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
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;

Powered by Google App Engine
This is Rietveld 408576698