Commit 265316f7 authored by Myles Watson's avatar Myles Watson
Browse files

test_vendor: Remove unused extern statements


It should be safe to include C header files without
using extern.

Change-Id: I2b562ef3f76df9f9dac69323345ed3d3610e8bc2
Signed-off-by: default avatarMyles Watson <mylesgw@google.com>
parent b0897559
......@@ -20,9 +20,7 @@
#include <vector>
using std::vector;
extern "C" {
#include "hci/include/hci_hal.h"
} // extern "C"
namespace test_vendor_lib {
......
......@@ -18,11 +18,9 @@
#include "command_packet.h"
extern "C" {
#include "hci/include/hci_hal.h"
#include "osi/include/log.h"
#include "stack/include/hcidefs.h"
} // extern "C"
namespace test_vendor_lib {
......
......@@ -27,11 +27,9 @@
#include "event_packet.h"
#include "hci_transport.h"
extern "C" {
#include "osi/include/log.h"
#include "osi/include/osi.h"
#include "stack/include/hcidefs.h"
} // extern "C"
namespace {
......
......@@ -18,10 +18,8 @@
#include "event_packet.h"
extern "C" {
#include "osi/include/log.h"
#include "stack/include/hcidefs.h"
} // extern "C"
namespace test_vendor_lib {
......
......@@ -18,13 +18,10 @@
#include "packet.h"
#include "base/logging.h"
#include <algorithm>
extern "C" {
#include "base/logging.h"
#include "osi/include/log.h"
} // extern "C"
namespace test_vendor_lib {
......
......@@ -20,12 +20,10 @@
#include "base/logging.h"
extern "C" {
#include <errno.h>
#include <unistd.h>
#include "osi/include/log.h"
} // extern "C"
namespace test_vendor_lib {
......
......@@ -20,13 +20,11 @@
#include "base/logging.h"
extern "C" {
#include "osi/include/log.h"
#include "osi/include/osi.h"
#include <netinet/in.h>
#include <sys/socket.h>
} // extern "C"
namespace test_vendor_lib {
......
......@@ -24,9 +24,7 @@
#include <mutex>
#include <thread>
extern "C" {
#include "stack/include/hcidefs.h"
} // extern "C"
namespace {
const vector<uint8_t> stub_command({DATA_TYPE_COMMAND,
......
......@@ -25,12 +25,10 @@
#include <vector>
using std::vector;
extern "C" {
#include "hci/include/hci_hal.h"
#include "stack/include/hcidefs.h"
#include <sys/socket.h>
} // extern "C"
namespace {
const char small_payload[] = "foo bar baz";
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment