You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@trafficserver.apache.org by ma...@apache.org on 2017/09/30 09:55:31 UTC
[trafficserver] 01/03: fix mock complie error
This is an automated email from the ASF dual-hosted git repository.
maskit pushed a commit to branch quic-05
in repository https://gitbox.apache.org/repos/asf/trafficserver.git
commit 932aca011d9b63479484ab0d0cb14b18108653b4
Author: scw00 <sc...@apache.org>
AuthorDate: Sat Sep 30 09:37:07 2017 +0800
fix mock complie error
(cherry picked from commit 4774200a265a59889b240fc1995ae03343cefcbd)
---
iocore/net/quic/Mock.h | 14 +++++++-------
1 file changed, 7 insertions(+), 7 deletions(-)
diff --git a/iocore/net/quic/Mock.h b/iocore/net/quic/Mock.h
index e866a46..ea5163f 100644
--- a/iocore/net/quic/Mock.h
+++ b/iocore/net/quic/Mock.h
@@ -33,13 +33,13 @@ class MockQUICStreamManager : public QUICStreamManager
public:
MockQUICStreamManager() : QUICStreamManager() {}
// Override
- virtual QUICError
+ virtual QUICErrorUPtr
handle_frame(std::shared_ptr<const QUICFrame> f) override
{
++_frameCount[static_cast<int>(f->type())];
++_totalFrameCount;
- return QUICError(QUICErrorClass::NONE);
+ return QUICErrorUPtr(new QUICNoError());
}
// for Test
@@ -173,13 +173,13 @@ public:
return {QUICFrameType::CONNECTION_CLOSE};
}
- QUICError
+ QUICErrorUPtr
handle_frame(std::shared_ptr<const QUICFrame> f) override
{
++_frameCount[static_cast<int>(f->type())];
++_totalFrameCount;
- return QUICError(QUICErrorClass::NONE);
+ return QUICErrorUPtr(new QUICNoError());
}
uint32_t
@@ -231,7 +231,7 @@ public:
}
void
- close(QUICError error) override
+ close(QUICConnectionErrorUPtr error) override
{
}
@@ -323,13 +323,13 @@ class MockQUICCongestionController : public QUICCongestionController
public:
MockQUICCongestionController() : QUICCongestionController() {}
// Override
- virtual QUICError
+ virtual QUICErrorUPtr
handle_frame(std::shared_ptr<const QUICFrame> f) override
{
++_frameCount[static_cast<int>(f->type())];
++_totalFrameCount;
- return QUICError(QUICErrorClass::NONE);
+ return QUICErrorUPtr(new QUICNoError());
}
// for Test
--
To stop receiving notification emails like this one, please contact
"commits@trafficserver.apache.org" <co...@trafficserver.apache.org>.