Browse Source

AP_Common: tidy includes

apm_2208
Peter Barker 3 years ago committed by Andrew Tridgell
parent
commit
f1069023ee
  1. 2
      libraries/AP_Common/ExpandingString.cpp
  2. 4
      libraries/AP_Common/ExpandingString.h
  3. 1
      libraries/AP_Common/tests/test_expandingstring.cpp
  4. 1
      libraries/AP_Common/tests/test_expandingstring_failure.cpp

2
libraries/AP_Common/ExpandingString.cpp

@ -18,6 +18,8 @@ @@ -18,6 +18,8 @@
#include "ExpandingString.h"
#include <AP_HAL/AP_HAL.h>
extern const AP_HAL::HAL& hal;
#define EXPAND_INCREMENT 512

4
libraries/AP_Common/ExpandingString.h

@ -18,7 +18,9 @@ @@ -18,7 +18,9 @@
#pragma once
#include <AP_HAL/AP_HAL.h>
#include <AP_Common/AP_Common.h>
#include <stdint.h>
class ExpandingString {
public:

1
libraries/AP_Common/tests/test_expandingstring.cpp

@ -1,5 +1,6 @@ @@ -1,5 +1,6 @@
#include <AP_gtest.h>
#include <AP_Common/ExpandingString.h>
#include <AP_HAL/AP_HAL.h>
const AP_HAL::HAL& hal = AP_HAL::get_HAL();

1
libraries/AP_Common/tests/test_expandingstring_failure.cpp

@ -1,6 +1,7 @@ @@ -1,6 +1,7 @@
#include <AP_gtest.h>
#include <stdlib.h>
#include <AP_Common/ExpandingString.h>
#include <AP_HAL/AP_HAL.h>
/**
* This file test realloc failure on ExpandingString

Loading…
Cancel
Save