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

Side by Side Diff: remoting/protocol/capture_scheduler_unittest.cc

Issue 1462063004: Move VideoFramePump to remoting/protocol (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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
« no previous file with comments | « remoting/protocol/capture_scheduler.cc ('k') | remoting/protocol/fake_desktop_capturer.h » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/protocol/capture_scheduler.h"
6 6
7 #include "base/message_loop/message_loop.h" 7 #include "base/message_loop/message_loop.h"
8 #include "base/test/simple_test_tick_clock.h" 8 #include "base/test/simple_test_tick_clock.h"
9 #include "base/timer/mock_timer.h" 9 #include "base/timer/mock_timer.h"
10 #include "remoting/proto/video.pb.h" 10 #include "remoting/proto/video.pb.h"
11 #include "testing/gtest/include/gtest/gtest.h" 11 #include "testing/gtest/include/gtest/gtest.h"
12 12
13 namespace remoting { 13 namespace remoting {
14 namespace protocol {
14 15
15 static const int kTestInputs[] = { 100, 50, 30, 20, 10, 30, 60, 80 }; 16 static const int kTestInputs[] = { 100, 50, 30, 20, 10, 30, 60, 80 };
16 static const int kMinumumFrameIntervalMs = 50; 17 static const int kMinumumFrameIntervalMs = 50;
17 18
18 class CaptureSchedulerTest : public testing::Test { 19 class CaptureSchedulerTest : public testing::Test {
19 public: 20 public:
20 CaptureSchedulerTest() : capture_called_(false) {} 21 CaptureSchedulerTest() : capture_called_(false) {}
21 22
22 void InitScheduler() { 23 void InitScheduler() {
23 scheduler_.reset(new CaptureScheduler( 24 scheduler_.reset(new CaptureScheduler(
(...skipping 161 matching lines...) Expand 10 before | Expand all | Expand 10 after
185 scheduler_->OnFrameSent(); 186 scheduler_->OnFrameSent();
186 } 187 }
187 188
188 // Next frame should be scheduled, once one of the queued frames is 189 // Next frame should be scheduled, once one of the queued frames is
189 // acknowledged. 190 // acknowledged.
190 EXPECT_FALSE(capture_timer_->IsRunning()); 191 EXPECT_FALSE(capture_timer_->IsRunning());
191 scheduler_->ProcessVideoAck(make_scoped_ptr(new VideoAck())); 192 scheduler_->ProcessVideoAck(make_scoped_ptr(new VideoAck()));
192 EXPECT_TRUE(capture_timer_->IsRunning()); 193 EXPECT_TRUE(capture_timer_->IsRunning());
193 } 194 }
194 195
196 } // namespace protocol
195 } // namespace remoting 197 } // namespace remoting
OLDNEW
« no previous file with comments | « remoting/protocol/capture_scheduler.cc ('k') | remoting/protocol/fake_desktop_capturer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698