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

Unified Diff: chrome/browser/net/passive_log_collector_unittest.cc

Issue 1560025: Initialize the new net internals page using the passively collected log entri... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Add missing unittest file Created 10 years, 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/net/passive_log_collector.cc ('k') | chrome/browser/net/view_net_internals_job_factory.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/net/passive_log_collector_unittest.cc
===================================================================
--- chrome/browser/net/passive_log_collector_unittest.cc (revision 44225)
+++ chrome/browser/net/passive_log_collector_unittest.cc (working copy)
@@ -16,9 +16,10 @@
const net::NetLog::SourceType kSourceType = net::NetLog::SOURCE_NONE;
-net::CapturingNetLog::Entry MakeStartLogEntryWithURL(int source_id,
- const std::string& url) {
- return net::CapturingNetLog::Entry(
+PassiveLogCollector::Entry MakeStartLogEntryWithURL(int source_id,
+ const std::string& url) {
+ return PassiveLogCollector::Entry(
+ 0,
net::NetLog::TYPE_URL_REQUEST_START,
base::TimeTicks(),
net::NetLog::Source(kSourceType, source_id),
@@ -26,13 +27,14 @@
new net::NetLogStringParameter(url));
}
-net::CapturingNetLog::Entry MakeStartLogEntry(int source_id) {
+PassiveLogCollector::Entry MakeStartLogEntry(int source_id) {
return MakeStartLogEntryWithURL(source_id,
StringPrintf("http://req%d", source_id));
}
-net::CapturingNetLog::Entry MakeEndLogEntry(int source_id) {
- return net::CapturingNetLog::Entry(
+PassiveLogCollector::Entry MakeEndLogEntry(int source_id) {
+ return PassiveLogCollector::Entry(
+ 0,
net::NetLog::TYPE_REQUEST_ALIVE,
base::TimeTicks(),
net::NetLog::Source(kSourceType, source_id),
« no previous file with comments | « chrome/browser/net/passive_log_collector.cc ('k') | chrome/browser/net/view_net_internals_job_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698