[format] Fix format for applications/tls_example
Run `pw format --fix applications/tls_example`
Change-Id: Ibf60a819df6166e9155b8d44dd1df19a7ed986ff
Reviewed-on: https://pigweed-review.googlesource.com/c/pigweed/experimental/+/39764
Reviewed-by: Ali Zhang <alizhang@google.com>
Commit-Queue: Yecheng Zhao <zyecheng@google.com>
diff --git a/applications/tls_example/backends/tls/boringssl/BUILD.gn b/applications/tls_example/backends/tls/boringssl/BUILD.gn
index f09e56a..f0133f5 100644
--- a/applications/tls_example/backends/tls/boringssl/BUILD.gn
+++ b/applications/tls_example/backends/tls/boringssl/BUILD.gn
@@ -19,7 +19,7 @@
sources = [ "boringssl_backend.cc" ]
include_dirs = [ "//applications/tls_example/backends" ]
deps = [
- "//third_party/boringssl:boringssl_baremetal",
- "$dir_pw_log"
+ "$dir_pw_log",
+ "//third_party/boringssl:boringssl_baremetal",
]
}
diff --git a/applications/tls_example/backends/tls/mbedtls/BUILD.gn b/applications/tls_example/backends/tls/mbedtls/BUILD.gn
index 38ee3f4..70265af 100644
--- a/applications/tls_example/backends/tls/mbedtls/BUILD.gn
+++ b/applications/tls_example/backends/tls/mbedtls/BUILD.gn
@@ -16,10 +16,10 @@
import("$dir_pw_build/target_types.gni")
pw_source_set("mbedtls") {
- sources = [ "mbedtls_backend.cc" ]
- include_dirs = [ "//applications/tls_example/backends" ]
- deps = [
- "//third_party/mbedtls:mbedtls_lib_baremetal",
- "$dir_pw_log"
- ]
-}
\ No newline at end of file
+ sources = [ "mbedtls_backend.cc" ]
+ include_dirs = [ "//applications/tls_example/backends" ]
+ deps = [
+ "$dir_pw_log",
+ "//third_party/mbedtls:mbedtls_lib_baremetal",
+ ]
+}
diff --git a/applications/tls_example/backends/tls/picotls/BUILD.gn b/applications/tls_example/backends/tls/picotls/BUILD.gn
index 6511354..adde7d3 100644
--- a/applications/tls_example/backends/tls/picotls/BUILD.gn
+++ b/applications/tls_example/backends/tls/picotls/BUILD.gn
@@ -16,10 +16,10 @@
import("$dir_pw_build/target_types.gni")
pw_source_set("picotls") {
- sources = [ "picotls_backend.cc" ]
- include_dirs = [ "//applications/tls_example/backends" ]
- deps = [
- "//third_party/picotls:picotls_lib_baremetal",
- "$dir_pw_log"
- ]
-}
\ No newline at end of file
+ sources = [ "picotls_backend.cc" ]
+ include_dirs = [ "//applications/tls_example/backends" ]
+ deps = [
+ "$dir_pw_log",
+ "//third_party/picotls:picotls_lib_baremetal",
+ ]
+}
diff --git a/applications/tls_example/backends/transport/teensy_ethernet/teensy_ethernet.h b/applications/tls_example/backends/transport/teensy_ethernet/teensy_ethernet.h
index 71a499b..20e7753 100644
--- a/applications/tls_example/backends/transport/teensy_ethernet/teensy_ethernet.h
+++ b/applications/tls_example/backends/transport/teensy_ethernet/teensy_ethernet.h
@@ -19,12 +19,13 @@
#include "backend_interface.h"
class TeensyEthernetTransport final : public TransportInterface {
-public:
+ public:
TeensyEthernetTransport();
const char* Name() override { return "teensy-ethernet"; };
int Connect(const char* ip, int port) override;
int Write(const void* buffer, size_t size) override;
int Read(void* buffer, size_t size) override;
-private:
+
+ private:
EthernetClient client_;
};
diff --git a/applications/tls_example/sysdeps.cc b/applications/tls_example/sysdeps.cc
index 2ed71a8..5f72466 100644
--- a/applications/tls_example/sysdeps.cc
+++ b/applications/tls_example/sysdeps.cc
@@ -33,9 +33,7 @@
int fcntl(int, int, ...) { return 0; }
-ssize_t read(int, void*, size_t len) {
- return static_cast<ssize_t>(len);
-}
+ssize_t read(int, void*, size_t len) { return static_cast<ssize_t>(len); }
int close(int) { return 0; }
@@ -55,5 +53,4 @@
}
void perror(const char* __s) { PW_LOG_INFO("%s", __s); }
-
}