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

Unified Diff: webrtc/base/win32_unittest.cc

Issue 2866183004: Deleted unused method EstimateMTU, and the WinPing class. (Closed)
Patch Set: Created 3 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
« no previous file with comments | « webrtc/base/virtualsocketserver.cc ('k') | webrtc/base/win32socketserver.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webrtc/base/win32_unittest.cc
diff --git a/webrtc/base/win32_unittest.cc b/webrtc/base/win32_unittest.cc
index 96e0bd292ab4b7b9c5b306b087127464ae02d1c3..c41ca86694e032112dae3dd88da32f728c4f301f 100644
--- a/webrtc/base/win32_unittest.cc
+++ b/webrtc/base/win32_unittest.cc
@@ -13,7 +13,6 @@
#include "webrtc/base/gunit.h"
#include "webrtc/base/nethelpers.h"
#include "webrtc/base/win32.h"
-#include "webrtc/base/winping.h"
#if !defined(WEBRTC_WIN)
#error Only for Windows
@@ -36,29 +35,6 @@ TEST_F(Win32Test, FileTimeToUInt64Test) {
EXPECT_EQ(expected, ToUInt64(ft));
}
-TEST_F(Win32Test, WinPingTest) {
- WinPing ping;
- ASSERT_TRUE(ping.IsValid());
-
- // Test valid ping cases.
- WinPing::PingResult result = ping.Ping(IPAddress(INADDR_LOOPBACK), 20, 50, 1,
- false);
- ASSERT_EQ(WinPing::PING_SUCCESS, result);
- if (HasIPv6Enabled()) {
- WinPing::PingResult v6result = ping.Ping(IPAddress(in6addr_loopback), 20,
- 50, 1, false);
- ASSERT_EQ(WinPing::PING_SUCCESS, v6result);
- }
-
- // Test invalid parameter cases.
- ASSERT_EQ(WinPing::PING_INVALID_PARAMS, ping.Ping(
- IPAddress(INADDR_LOOPBACK), 0, 50, 1, false));
- ASSERT_EQ(WinPing::PING_INVALID_PARAMS, ping.Ping(
- IPAddress(INADDR_LOOPBACK), 20, 0, 1, false));
- ASSERT_EQ(WinPing::PING_INVALID_PARAMS, ping.Ping(
- IPAddress(INADDR_LOOPBACK), 20, 50, 0, false));
-}
-
TEST_F(Win32Test, IPv6AddressCompression) {
IPAddress ipv6;
« no previous file with comments | « webrtc/base/virtualsocketserver.cc ('k') | webrtc/base/win32socketserver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698