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

Side by Side Diff: components/cronet/android/cronet_url_request_adapter.cc

Issue 2406273002: [Cronet] Test the libcronet that's shipped, not libcronet_test (Closed)
Patch Set: address two remaining comments 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
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 "components/cronet/android/cronet_url_request_adapter.h" 5 #include "components/cronet/android/cronet_url_request_adapter.h"
6 6
7 #include <limits> 7 #include <limits>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 418 matching lines...) Expand 10 before | Expand all | Expand 10 after
429 metrics_util::ConvertTime(metrics.push_start, start_ticks, start_time), 429 metrics_util::ConvertTime(metrics.push_start, start_ticks, start_time),
430 metrics_util::ConvertTime(metrics.push_end, start_ticks, start_time), 430 metrics_util::ConvertTime(metrics.push_end, start_ticks, start_time),
431 metrics_util::ConvertTime(metrics.receive_headers_end, start_ticks, 431 metrics_util::ConvertTime(metrics.receive_headers_end, start_ticks,
432 start_time), 432 start_time),
433 metrics_util::ConvertTime(base::TimeTicks::Now(), start_ticks, 433 metrics_util::ConvertTime(base::TimeTicks::Now(), start_ticks,
434 start_time), 434 start_time),
435 metrics.socket_reused, url_request_->GetTotalSentBytes(), 435 metrics.socket_reused, url_request_->GetTotalSentBytes(),
436 url_request_->GetTotalReceivedBytes()); 436 url_request_->GetTotalReceivedBytes());
437 } 437 }
438 438
439 net::URLRequest* CronetURLRequestAdapter::GetURLRequestForTesting() {
440 return url_request_.get();
441 }
442
443 } // namespace cronet 439 } // namespace cronet
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698