clang-format: copy latest and re-format
clang-format-16 has some backwards incompatible changes that require
additional settings for best compatibility and re-running the formatter.
Copy the latest .clang-format from the docs repository and reformat the
repository.
Change-Id: Icbc50d46e84ee7ef756705e2b19741439a325074
Signed-off-by: Patrick Williams <patrick@stwcx.xyz>
diff --git a/test/sensor_host_unittest.cpp b/test/sensor_host_unittest.cpp
index e9800cf..4fe0816 100644
--- a/test/sensor_host_unittest.cpp
+++ b/test/sensor_host_unittest.cpp
@@ -51,8 +51,8 @@
sd_bus_emit_object_removed(IsNull(), StrEq(objPath)))
.WillOnce(Return(0));
- std::unique_ptr<Sensor> s =
- HostSensor::createTemp(name, timeout, bus_mock, objPath, defer);
+ std::unique_ptr<Sensor> s = HostSensor::createTemp(name, timeout, bus_mock,
+ objPath, defer);
}
TEST(HostSensorTest, VerifyWriteThenReadMatches)
@@ -77,8 +77,8 @@
sd_bus_emit_object_removed(IsNull(), StrEq(objPath)))
.WillOnce(Return(0));
- std::unique_ptr<Sensor> s =
- HostSensor::createTemp(name, timeout, bus_mock, objPath, defer);
+ std::unique_ptr<Sensor> s = HostSensor::createTemp(name, timeout, bus_mock,
+ objPath, defer);
// Value is updated from dbus calls only (normally).
HostSensor* hs = static_cast<HostSensor*>(s.get());
@@ -93,9 +93,9 @@
.WillOnce(Invoke(
[=]([[maybe_unused]] sd_bus* bus, [[maybe_unused]] const char* path,
[[maybe_unused]] const char* interface, const char** names) {
- EXPECT_STREQ("Value", names[0]);
- return 0;
- }));
+ EXPECT_STREQ("Value", names[0]);
+ return 0;
+ }));
std::chrono::high_resolution_clock::time_point t1 =
std::chrono::high_resolution_clock::now();