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

Side by Side Diff: webrtc/rtc_base/ssladapter_unittest.cc

Issue 2963273002: Update includes for webrtc/{base => rtc_base} rename (3/3) (Closed)
Patch Set: git cl format Created 3 years, 5 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
« no previous file with comments | « webrtc/rtc_base/ssladapter.cc ('k') | webrtc/rtc_base/sslfingerprint.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 /* 1 /*
2 * Copyright 2014 The WebRTC Project Authors. All rights reserved. 2 * Copyright 2014 The WebRTC Project Authors. All rights reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
11 #include <memory> 11 #include <memory>
12 #include <string> 12 #include <string>
13 13
14 #include "webrtc/base/gunit.h" 14 #include "webrtc/rtc_base/gunit.h"
15 #include "webrtc/base/ipaddress.h" 15 #include "webrtc/rtc_base/ipaddress.h"
16 #include "webrtc/base/socketstream.h" 16 #include "webrtc/rtc_base/socketstream.h"
17 #include "webrtc/base/ssladapter.h" 17 #include "webrtc/rtc_base/ssladapter.h"
18 #include "webrtc/base/sslidentity.h" 18 #include "webrtc/rtc_base/sslidentity.h"
19 #include "webrtc/base/sslstreamadapter.h" 19 #include "webrtc/rtc_base/sslstreamadapter.h"
20 #include "webrtc/base/stream.h" 20 #include "webrtc/rtc_base/stream.h"
21 #include "webrtc/base/stringencode.h" 21 #include "webrtc/rtc_base/stringencode.h"
22 #include "webrtc/base/virtualsocketserver.h" 22 #include "webrtc/rtc_base/virtualsocketserver.h"
23 23
24 static const int kTimeout = 5000; 24 static const int kTimeout = 5000;
25 25
26 static rtc::AsyncSocket* CreateSocket(const rtc::SSLMode& ssl_mode) { 26 static rtc::AsyncSocket* CreateSocket(const rtc::SSLMode& ssl_mode) {
27 rtc::SocketAddress address(rtc::IPAddress(INADDR_ANY), 0); 27 rtc::SocketAddress address(rtc::IPAddress(INADDR_ANY), 0);
28 28
29 rtc::AsyncSocket* socket = rtc::Thread::Current()-> 29 rtc::AsyncSocket* socket = rtc::Thread::Current()->
30 socketserver()->CreateAsyncSocket( 30 socketserver()->CreateAsyncSocket(
31 address.family(), (ssl_mode == rtc::SSL_MODE_DTLS) ? 31 address.family(), (ssl_mode == rtc::SSL_MODE_DTLS) ?
32 SOCK_DGRAM : SOCK_STREAM); 32 SOCK_DGRAM : SOCK_STREAM);
(...skipping 417 matching lines...) Expand 10 before | Expand all | Expand 10 after
450 TEST_F(SSLAdapterTestDTLS_RSA, TestDTLSTransfer) { 450 TEST_F(SSLAdapterTestDTLS_RSA, TestDTLSTransfer) {
451 TestHandshake(true); 451 TestHandshake(true);
452 TestTransfer("Hello, world!"); 452 TestTransfer("Hello, world!");
453 } 453 }
454 454
455 // Test transfer between client and server, using ECDSA 455 // Test transfer between client and server, using ECDSA
456 TEST_F(SSLAdapterTestDTLS_ECDSA, TestDTLSTransfer) { 456 TEST_F(SSLAdapterTestDTLS_ECDSA, TestDTLSTransfer) {
457 TestHandshake(true); 457 TestHandshake(true);
458 TestTransfer("Hello, world!"); 458 TestTransfer("Hello, world!");
459 } 459 }
OLDNEW
« no previous file with comments | « webrtc/rtc_base/ssladapter.cc ('k') | webrtc/rtc_base/sslfingerprint.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698