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

Side by Side Diff: net/quic/chromium/quic_chromium_client_session_test.cc

Issue 2671333004: Convert class-full-of-statics CryptoTestUtils into a namespace (Closed)
Patch Set: Created 3 years, 10 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
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/chromium/quic_chromium_client_session.h" 5 #include "net/quic/chromium/quic_chromium_client_session.h"
6 6
7 #include "base/base64.h" 7 #include "base/base64.h"
8 #include "base/files/file_path.h" 8 #include "base/files/file_path.h"
9 #include "base/memory/ptr_util.h" 9 #include "base/memory/ptr_util.h"
10 #include "base/rand_util.h" 10 #include "base/rand_util.h"
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after
75 MOCK_METHOD0(HasSendHeadersComplete, bool()); 75 MOCK_METHOD0(HasSendHeadersComplete, bool());
76 76
77 private: 77 private:
78 DISALLOW_COPY_AND_ASSIGN(MockStreamDelegate); 78 DISALLOW_COPY_AND_ASSIGN(MockStreamDelegate);
79 }; 79 };
80 80
81 class QuicChromiumClientSessionTest 81 class QuicChromiumClientSessionTest
82 : public ::testing::TestWithParam<QuicVersion> { 82 : public ::testing::TestWithParam<QuicVersion> {
83 protected: 83 protected:
84 QuicChromiumClientSessionTest() 84 QuicChromiumClientSessionTest()
85 : crypto_config_(CryptoTestUtils::ProofVerifierForTesting()), 85 : crypto_config_(crypto_test_utils::ProofVerifierForTesting()),
86 default_read_(new MockRead(SYNCHRONOUS, ERR_IO_PENDING, 0)), 86 default_read_(new MockRead(SYNCHRONOUS, ERR_IO_PENDING, 0)),
87 socket_data_( 87 socket_data_(
88 new SequencedSocketData(default_read_.get(), 1, nullptr, 0)), 88 new SequencedSocketData(default_read_.get(), 1, nullptr, 0)),
89 random_(0), 89 random_(0),
90 helper_(&clock_, &random_), 90 helper_(&clock_, &random_),
91 client_maker_(GetParam(), 91 client_maker_(GetParam(),
92 0, 92 0,
93 &clock_, 93 &clock_,
94 kServerHostname, 94 kServerHostname,
95 Perspective::IS_CLIENT), 95 Perspective::IS_CLIENT),
(...skipping 828 matching lines...) Expand 10 before | Expand all | Expand 10 after
924 924
925 EXPECT_TRUE(socket_data_->AllReadDataConsumed()); 925 EXPECT_TRUE(socket_data_->AllReadDataConsumed());
926 EXPECT_TRUE(socket_data_->AllWriteDataConsumed()); 926 EXPECT_TRUE(socket_data_->AllWriteDataConsumed());
927 EXPECT_TRUE(new_socket_data.AllReadDataConsumed()); 927 EXPECT_TRUE(new_socket_data.AllReadDataConsumed());
928 EXPECT_TRUE(new_socket_data.AllWriteDataConsumed()); 928 EXPECT_TRUE(new_socket_data.AllWriteDataConsumed());
929 } 929 }
930 930
931 } // namespace 931 } // namespace
932 } // namespace test 932 } // namespace test
933 } // namespace net 933 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/chromium/crypto_test_utils_chromium.cc ('k') | net/quic/chromium/quic_chromium_client_stream_test.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698