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

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

Issue 2101833002: [Remoting Android] DisplayUpdaterFactory cleanups (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reviewer's Feedback Created 4 years, 5 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 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
142 const protocol::PairingResponse& pairing_response) override {} 142 const protocol::PairingResponse& pairing_response) override {}
143 void DeliverHostMessage(const protocol::ExtensionMessage& message) override {} 143 void DeliverHostMessage(const protocol::ExtensionMessage& message) override {}
144 void SetDesktopSize(const webrtc::DesktopSize& size, 144 void SetDesktopSize(const webrtc::DesktopSize& size,
145 const webrtc::DesktopVector& dpi) override {} 145 const webrtc::DesktopVector& dpi) override {}
146 protocol::ClipboardStub* GetClipboardStub() override { return nullptr; } 146 protocol::ClipboardStub* GetClipboardStub() override { return nullptr; }
147 protocol::CursorShapeStub* GetCursorShapeStub() override { 147 protocol::CursorShapeStub* GetCursorShapeStub() override {
148 return &cursor_shape_stub_; 148 return &cursor_shape_stub_;
149 } 149 }
150 150
151 // VideoRenderer interface. 151 // VideoRenderer interface.
152 bool Initialize(const ClientContext& client_context,
153 protocol::PerformanceTracker* perf_tracker) override {
154 return true;
155 }
152 void OnSessionConfig(const protocol::SessionConfig& config) override {} 156 void OnSessionConfig(const protocol::SessionConfig& config) override {}
153 protocol::VideoStub* GetVideoStub() override { return this; } 157 protocol::VideoStub* GetVideoStub() override { return this; }
154 protocol::FrameConsumer* GetFrameConsumer() override { return this; } 158 protocol::FrameConsumer* GetFrameConsumer() override { return this; }
155 159
156 // protocol::VideoStub interface. 160 // protocol::VideoStub interface.
157 void ProcessVideoPacket(std::unique_ptr<VideoPacket> packet, 161 void ProcessVideoPacket(std::unique_ptr<VideoPacket> packet,
158 const base::Closure& done) override { 162 const base::Closure& done) override {
159 if (packet->data().empty()) { 163 if (packet->data().empty()) {
160 // Ignore keep-alive packets 164 // Ignore keep-alive packets
161 done.Run(); 165 done.Run();
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after
633 637
634 TEST_P(ProtocolPerfTest, TotalLatencyIce) { 638 TEST_P(ProtocolPerfTest, TotalLatencyIce) {
635 MeasureTotalLatency(false); 639 MeasureTotalLatency(false);
636 } 640 }
637 641
638 TEST_P(ProtocolPerfTest, TotalLatencyWebrtc) { 642 TEST_P(ProtocolPerfTest, TotalLatencyWebrtc) {
639 MeasureTotalLatency(true); 643 MeasureTotalLatency(true);
640 } 644 }
641 645
642 } // namespace remoting 646 } // namespace remoting
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698