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

Side by Side Diff: net/url_request/url_request_unittest.cc

Issue 132081: Comments added to SSL unit tests. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 6 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "net/url_request/url_request_unittest.h" 5 #include "net/url_request/url_request_unittest.h"
6 6
7 #include "build/build_config.h" 7 #include "build/build_config.h"
8 8
9 #if defined(OS_WIN) 9 #if defined(OS_WIN)
10 #include <windows.h> 10 #include <windows.h>
(...skipping 201 matching lines...) Expand 10 before | Expand all | Expand 10 after
212 212
213 #ifndef NDEBUG 213 #ifndef NDEBUG
214 DCHECK_EQ(url_request_metrics.object_count, 0); 214 DCHECK_EQ(url_request_metrics.object_count, 0);
215 #endif 215 #endif
216 } 216 }
217 217
218 class HTTPSRequestTest : public testing::Test { 218 class HTTPSRequestTest : public testing::Test {
219 }; 219 };
220 220
221 #if defined(OS_MACOSX) 221 #if defined(OS_MACOSX)
222 // Status 6/19/09:
223 //
224 // If these tests are enabled on OSX, the first one (HTTPSGetTest)
225 // will fail. I didn't track it down explicitly, but did observe that
226 // the testserver.py kills itself (e.g. "process_util_posix.cc(84)]
227 // Unable to terminate process."). tlslite and testserver.py are hard
228 // to debug (redirection of stdout/stderr to a file so you can't see
229 // errors; lots of naked "except:" statements, etc), but I did track
230 // down an SSL auth failure as one cause of it deciding to die
231 // silently.
232 //
233 // The next test, HTTPSMismatchedTest, will look like it hangs by
234 // looping over calls to SSLHandshake() (Security framework call) as
235 // called from SSLClientSocketMac::DoHandshake(). Return values are a
236 // repeating pattern of -9803 (come back later) and -9812 (cert valid
237 // but root not trusted). If you don't have the cert in your keychain
238 // as documented on http://dev.chromium.org/developers/testing, the
239 // -9812 becomes a -9813 (no root cert). Interestingly, the handshake
240 // also appears to be a failure point for other disabled tests, such
241 // as (SSLClientSocketTest,Connect) in
242 // net/base/ssl_client_socket_unittest.cc.
243 //
244 // Old comment (not sure if obsolete):
222 // ssl_client_socket_mac.cc crashes currently in GetSSLInfo 245 // ssl_client_socket_mac.cc crashes currently in GetSSLInfo
223 // when called on a connection with an unrecognized certificate 246 // when called on a connection with an unrecognized certificate
224 #define MAYBE_HTTPSGetTest DISABLED_HTTPSGetTest 247 #define MAYBE_HTTPSGetTest DISABLED_HTTPSGetTest
225 #define MAYBE_HTTPSMismatchedTest DISABLED_HTTPSMismatchedTest 248 #define MAYBE_HTTPSMismatchedTest DISABLED_HTTPSMismatchedTest
226 #define MAYBE_HTTPSExpiredTest DISABLED_HTTPSExpiredTest 249 #define MAYBE_HTTPSExpiredTest DISABLED_HTTPSExpiredTest
227 #else 250 #else
228 #define MAYBE_HTTPSGetTest HTTPSGetTest 251 #define MAYBE_HTTPSGetTest HTTPSGetTest
229 #define MAYBE_HTTPSMismatchedTest HTTPSMismatchedTest 252 #define MAYBE_HTTPSMismatchedTest HTTPSMismatchedTest
230 #define MAYBE_HTTPSExpiredTest HTTPSExpiredTest 253 #define MAYBE_HTTPSExpiredTest HTTPSExpiredTest
231 #endif 254 #endif
(...skipping 1567 matching lines...) Expand 10 before | Expand all | Expand 10 after
1799 1822
1800 int64 file_size = 0; 1823 int64 file_size = 0;
1801 file_util::GetFileSize(app_path, &file_size); 1824 file_util::GetFileSize(app_path, &file_size);
1802 1825
1803 EXPECT_TRUE(!r.is_pending()); 1826 EXPECT_TRUE(!r.is_pending());
1804 EXPECT_EQ(1, d.response_started_count()); 1827 EXPECT_EQ(1, d.response_started_count());
1805 EXPECT_FALSE(d.received_data_before_response()); 1828 EXPECT_FALSE(d.received_data_before_response());
1806 EXPECT_EQ(d.bytes_received(), 0); 1829 EXPECT_EQ(d.bytes_received(), 0);
1807 } 1830 }
1808 } 1831 }
OLDNEW
« net/base/ssl_client_socket_unittest.cc ('K') | « net/base/ssl_client_socket_unittest.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698