trafficserver-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mas...@apache.org
Subject [trafficserver] branch quic-latest updated: clang-format
Date Mon, 04 Sep 2017 08:43:27 GMT
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 de466e9  clang-format
de466e9 is described below

commit de466e93b69b0be8d2439d7b4313a05460692e65
Author: Masakazu Kitajo <maskit@apache.org>
AuthorDate: Mon Sep 4 17:43:09 2017 +0900

    clang-format
---
 iocore/net/quic/Mock.h                         |  5 +----
 iocore/net/quic/test/test_QUICStreamManager.cc | 27 +++++++++++++++++---------
 2 files changed, 19 insertions(+), 13 deletions(-)

diff --git a/iocore/net/quic/Mock.h b/iocore/net/quic/Mock.h
index 46bb03d..a9c4bf9 100644
--- a/iocore/net/quic/Mock.h
+++ b/iocore/net/quic/Mock.h
@@ -348,9 +348,7 @@ private:
 class MockQUICApplication : public QUICApplication
 {
 public:
-  MockQUICApplication() : QUICApplication(new MockQUICConnection) {
-    SET_HANDLER(&MockQUICApplication::main_event_handler);
-  }
+  MockQUICApplication() : QUICApplication(new MockQUICConnection) { SET_HANDLER(&MockQUICApplication::main_event_handler);
}
 
   int
   main_event_handler(int event, Event *data)
@@ -377,4 +375,3 @@ NetVConnection::send_OOB(Continuation *, char *, int)
 {
   return nullptr;
 }
-
diff --git a/iocore/net/quic/test/test_QUICStreamManager.cc b/iocore/net/quic/test/test_QUICStreamManager.cc
index 55f3a29..fdf4c51 100644
--- a/iocore/net/quic/test/test_QUICStreamManager.cc
+++ b/iocore/net/quic/test/test_QUICStreamManager.cc
@@ -37,12 +37,15 @@ TEST_CASE("QUICStreamManager_NewStream", "[quic]")
   app_map.set_default(&mock_app);
   QUICStreamManager sm(&tx, &app_map);
   std::shared_ptr<QUICTransportParameters> local_tp = std::make_shared<QUICTransportParametersInEncryptedExtensions>();
-  std::shared_ptr<QUICTransportParameters> remote_tp = std::make_shared<QUICTransportParametersInClientHello>(static_cast<QUICVersion>(0),
static_cast<QUICVersion>(0));
+  std::shared_ptr<QUICTransportParameters> remote_tp =
+    std::make_shared<QUICTransportParametersInClientHello>(static_cast<QUICVersion>(0),
static_cast<QUICVersion>(0));
   sm.init_flow_control_params(local_tp, remote_tp);
 
   // STREAM frames create new streams
-  std::shared_ptr<QUICFrame> stream_frame_0 = QUICFrameFactory::create_stream_frame(reinterpret_cast<const
uint8_t *>("abc"), 3, 0, 0);
-  std::shared_ptr<QUICFrame> stream_frame_1 = QUICFrameFactory::create_stream_frame(reinterpret_cast<const
uint8_t *>("abc"), 3, 1, 0);
+  std::shared_ptr<QUICFrame> stream_frame_0 =
+    QUICFrameFactory::create_stream_frame(reinterpret_cast<const uint8_t *>("abc"),
3, 0, 0);
+  std::shared_ptr<QUICFrame> stream_frame_1 =
+    QUICFrameFactory::create_stream_frame(reinterpret_cast<const uint8_t *>("abc"),
3, 1, 0);
   CHECK(sm.stream_count() == 0);
   sm.handle_frame(stream_frame_0);
   CHECK(sm.stream_count() == 1);
@@ -73,8 +76,10 @@ TEST_CASE("QUICStreamManager_total_offset_received", "[quic]")
   app_map.set_default(&mock_app);
   QUICStreamManager sm(&tx, &app_map);
   std::shared_ptr<QUICTransportParameters> local_tp = std::make_shared<QUICTransportParametersInEncryptedExtensions>();
-  local_tp->add(QUICTransportParameterId::INITIAL_MAX_STREAM_DATA, std::unique_ptr<QUICTransportParameterValue>(new
QUICTransportParameterValue(4096, 4)));
-  std::shared_ptr<QUICTransportParameters> remote_tp = std::make_shared<QUICTransportParametersInClientHello>(static_cast<QUICVersion>(0),
static_cast<QUICVersion>(0));
+  local_tp->add(QUICTransportParameterId::INITIAL_MAX_STREAM_DATA,
+                std::unique_ptr<QUICTransportParameterValue>(new QUICTransportParameterValue(4096,
4)));
+  std::shared_ptr<QUICTransportParameters> remote_tp =
+    std::make_shared<QUICTransportParametersInClientHello>(static_cast<QUICVersion>(0),
static_cast<QUICVersion>(0));
   sm.init_flow_control_params(local_tp, remote_tp);
   uint8_t data[1024] = {0};
 
@@ -105,14 +110,18 @@ TEST_CASE("QUICStreamManager_total_offset_sent", "[quic]")
   app_map.set_default(&mock_app);
   QUICStreamManager sm(&tx, &app_map);
   std::shared_ptr<QUICTransportParameters> local_tp = std::make_shared<QUICTransportParametersInEncryptedExtensions>();
-  local_tp->add(QUICTransportParameterId::INITIAL_MAX_STREAM_DATA, std::unique_ptr<QUICTransportParameterValue>(new
QUICTransportParameterValue(4096, 4)));
-  std::shared_ptr<QUICTransportParameters> remote_tp = std::make_shared<QUICTransportParametersInClientHello>(static_cast<QUICVersion>(0),
static_cast<QUICVersion>(0));
+  local_tp->add(QUICTransportParameterId::INITIAL_MAX_STREAM_DATA,
+                std::unique_ptr<QUICTransportParameterValue>(new QUICTransportParameterValue(4096,
4)));
+  std::shared_ptr<QUICTransportParameters> remote_tp =
+    std::make_shared<QUICTransportParametersInClientHello>(static_cast<QUICVersion>(0),
static_cast<QUICVersion>(0));
   sm.init_flow_control_params(local_tp, remote_tp);
   uint8_t data[1024] = {0};
 
   // Create a stream with STREAM_BLOCKED (== noop)
-  std::shared_ptr<QUICFrame> stream_frame_0_r = QUICFrameFactory::create_stream_frame(reinterpret_cast<const
uint8_t *>("abc"), 3, 0, 0);
-  std::shared_ptr<QUICFrame> stream_frame_1_r = QUICFrameFactory::create_stream_frame(reinterpret_cast<const
uint8_t *>("abc"), 3, 1, 0);
+  std::shared_ptr<QUICFrame> stream_frame_0_r =
+    QUICFrameFactory::create_stream_frame(reinterpret_cast<const uint8_t *>("abc"),
3, 0, 0);
+  std::shared_ptr<QUICFrame> stream_frame_1_r =
+    QUICFrameFactory::create_stream_frame(reinterpret_cast<const uint8_t *>("abc"),
3, 1, 0);
   sm.handle_frame(stream_frame_0_r);
   sm.handle_frame(stream_frame_1_r);
   CHECK(sm.stream_count() == 2);

-- 
To stop receiving notification emails like this one, please contact
['"commits@trafficserver.apache.org" <commits@trafficserver.apache.org>'].

Mime
View raw message