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

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: 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/net_log_unittest.cc ('k') | net/log/test_net_log.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 64%
rename from net/log/capturing_net_log.h
rename to net/log/test_net_log.h
index f2cc03f7bc620f4c760c67039a2f93313cee8616..174f715c80c7028de9c0877b2520d0944dd99f33 100644
--- a/net/log/capturing_net_log.h
+++ b/net/log/test_net_log.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef NET_LOG_CAPTURING_NET_LOG_H_
-#define NET_LOG_CAPTURING_NET_LOG_H_
+#ifndef NET_LOG_TEST_NET_LOG_H_
+#define NET_LOG_TEST_NET_LOG_H_
#include <string>
#include <vector>
@@ -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,45 +39,44 @@ 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
+// A BoundTestNetLog can easily be converted to a BoundNetLog using the
// bound() method.
-class CapturingBoundNetLog {
+class BoundTestNetLog {
public:
- CapturingBoundNetLog();
- ~CapturingBoundNetLog();
+ BoundTestNetLog();
+ ~BoundTestNetLog();
// The returned BoundNetLog is only valid while |this| is alive.
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);
+ DISALLOW_COPY_AND_ASSIGN(BoundTestNetLog);
};
} // namespace net
-#endif // NET_LOG_CAPTURING_NET_LOG_H_
+#endif // NET_LOG_TEST_NET_LOG_H_
« no previous file with comments | « net/log/net_log_unittest.cc ('k') | net/log/test_net_log.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698