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

Unified Diff: net/log/test_net_log.cc

Issue 1059843002: Refactor NetLog::LogLevel --> NetLogCaptureMode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase again to fix a merge conflict 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.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/test_net_log.cc b/net/log/test_net_log.cc
index 695eacc935f2841e831440730193c120d774b971..d98ffc3a82599a1ad46f6c655277c81298e03cfe 100644
--- a/net/log/test_net_log.cc
+++ b/net/log/test_net_log.cc
@@ -7,15 +7,16 @@
namespace net {
TestNetLog::TestNetLog() {
- DeprecatedAddObserver(&capturing_net_log_observer_, LOG_ALL_BUT_BYTES);
+ DeprecatedAddObserver(&capturing_net_log_observer_,
+ NetLogCaptureMode::IncludeCookiesAndCredentials());
}
TestNetLog::~TestNetLog() {
DeprecatedRemoveObserver(&capturing_net_log_observer_);
}
-void TestNetLog::SetLogLevel(NetLog::LogLevel log_level) {
- SetObserverLogLevel(&capturing_net_log_observer_, log_level);
+void TestNetLog::SetCaptureMode(NetLogCaptureMode capture_mode) {
+ SetObserverCaptureMode(&capturing_net_log_observer_, capture_mode);
}
void TestNetLog::GetEntries(TestNetLog::CapturedEntryList* entry_list) const {
@@ -62,8 +63,8 @@ void BoundTestNetLog::Clear() {
capturing_net_log_.Clear();
}
-void BoundTestNetLog::SetLogLevel(NetLog::LogLevel log_level) {
- capturing_net_log_.SetLogLevel(log_level);
+void BoundTestNetLog::SetCaptureMode(NetLogCaptureMode capture_mode) {
+ capturing_net_log_.SetCaptureMode(capture_mode);
}
} // namespace net
« no previous file with comments | « net/log/test_net_log.h ('k') | net/log/trace_net_log_observer.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698