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

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

Issue 2648003003: Revert of Removing #defines previously used for building without BoringSSL/OpenSSL. (Closed)
Patch Set: Created 3 years, 11 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/base/ssladapter.cc ('k') | webrtc/base/sslconfig.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
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 SSLAdapterTestDTLS_RSA() 363 SSLAdapterTestDTLS_RSA()
364 : SSLAdapterTestBase(rtc::SSL_MODE_DTLS, rtc::KeyParams::RSA()) {} 364 : SSLAdapterTestBase(rtc::SSL_MODE_DTLS, rtc::KeyParams::RSA()) {}
365 }; 365 };
366 366
367 class SSLAdapterTestDTLS_ECDSA : public SSLAdapterTestBase { 367 class SSLAdapterTestDTLS_ECDSA : public SSLAdapterTestBase {
368 public: 368 public:
369 SSLAdapterTestDTLS_ECDSA() 369 SSLAdapterTestDTLS_ECDSA()
370 : SSLAdapterTestBase(rtc::SSL_MODE_DTLS, rtc::KeyParams::ECDSA()) {} 370 : SSLAdapterTestBase(rtc::SSL_MODE_DTLS, rtc::KeyParams::ECDSA()) {}
371 }; 371 };
372 372
373 #if SSL_USE_OPENSSL
374
373 // Basic tests: TLS 375 // Basic tests: TLS
374 376
375 // Test that handshake works, using RSA 377 // Test that handshake works, using RSA
376 TEST_F(SSLAdapterTestTLS_RSA, TestTLSConnect) { 378 TEST_F(SSLAdapterTestTLS_RSA, TestTLSConnect) {
377 TestHandshake(true); 379 TestHandshake(true);
378 } 380 }
379 381
380 // Test that handshake works, using ECDSA 382 // Test that handshake works, using ECDSA
381 TEST_F(SSLAdapterTestTLS_ECDSA, TestTLSConnect) { 383 TEST_F(SSLAdapterTestTLS_ECDSA, TestTLSConnect) {
382 TestHandshake(true); 384 TestHandshake(true);
(...skipping 27 matching lines...) Expand all
410 TEST_F(SSLAdapterTestDTLS_RSA, TestDTLSTransfer) { 412 TEST_F(SSLAdapterTestDTLS_RSA, TestDTLSTransfer) {
411 TestHandshake(true); 413 TestHandshake(true);
412 TestTransfer("Hello, world!"); 414 TestTransfer("Hello, world!");
413 } 415 }
414 416
415 // Test transfer between client and server, using ECDSA 417 // Test transfer between client and server, using ECDSA
416 TEST_F(SSLAdapterTestDTLS_ECDSA, TestDTLSTransfer) { 418 TEST_F(SSLAdapterTestDTLS_ECDSA, TestDTLSTransfer) {
417 TestHandshake(true); 419 TestHandshake(true);
418 TestTransfer("Hello, world!"); 420 TestTransfer("Hello, world!");
419 } 421 }
422
423 #endif // SSL_USE_OPENSSL
OLDNEW
« no previous file with comments | « webrtc/base/ssladapter.cc ('k') | webrtc/base/sslconfig.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698