OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 <utility> | 5 #include <utility> |
6 | 6 |
7 #include "base/base64.h" | 7 #include "base/base64.h" |
8 #include "base/files/file_util.h" | 8 #include "base/files/file_util.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "base/memory/ptr_util.h" | 10 #include "base/memory/ptr_util.h" |
(...skipping 93 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
104 public protocol::VideoRenderer, | 104 public protocol::VideoRenderer, |
105 public protocol::VideoStub, | 105 public protocol::VideoStub, |
106 public protocol::FrameConsumer, | 106 public protocol::FrameConsumer, |
107 public HostStatusObserver { | 107 public HostStatusObserver { |
108 public: | 108 public: |
109 ProtocolPerfTest() | 109 ProtocolPerfTest() |
110 : host_thread_("host"), | 110 : host_thread_("host"), |
111 capture_thread_("capture"), | 111 capture_thread_("capture"), |
112 encode_thread_("encode"), | 112 encode_thread_("encode"), |
113 decode_thread_("decode") { | 113 decode_thread_("decode") { |
114 protocol::VideoFramePump::EnableTimestampsForTests(); | |
115 host_thread_.StartWithOptions( | 114 host_thread_.StartWithOptions( |
116 base::Thread::Options(base::MessageLoop::TYPE_IO, 0)); | 115 base::Thread::Options(base::MessageLoop::TYPE_IO, 0)); |
117 capture_thread_.Start(); | 116 capture_thread_.Start(); |
118 encode_thread_.Start(); | 117 encode_thread_.Start(); |
119 decode_thread_.Start(); | 118 decode_thread_.Start(); |
120 } | 119 } |
121 | 120 |
122 virtual ~ProtocolPerfTest() { | 121 virtual ~ProtocolPerfTest() { |
123 host_thread_.task_runner()->DeleteSoon(FROM_HERE, host_.release()); | 122 host_thread_.task_runner()->DeleteSoon(FROM_HERE, host_.release()); |
124 host_thread_.task_runner()->DeleteSoon(FROM_HERE, | 123 host_thread_.task_runner()->DeleteSoon(FROM_HERE, |
(...skipping 567 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
692 | 691 |
693 TEST_P(ProtocolPerfTest, ScrollPerformanceIce) { | 692 TEST_P(ProtocolPerfTest, ScrollPerformanceIce) { |
694 MeasureScrollPerformance(false); | 693 MeasureScrollPerformance(false); |
695 } | 694 } |
696 | 695 |
697 TEST_P(ProtocolPerfTest, ScrollPerformanceWebrtc) { | 696 TEST_P(ProtocolPerfTest, ScrollPerformanceWebrtc) { |
698 MeasureScrollPerformance(true); | 697 MeasureScrollPerformance(true); |
699 } | 698 } |
700 | 699 |
701 } // namespace remoting | 700 } // namespace remoting |
OLD | NEW |