Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 79a91a18 authored by Zach Johnson's avatar Zach Johnson
Browse files

Format gd/facade with new clang-format

find facade -regex '.*\.\(cc\|h\|tpp\)' -exec clang-format -style=file -i {} \;

Test: cert/run --host
Bug: 156858180
Tag: #gd-refactor
Change-Id: I16bca2e6664c814c396e155cd5e80c1252ef38a7
parent 50933b2c
Loading
Loading
Loading
Loading
+8 −4
Original line number Diff line number Diff line
@@ -59,7 +59,9 @@ class RootFacadeService : public ::bluetooth::facade::RootFacade::Service {
 public:
  RootFacadeService(int grpc_port) : grpc_port_(grpc_port) {}

  ::grpc::Status StartStack(::grpc::ServerContext* context, const ::bluetooth::facade::StartStackRequest* request,
  ::grpc::Status StartStack(
      ::grpc::ServerContext* context,
      const ::bluetooth::facade::StartStackRequest* request,
      ::bluetooth::facade::StartStackResponse* response) override {
    if (is_running_) {
      return ::grpc::Status(::grpc::StatusCode::INVALID_ARGUMENT, "stack is running");
@@ -137,7 +139,9 @@ class RootFacadeService : public ::bluetooth::facade::RootFacade::Service {
    return ::grpc::Status::OK;
  }

  ::grpc::Status StopStack(::grpc::ServerContext* context, const ::bluetooth::facade::StopStackRequest* request,
  ::grpc::Status StopStack(
      ::grpc::ServerContext* context,
      const ::bluetooth::facade::StopStackRequest* request,
      ::bluetooth::facade::StopStackResponse* response) override {
    if (!is_running_) {
      return ::grpc::Status(::grpc::StatusCode::INVALID_ARGUMENT, "stack is not running");
+2 −2
Original line number Diff line number Diff line
@@ -16,11 +16,11 @@

#pragma once

#include <grpc++/grpc++.h>

#include <memory>
#include <string>

#include <grpc++/grpc++.h>

namespace bluetooth {
namespace facade {

+5 −2
Original line number Diff line number Diff line
@@ -15,6 +15,7 @@
 */

#include "facade/read_only_property_server.h"

#include "hci/controller.h"

namespace bluetooth {
@@ -23,7 +24,9 @@ namespace facade {
class ReadOnlyPropertyService : public ReadOnlyProperty::Service {
 public:
  ReadOnlyPropertyService(hci::Controller* controller) : controller_(controller) {}
  ::grpc::Status ReadLocalAddress(::grpc::ServerContext* context, const ::google::protobuf::Empty* request,
  ::grpc::Status ReadLocalAddress(
      ::grpc::ServerContext* context,
      const ::google::protobuf::Empty* request,
      ::bluetooth::facade::BluetoothAddress* response) override {
    auto address = controller_->GetControllerMacAddress().ToString();
    response->set_address(address);
+2 −2
Original line number Diff line number Diff line
@@ -16,10 +16,10 @@

#pragma once

#include <memory>

#include <grpc++/grpc++.h>

#include <memory>

#include "facade/rootservice.grpc.pb.h"
#include "grpc/grpc_module.h"