OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 <string> | 5 #include <string> |
6 #include <vector> | 6 #include <vector> |
7 | 7 |
8 #include "base/bind.h" | 8 #include "base/bind.h" |
9 #include "base/bind_helpers.h" | 9 #include "base/bind_helpers.h" |
10 #include "base/files/file_util.h" | 10 #include "base/files/file_util.h" |
(...skipping 5487 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5498 std::string result; | 5498 std::string result; |
5499 ReadResult(trans, &data, &result); | 5499 ReadResult(trans, &data, &result); |
5500 EXPECT_EQ("hello!", result); | 5500 EXPECT_EQ("hello!", result); |
5501 | 5501 |
5502 // Verify that we haven't received any push data. | 5502 // Verify that we haven't received any push data. |
5503 EXPECT_EQ("", result2); | 5503 EXPECT_EQ("", result2); |
5504 | 5504 |
5505 // Verify the SYN_REPLY. | 5505 // Verify the SYN_REPLY. |
5506 // Copy the response info, because trans goes away. | 5506 // Copy the response info, because trans goes away. |
5507 HttpResponseInfo response = *trans->GetResponseInfo(); | 5507 HttpResponseInfo response = *trans->GetResponseInfo(); |
5508 ASSERT_TRUE(trans2->GetResponseInfo() == NULL); | |
5509 | 5508 |
5510 VerifyStreamsClosed(helper); | 5509 VerifyStreamsClosed(helper); |
5511 | 5510 |
5512 // Verify the SYN_REPLY. | 5511 // Verify the SYN_REPLY. |
5513 EXPECT_TRUE(response.headers.get() != NULL); | 5512 EXPECT_TRUE(response.headers.get() != NULL); |
5514 EXPECT_EQ("HTTP/1.1 200 OK", response.headers->GetStatusLine()); | 5513 EXPECT_EQ("HTTP/1.1 200 OK", response.headers->GetStatusLine()); |
5515 | 5514 |
5516 // Read the final EOF (which will close the session). | 5515 // Read the final EOF (which will close the session). |
5517 data.RunFor(1); | 5516 data.RunFor(1); |
5518 | 5517 |
(...skipping 1175 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
6694 TEST_P(SpdyNetworkTransactionTLSUsageCheckTest, TLSCipherSuiteSucky) { | 6693 TEST_P(SpdyNetworkTransactionTLSUsageCheckTest, TLSCipherSuiteSucky) { |
6695 scoped_ptr<SSLSocketDataProvider> ssl_provider( | 6694 scoped_ptr<SSLSocketDataProvider> ssl_provider( |
6696 new SSLSocketDataProvider(ASYNC, OK)); | 6695 new SSLSocketDataProvider(ASYNC, OK)); |
6697 // Set to TLS_RSA_WITH_NULL_MD5 | 6696 // Set to TLS_RSA_WITH_NULL_MD5 |
6698 SSLConnectionStatusSetCipherSuite(0x1, &ssl_provider->connection_status); | 6697 SSLConnectionStatusSetCipherSuite(0x1, &ssl_provider->connection_status); |
6699 | 6698 |
6700 RunTLSUsageCheckTest(ssl_provider.Pass()); | 6699 RunTLSUsageCheckTest(ssl_provider.Pass()); |
6701 } | 6700 } |
6702 | 6701 |
6703 } // namespace net | 6702 } // namespace net |
OLD | NEW |