| Index: content/renderer/media/media_stream_audio_processor_unittest.cc
|
| diff --git a/content/renderer/media/media_stream_audio_processor_unittest.cc b/content/renderer/media/media_stream_audio_processor_unittest.cc
|
| index 60086016823fc2c93fdb978abad644e216349d2c..a23d03e8e718641f9ef33ffca8f9993e5c5a4282 100644
|
| --- a/content/renderer/media/media_stream_audio_processor_unittest.cc
|
| +++ b/content/renderer/media/media_stream_audio_processor_unittest.cc
|
| @@ -2,14 +2,19 @@
|
| // Use of this source code is governed by a BSD-style license that can be
|
| // found in the LICENSE file.
|
|
|
| +#include <stddef.h>
|
| +#include <stdint.h>
|
| +
|
| #include <vector>
|
|
|
| #include "base/files/file_path.h"
|
| #include "base/files/file_util.h"
|
| #include "base/logging.h"
|
| +#include "base/macros.h"
|
| #include "base/memory/aligned_memory.h"
|
| #include "base/path_service.h"
|
| #include "base/time/time.h"
|
| +#include "build/build_config.h"
|
| #include "content/public/common/media_stream_request.h"
|
| #include "content/renderer/media/media_stream_audio_processor.h"
|
| #include "content/renderer/media/media_stream_audio_processor_options.h"
|
| @@ -60,7 +65,7 @@ void ReadDataFromSpeechFile(char* data, int length) {
|
| .Append(FILE_PATH_LITERAL("data"))
|
| .Append(FILE_PATH_LITERAL("speech_16b_stereo_48kHz.raw"));
|
| DCHECK(base::PathExists(file));
|
| - int64 data_file_size64 = 0;
|
| + int64_t data_file_size64 = 0;
|
| DCHECK(base::GetFileSize(file, &data_file_size64));
|
| EXPECT_EQ(length, base::ReadFile(file, data, length));
|
| DCHECK(data_file_size64 > length);
|
| @@ -88,7 +93,8 @@ class MediaStreamAudioProcessorTest : public ::testing::Test {
|
| const size_t length = packet_size * kNumberOfPacketsForTest;
|
| scoped_ptr<char[]> capture_data(new char[length]);
|
| ReadDataFromSpeechFile(capture_data.get(), length);
|
| - const int16* data_ptr = reinterpret_cast<const int16*>(capture_data.get());
|
| + const int16_t* data_ptr =
|
| + reinterpret_cast<const int16_t*>(capture_data.get());
|
| scoped_ptr<media::AudioBus> data_bus = media::AudioBus::Create(
|
| params.channels(), params.frames_per_buffer());
|
|
|
|
|