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

Side by Side Diff: remoting/host/capture_scheduler.cc

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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « remoting/host/capture_scheduler.h ('k') | remoting/host/capture_scheduler_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "remoting/host/capture_scheduler.h" 5 #include "remoting/host/capture_scheduler.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/logging.h" 9 #include "base/logging.h"
10 #include "base/sys_info.h" 10 #include "base/sys_info.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 } 53 }
54 54
55 void CaptureScheduler::RecordCaptureTime(base::TimeDelta capture_time) { 55 void CaptureScheduler::RecordCaptureTime(base::TimeDelta capture_time) {
56 capture_time_.Record(capture_time.InMilliseconds()); 56 capture_time_.Record(capture_time.InMilliseconds());
57 } 57 }
58 58
59 void CaptureScheduler::RecordEncodeTime(base::TimeDelta encode_time) { 59 void CaptureScheduler::RecordEncodeTime(base::TimeDelta encode_time) {
60 encode_time_.Record(encode_time.InMilliseconds()); 60 encode_time_.Record(encode_time.InMilliseconds());
61 } 61 }
62 62
63 void CaptureScheduler::SetNumOfProcessorsForTest(int num_of_processors) {
64 num_of_processors_ = num_of_processors;
65 }
66
63 } // namespace remoting 67 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/host/capture_scheduler.h ('k') | remoting/host/capture_scheduler_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698