OSDN Git Service

test_vendor: Remove unused extern statements
authorMyles Watson <mylesgw@google.com>
Mon, 29 Aug 2016 14:30:48 +0000 (07:30 -0700)
committerMyles Watson <mylesgw@google.com>
Thu, 8 Sep 2016 23:51:08 +0000 (16:51 -0700)
It should be safe to include C header files without
using extern.

Change-Id: I2b562ef3f76df9f9dac69323345ed3d3610e8bc2
Signed-off-by: Myles Watson <mylesgw@google.com>
vendor_libs/test_vendor_lib/include/packet.h
vendor_libs/test_vendor_lib/src/command_packet.cc
vendor_libs/test_vendor_lib/src/dual_mode_controller.cc
vendor_libs/test_vendor_lib/src/event_packet.cc
vendor_libs/test_vendor_lib/src/packet.cc
vendor_libs/test_vendor_lib/src/packet_stream.cc
vendor_libs/test_vendor_lib/src/test_channel_transport.cc
vendor_libs/test_vendor_lib/test/hci_transport_unittest.cc
vendor_libs/test_vendor_lib/test/packet_stream_unittest.cc

index 4636dd8..45bb6e7 100644 (file)
@@ -20,9 +20,7 @@
 #include <vector>
 using std::vector;
 
-extern "C" {
 #include "hci/include/hci_hal.h"
-}  // extern "C"
 
 namespace test_vendor_lib {
 
index 8704f5a..1127e1d 100644 (file)
 
 #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 {
 
index f9fea2c..ce09846 100644 (file)
 #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 {
 
index 02a3253..3a353f8 100644 (file)
 
 #include "event_packet.h"
 
-extern "C" {
 #include "osi/include/log.h"
 #include "stack/include/hcidefs.h"
-}  // extern "C"
 
 namespace test_vendor_lib {
 
index f119edd..c6789c9 100644 (file)
 
 #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 {
 
index 187d324..63d53c7 100644 (file)
 
 #include "base/logging.h"
 
-extern "C" {
 #include <errno.h>
 #include <unistd.h>
 
 #include "osi/include/log.h"
-}  // extern "C"
 
 namespace test_vendor_lib {
 
index e66783c..9b67eae 100644 (file)
 
 #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 {
 
index bd69030..144a19b 100644 (file)
@@ -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,
index bebf865..66e5126 100644 (file)
 #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";