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

Side by Side Diff: net/quic/quic_crypto_server_stream_test.cc

Issue 1415933006: QUIC - delete #ifdef USE_OPENSSL in unittests (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix minor typos Created 5 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
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 #include "net/quic/quic_crypto_server_stream.h" 5 #include "net/quic/quic_crypto_server_stream.h"
6 6
7 #include <map> 7 #include <map>
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 22 matching lines...) Expand all
33 class ReliableQuicStream; 33 class ReliableQuicStream;
34 } // namespace net 34 } // namespace net
35 35
36 using std::pair; 36 using std::pair;
37 using std::string; 37 using std::string;
38 using testing::_; 38 using testing::_;
39 39
40 namespace net { 40 namespace net {
41 namespace test { 41 namespace test {
42 42
43 #if defined(USE_OPENSSL)
44
45 class QuicCryptoServerConfigPeer { 43 class QuicCryptoServerConfigPeer {
46 public: 44 public:
47 static string GetPrimaryOrbit(const QuicCryptoServerConfig& config) { 45 static string GetPrimaryOrbit(const QuicCryptoServerConfig& config) {
48 base::AutoLock lock(config.configs_lock_); 46 base::AutoLock lock(config.configs_lock_);
49 CHECK(config.primary_config_.get() != nullptr); 47 CHECK(config.primary_config_.get() != nullptr);
50 return string(reinterpret_cast<const char*>(config.primary_config_->orbit), 48 return string(reinterpret_cast<const char*>(config.primary_config_->orbit),
51 kOrbitSize); 49 kOrbitSize);
52 } 50 }
53 }; 51 };
54 52
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after
419 417
420 message_.Clear(); 418 message_.Clear();
421 QuicConfig stateful_reject_config = DefaultQuicConfig(); 419 QuicConfig stateful_reject_config = DefaultQuicConfig();
422 stateful_reject_config.ToHandshakeMessage(&message_); 420 stateful_reject_config.ToHandshakeMessage(&message_);
423 EXPECT_FALSE( 421 EXPECT_FALSE(
424 QuicCryptoServerStreamPeer::DoesPeerSupportStatelessRejects(message_)); 422 QuicCryptoServerStreamPeer::DoesPeerSupportStatelessRejects(message_));
425 } 423 }
426 424
427 } // namespace 425 } // namespace
428 426
429 #endif
430
431 } // namespace test 427 } // namespace test
432 } // namespace net 428 } // namespace net
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698