Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(253)

Side by Side Diff: content/renderer/media/media_stream_audio_processor_unittest.cc

Issue 1615433002: Roll WebRTC 11523:11548, Libjingle 11522:11545 (Closed) Base URL: http://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rolling to webrtc@11548 instead to pull in a fix Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include <stddef.h> 5 #include <stddef.h>
6 #include <stdint.h> 6 #include <stdint.h>
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
11 #include "base/files/file_util.h" 11 #include "base/files/file_util.h"
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "base/memory/aligned_memory.h" 14 #include "base/memory/aligned_memory.h"
15 #include "base/path_service.h" 15 #include "base/path_service.h"
16 #include "base/time/time.h" 16 #include "base/time/time.h"
17 #include "build/build_config.h" 17 #include "build/build_config.h"
18 #include "content/public/common/media_stream_request.h" 18 #include "content/public/common/media_stream_request.h"
19 #include "content/renderer/media/media_stream_audio_processor.h" 19 #include "content/renderer/media/media_stream_audio_processor.h"
20 #include "content/renderer/media/media_stream_audio_processor_options.h" 20 #include "content/renderer/media/media_stream_audio_processor_options.h"
21 #include "content/renderer/media/mock_media_constraint_factory.h" 21 #include "content/renderer/media/mock_media_constraint_factory.h"
22 #include "media/audio/audio_parameters.h" 22 #include "media/audio/audio_parameters.h"
23 #include "media/base/audio_bus.h" 23 #include "media/base/audio_bus.h"
24 #include "testing/gmock/include/gmock/gmock.h" 24 #include "testing/gmock/include/gmock/gmock.h"
25 #include "testing/gtest/include/gtest/gtest.h" 25 #include "testing/gtest/include/gtest/gtest.h"
26 #include "third_party/WebKit/public/platform/WebMediaConstraints.h" 26 #include "third_party/WebKit/public/platform/WebMediaConstraints.h"
27 #include "third_party/libjingle/source/talk/app/webrtc/mediastreaminterface.h" 27 #include "third_party/webrtc/api/mediastreaminterface.h"
28 28
29 using ::testing::_; 29 using ::testing::_;
30 using ::testing::AnyNumber; 30 using ::testing::AnyNumber;
31 using ::testing::AtLeast; 31 using ::testing::AtLeast;
32 using ::testing::Return; 32 using ::testing::Return;
33 33
34 using media::AudioParameters; 34 using media::AudioParameters;
35 35
36 namespace webrtc { 36 namespace webrtc {
37 37
(...skipping 556 matching lines...) Expand 10 before | Expand all | Expand 10 after
594 ProcessDataAndVerifyFormat(audio_processor.get(), 594 ProcessDataAndVerifyFormat(audio_processor.get(),
595 kAudioProcessingSampleRate, 595 kAudioProcessingSampleRate,
596 kAudioProcessingNumberOfChannel, 596 kAudioProcessingNumberOfChannel,
597 kAudioProcessingSampleRate / 100); 597 kAudioProcessingSampleRate / 100);
598 // Set |audio_processor| to NULL to make sure |webrtc_audio_device| outlives 598 // Set |audio_processor| to NULL to make sure |webrtc_audio_device| outlives
599 // |audio_processor|. 599 // |audio_processor|.
600 audio_processor = NULL; 600 audio_processor = NULL;
601 } 601 }
602 602
603 } // namespace content 603 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/media/media_stream_audio_processor_options.h ('k') | content/renderer/media/media_stream_audio_source.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698