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

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

Issue 689563002: Cleanup: Remove unneeded path_service.h includes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 6 years, 1 month 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
« no previous file with comments | « net/disk_cache/disk_cache_test_util.cc ('k') | net/test/cert_test_util.cc » ('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 //
11 // 2. FakeDataChannel 11 // 2. FakeDataChannel
12 // Implements the actual exchange of data between two FakeSockets. 12 // Implements the actual exchange of data between two FakeSockets.
13 // 13 //
14 // Implementations of these two classes are included in this file. 14 // Implementations of these two classes are included in this file.
15 15
16 #include "net/socket/ssl_server_socket.h" 16 #include "net/socket/ssl_server_socket.h"
17 17
18 #include <stdlib.h> 18 #include <stdlib.h>
19 19
20 #include <queue> 20 #include <queue>
21 21
22 #include "base/compiler_specific.h" 22 #include "base/compiler_specific.h"
23 #include "base/files/file_path.h" 23 #include "base/files/file_path.h"
24 #include "base/files/file_util.h" 24 #include "base/files/file_util.h"
25 #include "base/message_loop/message_loop.h" 25 #include "base/message_loop/message_loop.h"
26 #include "base/path_service.h"
27 #include "crypto/nss_util.h" 26 #include "crypto/nss_util.h"
28 #include "crypto/rsa_private_key.h" 27 #include "crypto/rsa_private_key.h"
29 #include "net/base/address_list.h" 28 #include "net/base/address_list.h"
30 #include "net/base/completion_callback.h" 29 #include "net/base/completion_callback.h"
31 #include "net/base/host_port_pair.h" 30 #include "net/base/host_port_pair.h"
32 #include "net/base/io_buffer.h" 31 #include "net/base/io_buffer.h"
33 #include "net/base/ip_endpoint.h" 32 #include "net/base/ip_endpoint.h"
34 #include "net/base/net_errors.h" 33 #include "net/base/net_errors.h"
35 #include "net/base/net_log.h" 34 #include "net/base/net_log.h"
36 #include "net/base/test_data_directory.h" 35 #include "net/base/test_data_directory.h"
(...skipping 517 matching lines...) Expand 10 before | Expand all | Expand 10 after
554 const char* kKeyingLabelBad = "EXPERIMENTAL-server-socket-test-bad"; 553 const char* kKeyingLabelBad = "EXPERIMENTAL-server-socket-test-bad";
555 unsigned char client_bad[kKeyingMaterialSize]; 554 unsigned char client_bad[kKeyingMaterialSize];
556 rv = client_socket_->ExportKeyingMaterial(kKeyingLabelBad, 555 rv = client_socket_->ExportKeyingMaterial(kKeyingLabelBad,
557 false, kKeyingContext, 556 false, kKeyingContext,
558 client_bad, sizeof(client_bad)); 557 client_bad, sizeof(client_bad));
559 ASSERT_EQ(rv, OK); 558 ASSERT_EQ(rv, OK);
560 EXPECT_NE(0, memcmp(server_out, client_bad, sizeof(server_out))); 559 EXPECT_NE(0, memcmp(server_out, client_bad, sizeof(server_out)));
561 } 560 }
562 561
563 } // namespace net 562 } // namespace net
OLDNEW
« no previous file with comments | « net/disk_cache/disk_cache_test_util.cc ('k') | net/test/cert_test_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698