diff --git a/talk/media/devices/mobiledevicemanager.cc b/talk/media/devices/mobiledevicemanager.cc index f9ff35baca..39860edf9d 100644 --- a/talk/media/devices/mobiledevicemanager.cc +++ b/talk/media/devices/mobiledevicemanager.cc @@ -26,6 +26,7 @@ */ #include "talk/media/devices/devicemanager.h" +#include "webrtc/base/arraysize.h" #include "webrtc/modules/video_capture/include/video_capture_factory.h" namespace cricket { @@ -56,7 +57,7 @@ bool MobileDeviceManager::GetVideoCaptureDevices(std::vector* devs) { char id[256]; char name[256]; for (uint32 i = 0; i < num_cams; ++i) { - if (info->GetDeviceName(i, name, ARRAY_SIZE(name), id, ARRAY_SIZE(id))) + if (info->GetDeviceName(i, name, arraysize(name), id, arraysize(id))) continue; devs->push_back(Device(name, id)); } diff --git a/webrtc/base/buffer.h b/webrtc/base/buffer.h index dbe7b1aa75..ddab0fb6f0 100644 --- a/webrtc/base/buffer.h +++ b/webrtc/base/buffer.h @@ -13,6 +13,7 @@ #include +#include "webrtc/base/common.h" #include "webrtc/base/scoped_ptr.h" namespace rtc { diff --git a/webrtc/base/messagedigest.cc b/webrtc/base/messagedigest.cc index dc3e1006ad..8af60d9a96 100644 --- a/webrtc/base/messagedigest.cc +++ b/webrtc/base/messagedigest.cc @@ -12,6 +12,7 @@ #include +#include "webrtc/base/basictypes.h" #include "webrtc/base/sslconfig.h" #if SSL_USE_OPENSSL #include "webrtc/base/openssldigest.h" diff --git a/webrtc/base/scoped_ptr.h b/webrtc/base/scoped_ptr.h index 95e7f49d96..36ca3269e9 100644 --- a/webrtc/base/scoped_ptr.h +++ b/webrtc/base/scoped_ptr.h @@ -104,7 +104,6 @@ #include // For std::swap(). -#include "webrtc/base/common.h" #include "webrtc/base/constructormagic.h" #include "webrtc/base/move.h" #include "webrtc/base/template_util.h" diff --git a/webrtc/base/taskparent.cc b/webrtc/base/taskparent.cc index edc146fd22..97cbc9d30e 100644 --- a/webrtc/base/taskparent.cc +++ b/webrtc/base/taskparent.cc @@ -12,6 +12,7 @@ #include "webrtc/base/taskparent.h" +#include "webrtc/base/common.h" #include "webrtc/base/task.h" #include "webrtc/base/taskrunner.h" diff --git a/webrtc/modules/audio_device/mac/audio_device_mac.cc b/webrtc/modules/audio_device/mac/audio_device_mac.cc index 3f39cdf053..4e4ea122d3 100644 --- a/webrtc/modules/audio_device/mac/audio_device_mac.cc +++ b/webrtc/modules/audio_device/mac/audio_device_mac.cc @@ -8,6 +8,7 @@ * be found in the AUTHORS file in the root of the source tree. */ +#include "webrtc/base/arraysize.h" #include "webrtc/base/checks.h" #include "webrtc/modules/audio_device/audio_device_config.h" #include "webrtc/modules/audio_device/audio_device_utility.h" @@ -3213,7 +3214,7 @@ bool AudioDeviceMac::KeyPressed() { bool key_down = false; // Loop through all Mac virtual key constant values. for (unsigned int key_index = 0; - key_index < ARRAY_SIZE(prev_key_state_); + key_index < arraysize(prev_key_state_); ++key_index) { bool keyState = CGEventSourceKeyState( kCGEventSourceStateHIDSystemState, diff --git a/webrtc/modules/utility/source/process_thread_impl_unittest.cc b/webrtc/modules/utility/source/process_thread_impl_unittest.cc index a45d5b24f9..c8b03a631a 100644 --- a/webrtc/modules/utility/source/process_thread_impl_unittest.cc +++ b/webrtc/modules/utility/source/process_thread_impl_unittest.cc @@ -155,7 +155,7 @@ void ProcessCallAfterAFewMs(int64_t milliseconds) { // thereof), can make the test run in "0"ms time. EXPECT_GE(called_time, start_time); // Check for an acceptable range. - uint32 diff = called_time - start_time; + uint32_t diff = called_time - start_time; EXPECT_GE(diff, milliseconds - 15); EXPECT_LT(diff, milliseconds + 15); } @@ -247,7 +247,7 @@ TEST(ProcessThreadImpl, WakeUp) { ASSERT_GT(start_time, 0); ASSERT_GT(called_time, 0); EXPECT_GE(called_time, start_time); - uint32 diff = called_time - start_time; + uint32_t diff = called_time - start_time; // We should have been called back much quicker than 1sec. EXPECT_LE(diff, 100u); }