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

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

Issue 723343002: Update from https://crrev.com/304121 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 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
« no previous file with comments | « net/quic/quic_stream_factory.cc ('k') | net/quic/quic_time.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/quic/quic_stream_factory.h" 5 #include "net/quic/quic_stream_factory.h"
6 6
7 #include "base/run_loop.h" 7 #include "base/run_loop.h"
8 #include "base/strings/string_util.h" 8 #include "base/strings/string_util.h"
9 #include "net/base/test_data_directory.h" 9 #include "net/base/test_data_directory.h"
10 #include "net/cert/cert_verifier.h" 10 #include "net/cert/cert_verifier.h"
(...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 return ERR_IO_PENDING; 114 return ERR_IO_PENDING;
115 } 115 }
116 116
117 virtual void CancelWaitForDataReadyCallback() override {} 117 virtual void CancelWaitForDataReadyCallback() override {}
118 118
119 virtual bool IsDataReady() override { return false; } 119 virtual bool IsDataReady() override { return false; }
120 120
121 virtual bool IsReadyToPersist() override { return false; } 121 virtual bool IsReadyToPersist() override { return false; }
122 122
123 virtual void Persist() override {}; 123 virtual void Persist() override {};
124
125 virtual void OnExternalCacheHit() override {};
124 }; 126 };
125 127
126 class MockQuicServerInfoFactory : public QuicServerInfoFactory { 128 class MockQuicServerInfoFactory : public QuicServerInfoFactory {
127 public: 129 public:
128 MockQuicServerInfoFactory() {} 130 MockQuicServerInfoFactory() {}
129 virtual ~MockQuicServerInfoFactory() {} 131 virtual ~MockQuicServerInfoFactory() {}
130 132
131 virtual QuicServerInfo* GetForServer(const QuicServerId& server_id) override { 133 virtual QuicServerInfo* GetForServer(const QuicServerId& server_id) override {
132 return new MockQuicServerInfo(server_id); 134 return new MockQuicServerInfo(server_id);
133 } 135 }
(...skipping 1461 matching lines...) Expand 10 before | Expand all | Expand 10 after
1595 ASSERT_EQ(0u, runner_->GetPostedTasks().size()); 1597 ASSERT_EQ(0u, runner_->GetPostedTasks().size());
1596 1598
1597 scoped_ptr<QuicHttpStream> stream = request.ReleaseStream(); 1599 scoped_ptr<QuicHttpStream> stream = request.ReleaseStream();
1598 EXPECT_TRUE(stream.get()); 1600 EXPECT_TRUE(stream.get());
1599 EXPECT_TRUE(socket_data.at_read_eof()); 1601 EXPECT_TRUE(socket_data.at_read_eof());
1600 EXPECT_TRUE(socket_data.at_write_eof()); 1602 EXPECT_TRUE(socket_data.at_write_eof());
1601 } 1603 }
1602 1604
1603 } // namespace test 1605 } // namespace test
1604 } // namespace net 1606 } // namespace net
OLDNEW
« no previous file with comments | « net/quic/quic_stream_factory.cc ('k') | net/quic/quic_time.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698