Include files from webrtc/.. paths in system_wrappers/

BUG=1662
R=henrikg@webrtc.org

Review URL: https://webrtc-codereview.appspot.com/1550004

git-svn-id: http://webrtc.googlecode.com/svn/trunk@4111 4adac7df-926f-26a2-2b94-8c16560cd09d
This commit is contained in:
pbos@webrtc.org 2013-05-27 15:07:45 +00:00
parent 1e50231ff8
commit acaf3a1b13
41 changed files with 69 additions and 64 deletions

View File

@ -19,7 +19,7 @@
#include <stddef.h>
#include "system_wrappers/interface/scoped_ptr.h"
#include "webrtc/system_wrappers/interface/scoped_ptr.h"
namespace webrtc {

View File

@ -18,8 +18,8 @@
#include <cstddef>
#include "common_types.h"
#include "constructor_magic.h"
#include "webrtc/common_types.h"
#include "webrtc/system_wrappers/interface/constructor_magic.h"
namespace webrtc {

View File

@ -11,7 +11,7 @@
#ifndef WEBRTC_SYSTEM_WRAPPERS_INTERFACE_CPU_INFO_H_
#define WEBRTC_SYSTEM_WRAPPERS_INTERFACE_CPU_INFO_H_
#include "typedefs.h"
#include "webrtc/typedefs.h"
namespace webrtc {

View File

@ -17,7 +17,7 @@
#include <stddef.h> // size_t
#include "webrtc/typedefs.h" // NOLINT(build/include)
#include "webrtc/typedefs.h"
#ifdef __cplusplus
extern "C" {

View File

@ -11,7 +11,7 @@
#ifndef SYSTEM_WRAPPERS_INTERFACE_REF_COUNT_H_
#define SYSTEM_WRAPPERS_INTERFACE_REF_COUNT_H_
#include "system_wrappers/interface/atomic32.h"
#include "webrtc/system_wrappers/interface/atomic32.h"
namespace webrtc {

View File

@ -15,7 +15,7 @@
#define WEBRTC_SYSTEM_WRAPPERS_INTERFACE_TICK_UTIL_H_
#if _WIN32
// Note: These includes must be in this order since mmsystem depends on windows.
// Note: The Windows header must always be included before mmsystem.h
#include <windows.h>
#include <mmsystem.h>
#elif WEBRTC_LINUX

View File

@ -8,7 +8,7 @@
* be found in the AUTHORS file in the root of the source tree.
*/
#include "aligned_malloc.h"
#include "webrtc/system_wrappers/interface/aligned_malloc.h"
#include <memory.h>
#include <stdlib.h>
@ -19,7 +19,7 @@
#include <stdint.h>
#endif
#include "typedefs.h"
#include "webrtc/typedefs.h"
// Reference on memory alignment:
// http://stackoverflow.com/questions/227897/solve-the-memory-alignment-in-c-interview-question-that-stumped-me

View File

@ -8,7 +8,7 @@
* be found in the AUTHORS file in the root of the source tree.
*/
#include "system_wrappers/interface/aligned_malloc.h"
#include "webrtc/system_wrappers/interface/aligned_malloc.h"
#if _WIN32
#include <windows.h>
@ -16,9 +16,9 @@
#include <stdint.h>
#endif
#include "typedefs.h" // NOLINT
#include "webrtc/typedefs.h"
#include "gtest/gtest.h"
#include "testing/gtest/include/gtest/gtest.h"
// Returns true if |size| and |alignment| are valid combinations.
bool CorrectUsage(size_t size, size_t alignment) {

View File

@ -12,12 +12,13 @@
#ifdef __arm__
#include <machine/cpu-features.h>
#endif
#include <errno.h>
#include <fcntl.h>
#include <pthread.h>
#include "cpu-features.h"
#include <stdio.h>
#include <stdlib.h>
#include <fcntl.h>
#include <errno.h>
#include "webrtc/system_wrappers/source/android/cpu-features.h"
static pthread_once_t g_once;
static AndroidCpuFamily g_cpuFamily;

View File

@ -8,13 +8,13 @@
* be found in the AUTHORS file in the root of the source tree.
*/
#include "atomic32.h"
#include "webrtc/system_wrappers/interface/atomic32.h"
#include <assert.h>
#include <libkern/OSAtomic.h>
#include <stdlib.h>
#include "common_types.h"
#include "webrtc/common_types.h"
namespace webrtc {

View File

@ -8,13 +8,13 @@
* be found in the AUTHORS file in the root of the source tree.
*/
#include "atomic32.h"
#include "webrtc/system_wrappers/interface/atomic32.h"
#include <assert.h>
#include <inttypes.h>
#include <malloc.h>
#include "common_types.h"
#include "webrtc/common_types.h"
namespace webrtc {

View File

@ -8,13 +8,13 @@
* be found in the AUTHORS file in the root of the source tree.
*/
#include "atomic32.h"
#include "webrtc/system_wrappers/interface/atomic32.h"
#include <assert.h>
#include <windows.h>
#include "common_types.h"
#include "compile_assert.h"
#include "webrtc/common_types.h"
#include "webrtc/system_wrappers/interface/compile_assert.h"
namespace webrtc {

View File

@ -11,6 +11,7 @@
#include "webrtc/system_wrappers/interface/clock.h"
#if defined(_WIN32)
// Windows needs to be included before mmsystem.h
#include <Windows.h>
#include <WinSock.h>
#include <MMSystem.h>

View File

@ -8,7 +8,7 @@
* be found in the AUTHORS file in the root of the source tree.
*/
#include "condition_variable_posix.h"
#include "webrtc/system_wrappers/source/condition_variable_posix.h"
#include <errno.h>
#if defined(WEBRTC_LINUX)
@ -17,7 +17,7 @@
#include <sys/time.h>
#endif
#include "critical_section_posix.h"
#include "webrtc/system_wrappers/source/critical_section_posix.h"
namespace webrtc {

View File

@ -13,7 +13,7 @@
#include <pthread.h>
#include "condition_variable_wrapper.h"
#include "webrtc/system_wrappers/interface/condition_variable_wrapper.h"
namespace webrtc {

View File

@ -8,13 +8,13 @@
* be found in the AUTHORS file in the root of the source tree.
*/
#include "system_wrappers/interface/condition_variable_wrapper.h"
#include "webrtc/system_wrappers/interface/condition_variable_wrapper.h"
#include "gtest/gtest.h"
#include "system_wrappers/interface/critical_section_wrapper.h"
#include "system_wrappers/interface/thread_wrapper.h"
#include "system_wrappers/interface/trace.h"
#include "system_wrappers/source/unittest_utilities.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "webrtc/system_wrappers/interface/critical_section_wrapper.h"
#include "webrtc/system_wrappers/interface/thread_wrapper.h"
#include "webrtc/system_wrappers/interface/trace.h"
#include "webrtc/system_wrappers/source/unittest_utilities.h"
namespace webrtc {

View File

@ -10,13 +10,13 @@
// Parts of this file derived from Chromium's base/cpu.cc.
#include "system_wrappers/interface/cpu_features_wrapper.h"
#include "webrtc/system_wrappers/interface/cpu_features_wrapper.h"
#if defined(WEBRTC_ARCH_X86_FAMILY) && defined(_MSC_VER)
#include <intrin.h>
#endif
#include "typedefs.h"
#include "webrtc/typedefs.h"
// No CPU feature is available => straight C path.
int GetCPUInfoNoASM(CPUFeature feature) {

View File

@ -11,7 +11,7 @@
#if defined(WEBRTC_CHROMIUM_BUILD)
#include <cpu-features.h>
#else
#include "android/cpu-features.h"
#include "webrtc/system_wrappers/source/android/cpu-features.h"
#endif // defined(WEBRTC_CHROMIUM_BUILD)
uint64_t WebRtc_GetCPUFeaturesARM(void) {

View File

@ -18,11 +18,11 @@
#elif defined(WEBRTC_ANDROID)
// Not implemented yet, might be possible to use Linux implementation
#else // defined(WEBRTC_LINUX)
#include <unistd.h> // required for get_nprocs() with uClibc
#include <sys/sysinfo.h>
#include <unistd.h> // required for get_nprocs() with uClibc
#endif
#include "system_wrappers/interface/trace.h"
#include "webrtc/system_wrappers/interface/trace.h"
namespace webrtc {

View File

@ -10,7 +10,7 @@
#include "webrtc/system_wrappers/interface/critical_section_wrapper.h"
#include "gtest/gtest.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "webrtc/system_wrappers/interface/sleep.h"
#include "webrtc/system_wrappers/interface/thread_wrapper.h"
#include "webrtc/system_wrappers/interface/trace.h"

View File

@ -11,9 +11,9 @@
#ifndef WEBRTC_SYSTEM_WRAPPERS_SOURCE_CRITICAL_SECTION_WIN_H_
#define WEBRTC_SYSTEM_WRAPPERS_SOURCE_CRITICAL_SECTION_WIN_H_
#include "webrtc/typedefs.h"
#include "webrtc/system_wrappers/interface/critical_section_wrapper.h"
#include <windows.h>
#include "webrtc/system_wrappers/interface/critical_section_wrapper.h"
#include "webrtc/typedefs.h"
namespace webrtc {

View File

@ -11,6 +11,7 @@
#include "webrtc/system_wrappers/interface/data_log.h"
#include <assert.h>
#include <algorithm>
#include <list>

View File

@ -12,7 +12,7 @@
#include <string>
#include "gtest/gtest.h"
#include "testing/gtest/include/gtest/gtest.h"
using ::webrtc::DataLog;

View File

@ -13,7 +13,7 @@
#include <map>
#include <string>
#include "gtest/gtest.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "webrtc/system_wrappers/interface/data_log_c.h"
#include "webrtc/system_wrappers/source/data_log_c_helpers_unittest.h"

View File

@ -12,7 +12,7 @@
#include <cstdio>
#include "gtest/gtest.h"
#include "testing/gtest/include/gtest/gtest.h"
using ::webrtc::DataLog;

View File

@ -10,7 +10,7 @@
#include "webrtc/system_wrappers/interface/event_tracer.h"
#include "gtest/gtest.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "webrtc/system_wrappers/interface/static_instance.h"
#include "webrtc/system_wrappers/interface/trace_event.h"

View File

@ -10,7 +10,7 @@
#include "webrtc/system_wrappers/interface/list_wrapper.h"
#include "gtest/gtest.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "webrtc/system_wrappers/interface/scoped_ptr.h"
using ::webrtc::ListWrapper;

View File

@ -11,6 +11,7 @@
#include "webrtc/system_wrappers/interface/logging.h"
#include <string.h>
#include <sstream>
#include "webrtc/common_types.h"

View File

@ -10,7 +10,7 @@
#include "webrtc/system_wrappers/interface/logging.h"
#include "gtest/gtest.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "webrtc/system_wrappers/interface/condition_variable_wrapper.h"
#include "webrtc/system_wrappers/interface/critical_section_wrapper.h"
#include "webrtc/system_wrappers/interface/scoped_ptr.h"

View File

@ -10,7 +10,7 @@
#include "webrtc/system_wrappers/interface/map_wrapper.h"
#include "gtest/gtest.h"
#include "testing/gtest/include/gtest/gtest.h"
using ::webrtc::MapWrapper;
using ::webrtc::MapItem;

View File

@ -9,7 +9,7 @@
*/
// An OS-independent sleep function.
#include "system_wrappers/interface/sleep.h"
#include "webrtc/system_wrappers/interface/sleep.h"
#ifdef _WIN32
// For Sleep()

View File

@ -25,7 +25,8 @@
#include <algorithm> // std::sort
#include <vector>
#include "spreadsort.hpp" // TODO(ajm) upgrade to spreadsort v2.
// TODO(ajm) upgrade to spreadsort v2.
#include "webrtc/system_wrappers/source/spreadsortlib/spreadsort.hpp"
#endif
#ifdef NO_STL

View File

@ -17,9 +17,9 @@ Scott McMurray
#ifndef BOOST_SPREAD_SORT_H
#define BOOST_SPREAD_SORT_H
#include <algorithm>
#include <vector>
#include "constants.hpp"
#include <cstring>
#include <vector>
#include "webrtc/system_wrappers/source/spreadsortlib/constants.hpp"
namespace boost {
namespace detail {

View File

@ -51,11 +51,11 @@
#include <string.h> // strncpy
#include <unistd.h>
#ifdef WEBRTC_LINUX
#include <sys/types.h>
#include <sched.h>
#include <sys/syscall.h>
#include <linux/unistd.h>
#include <sched.h>
#include <sys/prctl.h>
#include <sys/syscall.h>
#include <sys/types.h>
#endif
#include "webrtc/system_wrappers/interface/critical_section_wrapper.h"

View File

@ -10,7 +10,7 @@
#include "webrtc/system_wrappers/source/thread_posix.h"
#include "gtest/gtest.h"
#include "testing/gtest/include/gtest/gtest.h"
TEST(ThreadTestPosix, PrioritySettings) {
// API assumes that max_prio - min_prio > 2. Test the extreme case.

View File

@ -10,7 +10,7 @@
#include "webrtc/system_wrappers/interface/thread_wrapper.h"
#include "gtest/gtest.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "webrtc/system_wrappers/interface/scoped_ptr.h"
namespace webrtc {

View File

@ -17,7 +17,7 @@
#include <stdio.h>
#include <string.h>
#include "system_wrappers/interface/trace.h"
#include "webrtc/system_wrappers/interface/trace.h"
namespace webrtc {

View File

@ -8,10 +8,10 @@
* be found in the AUTHORS file in the root of the source tree.
*/
#include "system_wrappers/source/unittest_utilities.h"
#include "webrtc/system_wrappers/source/unittest_utilities.h"
#include "gtest/gtest.h"
#include "system_wrappers/interface/trace.h"
#include "testing/gtest/include/gtest/gtest.h"
#include "webrtc/system_wrappers/interface/trace.h"
namespace webrtc {

View File

@ -8,12 +8,12 @@
* be found in the AUTHORS file in the root of the source tree.
*/
#include <cstdio>
#include <algorithm>
#include <cstdio>
#include <cstring>
#include "sort.h"
#include "tick_util.h"
#include "webrtc/system_wrappers/interface/sort.h"
#include "webrtc/system_wrappers/interface/tick_util.h"
// Excellent work polluting the global namespace Visual Studio...
#undef max

View File

@ -11,7 +11,7 @@
#include <stdio.h>
#include <stdlib.h>
#include "list_wrapper.h"
#include "webrtc/system_wrappers/interface/list_wrapper.h"
const int kNumberOfElements = 10;

View File

@ -11,7 +11,7 @@
#include <stdio.h>
#include <stdlib.h>
#include "map_wrapper.h"
#include "webrtc/system_wrappers/interface/map_wrapper.h"
const int kNumberOfElements = 10;