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

Side by Side Diff: net/socket/ssl_server_socket_unittest.cc

Issue 12680003: net: split net/ssl out of net/base (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 9 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
« no previous file with comments | « net/socket/ssl_server_socket_nss.h ('k') | net/socket_stream/socket_stream.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 // This test suite uses SSLClientSocket to test the implementation of 5 // This test suite uses SSLClientSocket to test the implementation of
6 // SSLServerSocket. In order to establish connections between the sockets 6 // SSLServerSocket. In order to establish connections between the sockets
7 // we need two additional classes: 7 // we need two additional classes:
8 // 1. FakeSocket 8 // 1. FakeSocket
9 // Connects SSL socket to FakeDataChannel. This class is just a stub. 9 // Connects SSL socket to FakeDataChannel. This class is just a stub.
10 // 10 //
(...skipping 18 matching lines...) Expand all
29 #include "net/base/address_list.h" 29 #include "net/base/address_list.h"
30 #include "net/base/cert_status_flags.h" 30 #include "net/base/cert_status_flags.h"
31 #include "net/base/cert_test_util.h" 31 #include "net/base/cert_test_util.h"
32 #include "net/base/completion_callback.h" 32 #include "net/base/completion_callback.h"
33 #include "net/base/host_port_pair.h" 33 #include "net/base/host_port_pair.h"
34 #include "net/base/io_buffer.h" 34 #include "net/base/io_buffer.h"
35 #include "net/base/ip_endpoint.h" 35 #include "net/base/ip_endpoint.h"
36 #include "net/base/mock_cert_verifier.h" 36 #include "net/base/mock_cert_verifier.h"
37 #include "net/base/net_errors.h" 37 #include "net/base/net_errors.h"
38 #include "net/base/net_log.h" 38 #include "net/base/net_log.h"
39 #include "net/base/ssl_config_service.h"
40 #include "net/base/ssl_info.h"
41 #include "net/base/test_data_directory.h" 39 #include "net/base/test_data_directory.h"
42 #include "net/base/x509_certificate.h" 40 #include "net/base/x509_certificate.h"
43 #include "net/socket/client_socket_factory.h" 41 #include "net/socket/client_socket_factory.h"
44 #include "net/socket/socket_test_util.h" 42 #include "net/socket/socket_test_util.h"
45 #include "net/socket/ssl_client_socket.h" 43 #include "net/socket/ssl_client_socket.h"
46 #include "net/socket/stream_socket.h" 44 #include "net/socket/stream_socket.h"
45 #include "net/ssl/ssl_config_service.h"
46 #include "net/ssl/ssl_info.h"
47 #include "testing/gtest/include/gtest/gtest.h" 47 #include "testing/gtest/include/gtest/gtest.h"
48 #include "testing/platform_test.h" 48 #include "testing/platform_test.h"
49 49
50 namespace net { 50 namespace net {
51 51
52 namespace { 52 namespace {
53 53
54 class FakeDataChannel { 54 class FakeDataChannel {
55 public: 55 public:
56 FakeDataChannel() 56 FakeDataChannel()
(...skipping 521 matching lines...) Expand 10 before | Expand all | Expand 10 after
578 unsigned char client_bad[kKeyingMaterialSize]; 578 unsigned char client_bad[kKeyingMaterialSize];
579 rv = client_socket_->ExportKeyingMaterial(kKeyingLabelBad, 579 rv = client_socket_->ExportKeyingMaterial(kKeyingLabelBad,
580 false, kKeyingContext, 580 false, kKeyingContext,
581 client_bad, sizeof(client_bad)); 581 client_bad, sizeof(client_bad));
582 ASSERT_EQ(rv, net::OK); 582 ASSERT_EQ(rv, net::OK);
583 EXPECT_NE(0, memcmp(server_out, client_bad, sizeof(server_out))); 583 EXPECT_NE(0, memcmp(server_out, client_bad, sizeof(server_out)));
584 } 584 }
585 #endif 585 #endif
586 586
587 } // namespace net 587 } // namespace net
OLDNEW
« no previous file with comments | « net/socket/ssl_server_socket_nss.h ('k') | net/socket_stream/socket_stream.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698