This is an automated email from the ASF dual-hosted git repository.

maskit pushed a commit to branch quic-latest
in repository https://gitbox.apache.org/repos/asf/trafficserver.git


The following commit(s) were added to refs/heads/quic-latest by this push:
     new 4774200  fix mock complie error
4774200 is described below

commit 4774200a265a59889b240fc1995ae03343cefcbd
Author: scw00 <sc...@apache.org>
AuthorDate: Sat Sep 30 09:37:07 2017 +0800

    fix mock complie error
---
 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" <commits@trafficserver.apache.org>'].

Reply via email to