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

Unified Diff: net/log/net_log_capture_mode_unittest.cc

Issue 1122483004: Remove NetLog::GetCaptureMode() and NetLogCaptureMode::None() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@mmenke_refactor
Patch Set: Created 5 years, 7 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/net_log_capture_mode_unittest.cc
diff --git a/net/log/net_log_capture_mode_unittest.cc b/net/log/net_log_capture_mode_unittest.cc
index b32beb9e7ac80ddb0192d83b4910111a2b86c9cd..7510f2ee600c644d5b02d16f604891a8390b1581 100644
--- a/net/log/net_log_capture_mode_unittest.cc
+++ b/net/log/net_log_capture_mode_unittest.cc
@@ -72,22 +72,6 @@ TEST(NetLogCaptureMode, IncludeSocketBytes) {
NetLogCaptureMode::IncludeSocketBytes().ToInternalValueForTesting());
}
-TEST(NetLogCaptureMode, Max) {
- NetLogCaptureMode none = NetLogCaptureMode::None();
- NetLogCaptureMode all = NetLogCaptureMode::IncludeSocketBytes();
- NetLogCaptureMode cookies = NetLogCaptureMode::IncludeCookiesAndCredentials();
- NetLogCaptureMode def = NetLogCaptureMode::Default();
-
- EXPECT_EQ(all, NetLogCaptureMode::Max(none, all));
- EXPECT_EQ(all, NetLogCaptureMode::Max(all, none));
-
- EXPECT_EQ(cookies, NetLogCaptureMode::Max(def, cookies));
- EXPECT_EQ(cookies, NetLogCaptureMode::Max(cookies, def));
-
- EXPECT_EQ(all, NetLogCaptureMode::Max(def, all));
- EXPECT_EQ(all, NetLogCaptureMode::Max(all, def));
-}
-
} // namespace
} // namespace net

Powered by Google App Engine
This is Rietveld 408576698