presence: Clang format updates
Used `format-code.sh` build script to make changes to conform to clang
format.
Tested: Compiled
Change-Id: I2fc795938e85a752ee56b54212d389c2ff296828
Signed-off-by: Matthew Barth <msbarth@us.ibm.com>
diff --git a/presence/test/fallbacktest.cpp b/presence/test/fallbacktest.cpp
index a9f989c..daa0b50 100644
--- a/presence/test/fallbacktest.cpp
+++ b/presence/test/fallbacktest.cpp
@@ -1,8 +1,11 @@
+#include "../fallback.hpp"
+
+#include "../psensor.hpp"
+
#include <iostream>
#include <string>
+
#include <gtest/gtest.h>
-#include "../fallback.hpp"
-#include "../psensor.hpp"
int pstate = -1;
@@ -26,32 +29,32 @@
class TestSensor : public PresenceSensor
{
- public:
- bool start() override
- {
- ++started;
- return _present;
- }
+ public:
+ bool start() override
+ {
+ ++started;
+ return _present;
+ }
- void stop() override
- {
- ++stopped;
- }
+ void stop() override
+ {
+ ++stopped;
+ }
- bool present() override
- {
- return _present;
- }
+ bool present() override
+ {
+ return _present;
+ }
- void fail() override
- {
- ++failed;
- }
+ void fail() override
+ {
+ ++failed;
+ }
- bool _present = false;
- size_t started = 0;
- size_t stopped = 0;
- size_t failed = 0;
+ bool _present = false;
+ size_t started = 0;
+ size_t stopped = 0;
+ size_t failed = 0;
};
} // namespace presence
@@ -136,7 +139,6 @@
ASSERT_EQ(ts2.started, 0);
}
-
TEST(FallbackTest, TestTwoB)
{
// Validate two sensors.