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

Side by Side Diff: net/log/test_net_log.cc

Issue 2351513002: net: rename BoundNetLog to NetLogWithSource (Closed)
Patch Set: one more fix, content bound_net_log_ Created 4 years, 3 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
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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/log/test_net_log.h" 5 #include "net/log/test_net_log.h"
6 6
7 #include "base/macros.h" 7 #include "base/macros.h"
8 #include "base/synchronization/lock.h" 8 #include "base/synchronization/lock.h"
9 #include "base/values.h" 9 #include "base/values.h"
10 #include "net/log/net_log_source_type.h" 10 #include "net/log/net_log_source_type.h"
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after
97 97
98 void TestNetLog::Clear() { 98 void TestNetLog::Clear() {
99 observer_->Clear(); 99 observer_->Clear();
100 } 100 }
101 101
102 NetLog::ThreadSafeObserver* TestNetLog::GetObserver() const { 102 NetLog::ThreadSafeObserver* TestNetLog::GetObserver() const {
103 return observer_.get(); 103 return observer_.get();
104 } 104 }
105 105
106 BoundTestNetLog::BoundTestNetLog() 106 BoundTestNetLog::BoundTestNetLog()
107 : net_log_(BoundNetLog::Make(&test_net_log_, NetLogSourceType::NONE)) {} 107 : net_log_(NetLogWithSource::Make(&test_net_log_, NetLogSourceType::NONE)) {
108 }
108 109
109 BoundTestNetLog::~BoundTestNetLog() { 110 BoundTestNetLog::~BoundTestNetLog() {
110 } 111 }
111 112
112 void BoundTestNetLog::GetEntries(TestNetLogEntry::List* entry_list) const { 113 void BoundTestNetLog::GetEntries(TestNetLogEntry::List* entry_list) const {
113 test_net_log_.GetEntries(entry_list); 114 test_net_log_.GetEntries(entry_list);
114 } 115 }
115 116
116 void BoundTestNetLog::GetEntriesForSource( 117 void BoundTestNetLog::GetEntriesForSource(
117 NetLog::Source source, 118 NetLog::Source source,
118 TestNetLogEntry::List* entry_list) const { 119 TestNetLogEntry::List* entry_list) const {
119 test_net_log_.GetEntriesForSource(source, entry_list); 120 test_net_log_.GetEntriesForSource(source, entry_list);
120 } 121 }
121 122
122 size_t BoundTestNetLog::GetSize() const { 123 size_t BoundTestNetLog::GetSize() const {
123 return test_net_log_.GetSize(); 124 return test_net_log_.GetSize();
124 } 125 }
125 126
126 void BoundTestNetLog::Clear() { 127 void BoundTestNetLog::Clear() {
127 test_net_log_.Clear(); 128 test_net_log_.Clear();
128 } 129 }
129 130
130 void BoundTestNetLog::SetCaptureMode(NetLogCaptureMode capture_mode) { 131 void BoundTestNetLog::SetCaptureMode(NetLogCaptureMode capture_mode) {
131 test_net_log_.SetCaptureMode(capture_mode); 132 test_net_log_.SetCaptureMode(capture_mode);
132 } 133 }
133 134
134 } // namespace net 135 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698