Update copyright year in license to 2019 (#1524)

Also update clang-format to 6.0.
This commit is contained in:
Tyler Veness
2019-05-17 17:35:09 -07:00
committed by Peter Johnson
parent 1726b77ac5
commit f432f65bef
96 changed files with 202 additions and 190 deletions

View File

@@ -1,5 +1,5 @@
/*----------------------------------------------------------------------------*/
/* Copyright (c) 2018 FIRST. All Rights Reserved. */
/* Copyright (c) 2018-2019 FIRST. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of */
/* the project. */
@@ -35,7 +35,7 @@ TEST_F(WebSocketIntegrationTest, Open) {
if (code != 1005 && code != 1006)
FAIL() << "Code: " << code << " Reason: " << reason;
});
ws->open.connect([&, s = ws.get() ](StringRef) {
ws->open.connect([&, s = ws.get()](StringRef) {
++gotClientOpen;
s->Close();
});
@@ -68,7 +68,7 @@ TEST_F(WebSocketIntegrationTest, Protocol) {
if (code != 1005 && code != 1006)
FAIL() << "Code: " << code << " Reason: " << reason;
});
ws->open.connect([&, s = ws.get() ](StringRef protocol) {
ws->open.connect([&, s = ws.get()](StringRef protocol) {
++gotClientOpen;
s->Close();
ASSERT_EQ(protocol, "proto1");
@@ -134,7 +134,7 @@ TEST_F(WebSocketIntegrationTest, ClientSendText) {
if (code != 1005 && code != 1006)
FAIL() << "Code: " << code << " Reason: " << reason;
});
ws->open.connect([&, s = ws.get() ](StringRef) {
ws->open.connect([&, s = ws.get()](StringRef) {
s->SendText(uv::Buffer{"hello"}, [&](auto, uv::Error) {});
s->Close();
});

View File

@@ -1,5 +1,5 @@
/*----------------------------------------------------------------------------*/
/* Copyright (c) 2018 FIRST. All Rights Reserved. */
/* Copyright (c) 2018-2019 FIRST. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of */
/* the project. */
@@ -45,7 +45,7 @@ TEST(UvLoop, Walk) {
timer->error.connect([](Error) { FAIL(); });
timer->timeout.connect([&, theTimer = timer.get() ] {
timer->timeout.connect([&, theTimer = timer.get()] {
theTimer->GetLoopRef().Walk([&](Handle& it) {
if (&it == timer.get()) seen_timer_handle++;
});

View File

@@ -1,5 +1,5 @@
/*----------------------------------------------------------------------------*/
/* Copyright (c) 2018 FIRST. All Rights Reserved. */
/* Copyright (c) 2018-2019 FIRST. All Rights Reserved. */
/* Open Source Software - may be modified and shared by FRC teams. The code */
/* must be accompanied by the FIRST BSD license file in the root directory of */
/* the project. */
@@ -24,7 +24,7 @@ TEST(UvTimer, StartAndStop) {
handleRepeat->error.connect([](Error) { FAIL(); });
handleNoRepeat->timeout.connect(
[&checkTimerNoRepeatEvent, handle = handleNoRepeat.get() ] {
[&checkTimerNoRepeatEvent, handle = handleNoRepeat.get()] {
ASSERT_FALSE(checkTimerNoRepeatEvent);
checkTimerNoRepeatEvent = true;
handle->Stop();
@@ -33,7 +33,7 @@ TEST(UvTimer, StartAndStop) {
});
handleRepeat->timeout.connect(
[&checkTimerRepeatEvent, handle = handleRepeat.get() ] {
[&checkTimerRepeatEvent, handle = handleRepeat.get()] {
if (checkTimerRepeatEvent) {
handle->Stop();
handle->Close();