| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "net/nqe/network_quality.h" | 5 #include "net/nqe/network_quality.h" |
| 6 | 6 |
| 7 namespace net { | 7 namespace net { |
| 8 | 8 |
| 9 namespace nqe { | 9 namespace nqe { |
| 10 | 10 |
| (...skipping 22 matching lines...) Expand all Loading... |
| 33 | 33 |
| 34 NetworkQuality::~NetworkQuality() {} | 34 NetworkQuality::~NetworkQuality() {} |
| 35 | 35 |
| 36 NetworkQuality& NetworkQuality::operator=(const NetworkQuality& other) { | 36 NetworkQuality& NetworkQuality::operator=(const NetworkQuality& other) { |
| 37 http_rtt_ = other.http_rtt_; | 37 http_rtt_ = other.http_rtt_; |
| 38 transport_rtt_ = other.transport_rtt_; | 38 transport_rtt_ = other.transport_rtt_; |
| 39 downstream_throughput_kbps_ = other.downstream_throughput_kbps_; | 39 downstream_throughput_kbps_ = other.downstream_throughput_kbps_; |
| 40 return *this; | 40 return *this; |
| 41 } | 41 } |
| 42 | 42 |
| 43 bool NetworkQuality::operator==(const NetworkQuality& other) const { |
| 44 return http_rtt_ == other.http_rtt_ && |
| 45 transport_rtt_ == other.transport_rtt_ && |
| 46 downstream_throughput_kbps_ == other.downstream_throughput_kbps_; |
| 47 } |
| 48 |
| 43 } // namespace internal | 49 } // namespace internal |
| 44 | 50 |
| 45 } // namespace nqe | 51 } // namespace nqe |
| 46 | 52 |
| 47 } // namespace net | 53 } // namespace net |
| OLD | NEW |