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

Unified Diff: net/log/test_net_log.h

Issue 1084533002: Rename NetLogLogger and CapturingNetLog (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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
Index: net/log/test_net_log.h
diff --git a/net/log/capturing_net_log.h b/net/log/test_net_log.h
similarity index 77%
rename from net/log/capturing_net_log.h
rename to net/log/test_net_log.h
index f2cc03f7bc620f4c760c67039a2f93313cee8616..35bee52b6f3b1f0677a60cc332ca734c3c20d657 100644
--- a/net/log/capturing_net_log.h
+++ b/net/log/test_net_log.h
@@ -16,17 +16,17 @@
namespace net {
-// CapturingNetLog is convenience class which combines a NetLog and a
+// TestNetLog is convenience class which combines a NetLog and a
// CapturingNetLogObserver. It is intended for testing only, and is part of the
// net_test_support project.
-class CapturingNetLog : public NetLog {
+class TestNetLog : public NetLog {
public:
// TODO(mmenke): Get rid of these.
typedef CapturedNetLogEntry CapturedEntry;
typedef CapturedNetLogEntry::List CapturedEntryList;
- CapturingNetLog();
- ~CapturingNetLog() override;
+ TestNetLog();
+ ~TestNetLog() override;
void SetLogLevel(LogLevel log_level);
@@ -39,11 +39,11 @@ class CapturingNetLog : public NetLog {
private:
CapturingNetLogObserver capturing_net_log_observer_;
- DISALLOW_COPY_AND_ASSIGN(CapturingNetLog);
+ DISALLOW_COPY_AND_ASSIGN(TestNetLog);
};
// Helper class that exposes a similar API as BoundNetLog, but uses a
-// CapturingNetLog rather than the more generic NetLog.
+// TestNetLog rather than the more generic NetLog.
//
// A CapturingBoundNetLog can easily be converted to a BoundNetLog using the
// bound() method.
@@ -56,23 +56,22 @@ class CapturingBoundNetLog {
BoundNetLog bound() const { return net_log_; }
// Fills |entry_list| with all entries in the log.
- void GetEntries(CapturingNetLog::CapturedEntryList* entry_list) const;
+ void GetEntries(TestNetLog::CapturedEntryList* entry_list) const;
// Fills |entry_list| with all entries in the log from the specified Source.
- void GetEntriesForSource(
- NetLog::Source source,
- CapturingNetLog::CapturedEntryList* entry_list) const;
+ void GetEntriesForSource(NetLog::Source source,
+ TestNetLog::CapturedEntryList* entry_list) const;
// Returns number of entries in the log.
size_t GetSize() const;
void Clear();
- // Sets the log level of the underlying CapturingNetLog.
+ // Sets the log level of the underlying TestNetLog.
void SetLogLevel(NetLog::LogLevel log_level);
private:
- CapturingNetLog capturing_net_log_;
+ TestNetLog capturing_net_log_;
const BoundNetLog net_log_;
DISALLOW_COPY_AND_ASSIGN(CapturingBoundNetLog);

Powered by Google App Engine
This is Rietveld 408576698