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

Side by Side Diff: net/spdy/spdy_http_stream_unittest.cc

Issue 623213004: replace OVERRIDE and FINAL with override and final in net/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: undo unwanted change in comment Created 6 years, 2 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 | « net/spdy/spdy_http_stream.h ('k') | net/spdy/spdy_protocol.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 // 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/spdy/spdy_http_stream.h" 5 #include "net/spdy/spdy_http_stream.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/message_loop/message_loop_proxy.h" 10 #include "base/message_loop/message_loop_proxy.h"
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 session_deps_.net_log = &net_log_; 72 session_deps_.net_log = &net_log_;
73 } 73 }
74 74
75 DeterministicSocketData* deterministic_data() { 75 DeterministicSocketData* deterministic_data() {
76 return deterministic_data_.get(); 76 return deterministic_data_.get();
77 } 77 }
78 78
79 OrderedSocketData* data() { return data_.get(); } 79 OrderedSocketData* data() { return data_.get(); }
80 80
81 protected: 81 protected:
82 virtual void TearDown() OVERRIDE { 82 virtual void TearDown() override {
83 crypto::ECSignatureCreator::SetFactoryForTesting(NULL); 83 crypto::ECSignatureCreator::SetFactoryForTesting(NULL);
84 base::MessageLoop::current()->RunUntilIdle(); 84 base::MessageLoop::current()->RunUntilIdle();
85 } 85 }
86 86
87 // Initializes the session using DeterministicSocketData. It's advisable 87 // Initializes the session using DeterministicSocketData. It's advisable
88 // to use this function rather than the OrderedSocketData, since the 88 // to use this function rather than the OrderedSocketData, since the
89 // DeterministicSocketData behaves in a reasonable manner. 89 // DeterministicSocketData behaves in a reasonable manner.
90 void InitSessionDeterministic(MockRead* reads, size_t reads_count, 90 void InitSessionDeterministic(MockRead* reads, size_t reads_count,
91 MockWrite* writes, size_t writes_count, 91 MockWrite* writes, size_t writes_count,
92 const SpdySessionKey& key) { 92 const SpdySessionKey& key) {
(...skipping 693 matching lines...) Expand 10 before | Expand all | Expand 10 after
786 ASSERT_TRUE(response.headers.get()); 786 ASSERT_TRUE(response.headers.get());
787 ASSERT_EQ(200, response.headers->response_code()); 787 ASSERT_EQ(200, response.headers->response_code());
788 EXPECT_TRUE(deterministic_data_->at_read_eof()); 788 EXPECT_TRUE(deterministic_data_->at_read_eof());
789 EXPECT_TRUE(deterministic_data_->at_write_eof()); 789 EXPECT_TRUE(deterministic_data_->at_write_eof());
790 } 790 }
791 791
792 // TODO(willchan): Write a longer test for SpdyStream that exercises all 792 // TODO(willchan): Write a longer test for SpdyStream that exercises all
793 // methods. 793 // methods.
794 794
795 } // namespace net 795 } // namespace net
OLDNEW
« no previous file with comments | « net/spdy/spdy_http_stream.h ('k') | net/spdy/spdy_protocol.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698