diff options
author | Patrick Venture <venture@google.com> | 2018-08-31 09:33:09 -0700 |
---|---|---|
committer | Patrick Venture <venture@google.com> | 2018-09-04 16:43:17 -0700 |
commit | 3d6d3182ee0b0e88b81fbbbe5c91dea3e99425a9 (patch) | |
tree | e4ce167e617e988157a6ea8bfa9de579ebfcf0b8 /src/test/propertywatchtest.cpp | |
parent | ac8039592ad4b58edbf79900bf41a1faabea3fa2 (diff) | |
download | phosphor-dbus-monitor-3d6d3182ee0b0e88b81fbbbe5c91dea3e99425a9.tar.gz phosphor-dbus-monitor-3d6d3182ee0b0e88b81fbbbe5c91dea3e99425a9.zip |
update .clang-format
Added the header inclusion order to the .clang-format file generated
these changes.
Change-Id: I4f51a20f469de431ee6a5ba78e3f4da39c980fab
Signed-off-by: Patrick Venture <venture@google.com>
Diffstat (limited to 'src/test/propertywatchtest.cpp')
-rw-r--r-- | src/test/propertywatchtest.cpp | 27 |
1 files changed, 18 insertions, 9 deletions
diff --git a/src/test/propertywatchtest.cpp b/src/test/propertywatchtest.cpp index bb021a2..1cf7729 100644 --- a/src/test/propertywatchtest.cpp +++ b/src/test/propertywatchtest.cpp @@ -1,7 +1,9 @@ -#include <array> -#include "propertywatchimpl.hpp" #include "propertywatchtest.hpp" +#include "propertywatchimpl.hpp" + +#include <array> + using namespace std::string_literals; using namespace phosphor::dbus::monitoring; @@ -47,10 +49,12 @@ const PropertyIndex watchIndex = { }, }; -template <typename T> struct ExpectedValues +template <typename T> +struct ExpectedValues { }; -template <> struct ExpectedValues<uint8_t> +template <> +struct ExpectedValues<uint8_t> { static auto& get(size_t i) { @@ -61,7 +65,8 @@ template <> struct ExpectedValues<uint8_t> } }; -template <> struct ExpectedValues<uint16_t> +template <> +struct ExpectedValues<uint16_t> { static auto& get(size_t i) { @@ -72,7 +77,8 @@ template <> struct ExpectedValues<uint16_t> } }; -template <> struct ExpectedValues<uint32_t> +template <> +struct ExpectedValues<uint32_t> { static auto& get(size_t i) { @@ -83,7 +89,8 @@ template <> struct ExpectedValues<uint32_t> } }; -template <> struct ExpectedValues<uint64_t> +template <> +struct ExpectedValues<uint64_t> { static auto& get(size_t i) { @@ -94,7 +101,8 @@ template <> struct ExpectedValues<uint64_t> } }; -template <> struct ExpectedValues<std::string> +template <> +struct ExpectedValues<std::string> { static auto& get(size_t i) { @@ -105,7 +113,8 @@ template <> struct ExpectedValues<std::string> } }; -template <typename T> void testStart() +template <typename T> +void testStart() { using ::testing::_; using ::testing::Return; |