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

Side by Side Diff: net/base/network_quality.cc

Issue 1164713004: Store network quality samples so we can compute percentiles. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added tests, changed kbps to int32_t, removed confidence Created 5 years, 6 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
(Empty)
1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #include "net/base/network_quality.h"
6
7 #include "base/logging.h"
8
9 namespace net {
10
11 NetworkQuality::NetworkQuality(const base::TimeDelta& rtt,
12 int32_t downstream_throughput_kbps)
13 : rtt_(rtt), downstream_throughput_kbps_(downstream_throughput_kbps) {
14 DCHECK_GE(rtt_, base::TimeDelta());
15 DCHECK_GE(downstream_throughput_kbps_, 0);
16 }
17
18 NetworkQuality::~NetworkQuality() {
19 }
20
21 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698