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

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

Issue 2464613002: Update remoting_perftest to evaluate bandwidth estimation. (Closed)
Patch Set: Created 4 years, 1 month 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 | « no previous file | remoting/test/protocol_perftest.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 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 // MSVC++ requires this to be set before any other includes to get M_PI. 5 // MSVC++ requires this to be set before any other includes to get M_PI.
6 #define _USE_MATH_DEFINES 6 #define _USE_MATH_DEFINES
7 7
8 #include "remoting/test/fake_socket_factory.h" 8 #include "remoting/test/fake_socket_factory.h"
9 9
10 #include <algorithm> 10 #include <algorithm>
(...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after
144 rtc::AsyncPacketSocket::State FakeUdpSocket::GetState() const { 144 rtc::AsyncPacketSocket::State FakeUdpSocket::GetState() const {
145 return state_; 145 return state_;
146 } 146 }
147 147
148 int FakeUdpSocket::GetOption(rtc::Socket::Option option, int* value) { 148 int FakeUdpSocket::GetOption(rtc::Socket::Option option, int* value) {
149 NOTIMPLEMENTED(); 149 NOTIMPLEMENTED();
150 return -1; 150 return -1;
151 } 151 }
152 152
153 int FakeUdpSocket::SetOption(rtc::Socket::Option option, int value) { 153 int FakeUdpSocket::SetOption(rtc::Socket::Option option, int value) {
154 NOTIMPLEMENTED(); 154 // All options are currently ignored.
155 return -1; 155 return 0;
156 } 156 }
157 157
158 int FakeUdpSocket::GetError() const { 158 int FakeUdpSocket::GetError() const {
159 return 0; 159 return 0;
160 } 160 }
161 161
162 void FakeUdpSocket::SetError(int error) { 162 void FakeUdpSocket::SetError(int error) {
163 NOTREACHED(); 163 NOTREACHED();
164 } 164 }
165 165
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 } 358 }
359 359
360 void FakePacketSocketFactory::ResetStats() { 360 void FakePacketSocketFactory::ResetStats() {
361 total_packets_dropped_ = 0; 361 total_packets_dropped_ = 0;
362 total_packets_received_ = 0; 362 total_packets_received_ = 0;
363 total_buffer_delay_ = base::TimeDelta(); 363 total_buffer_delay_ = base::TimeDelta();
364 max_buffer_delay_ = base::TimeDelta(); 364 max_buffer_delay_ = base::TimeDelta();
365 } 365 }
366 366
367 } // namespace remoting 367 } // namespace remoting
OLDNEW
« no previous file with comments | « no previous file | remoting/test/protocol_perftest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698