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

Unified Diff: net/log/test_net_log.cc

Issue 1084533002: Rename NetLogLogger and CapturingNetLog (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rename NetLogLogger and CapturingNetLog(removed compiler error for chromeOS) Created 5 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 | « net/log/test_net_log.h ('k') | net/log/trace_net_log_observer_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/log/test_net_log.cc
diff --git a/net/log/capturing_net_log.cc b/net/log/test_net_log.cc
similarity index 51%
rename from net/log/capturing_net_log.cc
rename to net/log/test_net_log.cc
index 99e72969a55b05c0ed0b73a86852811717c479d8..695eacc935f2841e831440730193c120d774b971 100644
--- a/net/log/capturing_net_log.cc
+++ b/net/log/test_net_log.cc
@@ -2,68 +2,67 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "net/log/capturing_net_log.h"
+#include "net/log/test_net_log.h"
namespace net {
-CapturingNetLog::CapturingNetLog() {
+TestNetLog::TestNetLog() {
DeprecatedAddObserver(&capturing_net_log_observer_, LOG_ALL_BUT_BYTES);
}
-CapturingNetLog::~CapturingNetLog() {
+TestNetLog::~TestNetLog() {
DeprecatedRemoveObserver(&capturing_net_log_observer_);
}
-void CapturingNetLog::SetLogLevel(NetLog::LogLevel log_level) {
+void TestNetLog::SetLogLevel(NetLog::LogLevel log_level) {
SetObserverLogLevel(&capturing_net_log_observer_, log_level);
}
-void CapturingNetLog::GetEntries(
- CapturingNetLog::CapturedEntryList* entry_list) const {
+void TestNetLog::GetEntries(TestNetLog::CapturedEntryList* entry_list) const {
capturing_net_log_observer_.GetEntries(entry_list);
}
-void CapturingNetLog::GetEntriesForSource(NetLog::Source source,
- CapturedEntryList* entry_list) const {
+void TestNetLog::GetEntriesForSource(NetLog::Source source,
+ CapturedEntryList* entry_list) const {
capturing_net_log_observer_.GetEntriesForSource(source, entry_list);
}
-size_t CapturingNetLog::GetSize() const {
+size_t TestNetLog::GetSize() const {
return capturing_net_log_observer_.GetSize();
}
-void CapturingNetLog::Clear() {
+void TestNetLog::Clear() {
capturing_net_log_observer_.Clear();
}
-CapturingBoundNetLog::CapturingBoundNetLog()
+BoundTestNetLog::BoundTestNetLog()
: net_log_(
BoundNetLog::Make(&capturing_net_log_, net::NetLog::SOURCE_NONE)) {
}
-CapturingBoundNetLog::~CapturingBoundNetLog() {
+BoundTestNetLog::~BoundTestNetLog() {
}
-void CapturingBoundNetLog::GetEntries(
- CapturingNetLog::CapturedEntryList* entry_list) const {
+void BoundTestNetLog::GetEntries(
+ TestNetLog::CapturedEntryList* entry_list) const {
capturing_net_log_.GetEntries(entry_list);
}
-void CapturingBoundNetLog::GetEntriesForSource(
+void BoundTestNetLog::GetEntriesForSource(
NetLog::Source source,
- CapturingNetLog::CapturedEntryList* entry_list) const {
+ TestNetLog::CapturedEntryList* entry_list) const {
capturing_net_log_.GetEntriesForSource(source, entry_list);
}
-size_t CapturingBoundNetLog::GetSize() const {
+size_t BoundTestNetLog::GetSize() const {
return capturing_net_log_.GetSize();
}
-void CapturingBoundNetLog::Clear() {
+void BoundTestNetLog::Clear() {
capturing_net_log_.Clear();
}
-void CapturingBoundNetLog::SetLogLevel(NetLog::LogLevel log_level) {
+void BoundTestNetLog::SetLogLevel(NetLog::LogLevel log_level) {
capturing_net_log_.SetLogLevel(log_level);
}
« no previous file with comments | « net/log/test_net_log.h ('k') | net/log/trace_net_log_observer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698