gfe-relnote: Default-initialize QUIC BBRv2 loss event threshold for exiting STARTUP from a flag. Protected by --gfe2_reloadable_flag_quic_default_to_bbr_v2.
PiperOrigin-RevId: 264298542
Change-Id: I304ab19e4820dec51d3f8ef53762a393f6b175fd
diff --git a/quic/qbone/mock_qbone_server_session.h b/quic/qbone/mock_qbone_server_session.h
new file mode 100644
index 0000000..652c017
--- /dev/null
+++ b/quic/qbone/mock_qbone_server_session.h
@@ -0,0 +1,36 @@
+// Copyright (c) 2019 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#ifndef QUICHE_QUIC_QBONE_MOCK_QBONE_SERVER_SESSION_H_
+#define QUICHE_QUIC_QBONE_MOCK_QBONE_SERVER_SESSION_H_
+
+#include "net/third_party/quiche/src/quic/platform/api/quic_test.h"
+#include "net/third_party/quiche/src/quic/qbone/qbone_server_session.h"
+
+namespace quic {
+
+class MockQboneServerSession : public QboneServerSession {
+ public:
+ explicit MockQboneServerSession(QuicConnection* connection)
+ : QboneServerSession(CurrentSupportedVersions(),
+ connection,
+ /*owner=*/nullptr,
+ /*config=*/{},
+ /*quic_crypto_server_config=*/nullptr,
+ /*compressed_certs_cache=*/nullptr,
+ /*writer=*/nullptr,
+ /*self_ip=*/QuicIpAddress::Loopback6(),
+ /*client_ip=*/QuicIpAddress::Loopback6(),
+ /*client_ip_subnet_length=*/0,
+ /*handler=*/nullptr) {}
+
+ MOCK_METHOD1(SendClientRequest, bool(const QboneClientRequest&));
+
+ MOCK_METHOD1(ProcessPacketFromNetwork, void(QuicStringPiece));
+ MOCK_METHOD1(ProcessPacketFromPeer, void(QuicStringPiece));
+};
+
+} // namespace quic
+
+#endif // QUICHE_QUIC_QBONE_MOCK_QBONE_SERVER_SESSION_H_