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

Unified Diff: remoting/host/capture_scheduler.h

Issue 12803008: Add unit tests for sub-components of CaptureScheduler. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 9 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: remoting/host/capture_scheduler.h
diff --git a/remoting/host/capture_scheduler.h b/remoting/host/capture_scheduler.h
index b743f578d53717b41f319ce6fc614f3fc85cecf5..7e7173ee56adda7a187152fcd011e693d078bf67 100644
--- a/remoting/host/capture_scheduler.h
+++ b/remoting/host/capture_scheduler.h
@@ -19,13 +19,17 @@ class CaptureScheduler {
CaptureScheduler();
~CaptureScheduler();
- // Determine the time delay from current time to perform next capture.
+ // Returns the time to wait after initiating the a capture before triggering
+ // the next.
base::TimeDelta NextCaptureDelay();
- // Record time spent on capturing and encoding.
+ // Records time spent on capturing and encoding.
void RecordCaptureTime(base::TimeDelta capture_time);
void RecordEncodeTime(base::TimeDelta encode_time);
+ // Overrides the number of processors for testing.
+ void SetNumOfProcessorsForTest(int num_of_processors);
+
private:
int num_of_processors_;
RunningAverage capture_time_;

Powered by Google App Engine
This is Rietveld 408576698