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

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: Pick nits. 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
« no previous file with comments | « remoting/base/running_average_unittest.cc ('k') | remoting/host/capture_scheduler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/host/capture_scheduler.h
diff --git a/remoting/host/capture_scheduler.h b/remoting/host/capture_scheduler.h
index b743f578d53717b41f319ce6fc614f3fc85cecf5..af770a4d86fd200e2401aaf6beb02016249aaf4f 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 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_;
« no previous file with comments | « remoting/base/running_average_unittest.cc ('k') | remoting/host/capture_scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698