| 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 68%
|
| rename from net/log/capturing_net_log.cc
|
| rename to net/log/test_net_log.cc
|
| index 99e72969a55b05c0ed0b73a86852811717c479d8..0e504b2876c56ba83792262151a5bae018598a4b 100644
|
| --- a/net/log/capturing_net_log.cc
|
| +++ b/net/log/test_net_log.cc
|
| @@ -2,37 +2,36 @@
|
| // 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();
|
| }
|
|
|
| @@ -45,13 +44,13 @@ CapturingBoundNetLog::~CapturingBoundNetLog() {
|
| }
|
|
|
| void CapturingBoundNetLog::GetEntries(
|
| - CapturingNetLog::CapturedEntryList* entry_list) const {
|
| + TestNetLog::CapturedEntryList* entry_list) const {
|
| capturing_net_log_.GetEntries(entry_list);
|
| }
|
|
|
| void CapturingBoundNetLog::GetEntriesForSource(
|
| NetLog::Source source,
|
| - CapturingNetLog::CapturedEntryList* entry_list) const {
|
| + TestNetLog::CapturedEntryList* entry_list) const {
|
| capturing_net_log_.GetEntriesForSource(source, entry_list);
|
| }
|
|
|
|
|