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

Side by Side Diff: remoting/test/protocol_perftest.cc

Issue 2334293002: Two minor cleanups in remoting protocol. (Closed)
Patch Set: . Created 4 years, 3 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
OLDNEW
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
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
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
OLDNEW
« remoting/proto/video.proto ('K') | « remoting/protocol/webrtc_connection_to_client.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698