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

Unified Diff: base/sync_socket_unittest.cc

Issue 1350493002: Check for CloseHandle failures even when not debugging (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Code tweaks Created 5 years, 3 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: base/sync_socket_unittest.cc
diff --git a/base/sync_socket_unittest.cc b/base/sync_socket_unittest.cc
index ff9b8bc8c2f0c7a932d034da2080335e19a7481c..9c8eb0bf737880bed1ea409ac899c74692d79ff6 100644
--- a/base/sync_socket_unittest.cc
+++ b/base/sync_socket_unittest.cc
@@ -94,9 +94,7 @@ void ClonedSendReceivePeek() {
SocketType socket_a, socket_b;
ASSERT_TRUE(SocketType::CreatePair(&socket_a, &socket_b));
- // Create new SyncSockets from the paired handles.
- SocketType socket_c(socket_a.handle()), socket_d(socket_b.handle());
- SendReceivePeek(&socket_c, &socket_d);
+ SendReceivePeek(&socket_a, &socket_b);
brucedawson 2015/09/16 00:30:52 This fixes 520305. Duplicating handles like that w
DaleCurtis 2015/09/16 00:43:19 This is just the same as the NormalSendReceivePeek
brucedawson 2015/09/16 18:29:00 Tests deleted.
}
} // namespace

Powered by Google App Engine
This is Rietveld 408576698