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

Unified Diff: chrome/browser/net/net_log_temp_file_unittest.cc

Issue 1059843002: Refactor NetLog::LogLevel --> NetLogCaptureMode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: update copyright 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: chrome/browser/net/net_log_temp_file_unittest.cc
diff --git a/chrome/browser/net/net_log_temp_file_unittest.cc b/chrome/browser/net/net_log_temp_file_unittest.cc
index 89b0b62287ee85dd940ca67382e632055e07d5b1..13d329e4e362aef26fbd0b4a2a3573308833c9a2 100644
--- a/chrome/browser/net/net_log_temp_file_unittest.cc
+++ b/chrome/browser/net/net_log_temp_file_unittest.cc
@@ -149,18 +149,18 @@ class NetLogTempFileTest : public ::testing::Test {
void VerifyFileAndStateAfterDoStart() {
VerifyFileAndStateAfterStart(NetLogTempFile::LOG_TYPE_NORMAL, "NORMAL",
- net::NetLog::LOG_ALL_BUT_BYTES);
+ net::NetLogCaptureMode::AllButBytes());
}
void VerifyFileAndStateAfterDoStartStripPrivateData() const {
VerifyFileAndStateAfterStart(NetLogTempFile::LOG_TYPE_STRIP_PRIVATE_DATA,
"STRIP_PRIVATE_DATA",
- net::NetLog::LOG_STRIP_PRIVATE_DATA);
+ net::NetLogCaptureMode::StripPrivateData());
}
void VerifyFileAndStateAfterDoStartLogBytes() const {
VerifyFileAndStateAfterStart(NetLogTempFile::LOG_TYPE_LOG_BYTES,
- "LOG_BYTES", net::NetLog::LOG_ALL);
+ "LOG_BYTES", net::NetLogCaptureMode::All());
}
// Make sure the export file has been successfully initialized after DO_STOP
@@ -191,13 +191,13 @@ class NetLogTempFileTest : public ::testing::Test {
void VerifyFileAndStateAfterStart(
NetLogTempFile::LogType expected_log_type,
const std::string& expected_log_type_string,
- net::NetLog::LogLevel expected_log_level) const {
+ net::NetLogCaptureMode expected_capture_mode) const {
EXPECT_EQ(NetLogTempFile::STATE_LOGGING, net_log_temp_file_->state());
EXPECT_EQ("LOGGING", GetStateString());
EXPECT_EQ(expected_log_type, net_log_temp_file_->log_type());
EXPECT_EQ(expected_log_type_string, GetLogTypeString());
- EXPECT_EQ(expected_log_level, net_log_->GetLogLevel());
+ EXPECT_EQ(expected_capture_mode, net_log_->GetCaptureMode());
// Check GetFilePath returns false when still writing to the file.
base::FilePath net_export_file_path;

Powered by Google App Engine
This is Rietveld 408576698