Reformat Change-Id: Ia98499f9ada220151b24ecb8b60b02524d700bc4 Reviewed-on: https://weave-review.googlesource.com/1967 Reviewed-by: Vitaly Buka <vitalybuka@google.com>
diff --git a/src/commands/cloud_command_proxy_unittest.cc b/src/commands/cloud_command_proxy_unittest.cc index d3a9965..0e998ef 100644 --- a/src/commands/cloud_command_proxy_unittest.cc +++ b/src/commands/cloud_command_proxy_unittest.cc
@@ -66,8 +66,8 @@ protected: void SetUp() override { // Set up the test ComponentManager. - auto callback = - [this](const base::Callback<void(ComponentManager::UpdateID)>& call) { + auto callback = [this]( + const base::Callback<void(ComponentManager::UpdateID)>& call) { return callbacks_.Add(call).release(); }; EXPECT_CALL(component_manager_, MockAddServerStateUpdatedCallback(_))
diff --git a/src/commands/command_instance.h b/src/commands/command_instance.h index 15f3ac2..b1028d0 100644 --- a/src/commands/command_instance.h +++ b/src/commands/command_instance.h
@@ -12,8 +12,8 @@ #include <base/macros.h> #include <base/observer_list.h> -#include <weave/error.h> #include <weave/command.h> +#include <weave/error.h> namespace base { class Value; @@ -72,11 +72,10 @@ // The command ID extracted (if present in the JSON object) even if other // parsing/validation error occurs and command instance is not constructed. // This is used to report parse failures back to the server. - static std::unique_ptr<CommandInstance> FromJson( - const base::Value* value, - Command::Origin origin, - std::string* command_id, - ErrorPtr* error); + static std::unique_ptr<CommandInstance> FromJson(const base::Value* value, + Command::Origin origin, + std::string* command_id, + ErrorPtr* error); std::unique_ptr<base::DictionaryValue> ToJson() const;
diff --git a/src/commands/command_queue_unittest.cc b/src/commands/command_queue_unittest.cc index 08e8102..b4c5938 100644 --- a/src/commands/command_queue_unittest.cc +++ b/src/commands/command_queue_unittest.cc
@@ -21,8 +21,8 @@ std::unique_ptr<CommandInstance> CreateDummyCommandInstance( const std::string& name, const std::string& id) { - std::unique_ptr<CommandInstance> cmd{new CommandInstance{ - name, Command::Origin::kLocal, {}}}; + std::unique_ptr<CommandInstance> cmd{ + new CommandInstance{name, Command::Origin::kLocal, {}}}; cmd->SetID(id); return cmd; }