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

Commit 499e8533 authored by Myles Watson's avatar Myles Watson Committed by Andre Eisenbach
Browse files

test_vendor_lib: run clang-format with brillo opts



Change-Id: Ie2ead0a020e2358696a2f0e26f3c76a9dd29e266
Signed-off-by: default avatarMyles Watson <mylesgw@google.com>
parent 85fe2ccc
Loading
Loading
Loading
Loading
+7 −7
Original line number Diff line number Diff line
@@ -19,8 +19,8 @@
#include <cstdint>
#include <memory>
#include <string>
#include <vector>
#include <unordered_map>
#include <vector>

#include "base/json/json_value_converter.h"
#include "base/time/time.h"
+4 −2
Original line number Diff line number Diff line
@@ -63,7 +63,8 @@ class EventPacket : public Packet {
  //     Contains any event specific parameters that should
  //     be sent to the host.
  static std::unique_ptr<EventPacket> CreateCommandCompleteEvent(
      uint8_t num_hci_command_packets, uint16_t command_opcode,
      uint8_t num_hci_command_packets,
      uint16_t command_opcode,
      const std::vector<uint8_t>& event_return_parameters);

  // Creates and returns a command complete event packet. See the Bluetooth
@@ -107,7 +108,8 @@ class EventPacket : public Packet {
  //     Bits 14-0: Bits 16-2 of CLKNslave-CLK.
  //     Bits 15: Reserved.
  static std::unique_ptr<EventPacket> CreateInquiryResultEvent(
      uint8_t num_responses, const std::vector<uint8_t>& bd_addresses,
      uint8_t num_responses,
      const std::vector<uint8_t>& bd_addresses,
      const std::vector<uint8_t>& page_scan_repetition_mode,
      const std::vector<uint8_t>& page_scan_period_mode,
      const std::vector<uint8_t>& page_scan_mode,
+1 −1
Original line number Diff line number Diff line
@@ -17,8 +17,8 @@
#pragma once

#include <functional>
#include <memory>
#include <list>
#include <memory>

extern "C" {
#include <sys/epoll.h>
+5 −3
Original line number Diff line number Diff line
@@ -17,8 +17,8 @@
#pragma once

#include <cstdint>
#include <vector>
#include <memory>
#include <vector>

#include "vendor_libs/test_vendor_lib/include/command_packet.h"
#include "vendor_libs/test_vendor_lib/include/event_packet.h"
@@ -55,11 +55,13 @@ class PacketStream {
  // Attempts to receive |num_octets_to_receive| into |destination| from |fd|,
  // returning false if an error occurs.
  bool ReceiveAll(std::vector<uint8_t>& destination,
                  size_t num_octets_to_receive, int fd) const;
                  size_t num_octets_to_receive,
                  int fd) const;

  // Attempts to send |num_octets_to_send| from |source| to |fd|, returning
  // false if an error occurs.
  bool SendAll(const std::vector<uint8_t>& source, size_t num_octets_to_send,
  bool SendAll(const std::vector<uint8_t>& source,
               size_t num_octets_to_send,
               int fd) const;
};

+1 −1
Original line number Diff line number Diff line
@@ -16,8 +16,8 @@

#pragma once

#include <string>
#include <memory>
#include <string>

#include "base/files/scoped_file.h"
#include "base/message_loop/message_loop.h"
Loading