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

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

Issue 1834323002: MediaStream audio: Refactor 3 separate "glue" implementations into one. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: REBASE + Workaround to ensure MediaStreamAudioProcessor is destroyed on the main thread. Created 4 years, 7 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/common/media/media_stream_options.h"
18 #include "content/public/common/media_stream_request.h" 19 #include "content/public/common/media_stream_request.h"
19 #include "content/renderer/media/media_stream_audio_processor.h" 20 #include "content/renderer/media/media_stream_audio_processor.h"
20 #include "content/renderer/media/media_stream_audio_processor_options.h" 21 #include "content/renderer/media/media_stream_audio_processor_options.h"
21 #include "content/renderer/media/mock_constraint_factory.h" 22 #include "content/renderer/media/mock_constraint_factory.h"
22 #include "media/base/audio_bus.h" 23 #include "media/base/audio_bus.h"
23 #include "media/base/audio_parameters.h" 24 #include "media/base/audio_parameters.h"
24 #include "testing/gmock/include/gmock/gmock.h" 25 #include "testing/gmock/include/gmock/gmock.h"
25 #include "testing/gtest/include/gtest/gtest.h" 26 #include "testing/gtest/include/gtest/gtest.h"
26 #include "third_party/WebKit/public/platform/WebMediaConstraints.h" 27 #include "third_party/WebKit/public/platform/WebMediaConstraints.h"
27 #include "third_party/webrtc/api/mediastreaminterface.h" 28 #include "third_party/webrtc/api/mediastreaminterface.h"
(...skipping 551 matching lines...) Expand 10 before | Expand all | Expand 10 after
579 ProcessDataAndVerifyFormat(audio_processor.get(), 580 ProcessDataAndVerifyFormat(audio_processor.get(),
580 kAudioProcessingSampleRate, 581 kAudioProcessingSampleRate,
581 kAudioProcessingNumberOfChannel, 582 kAudioProcessingNumberOfChannel,
582 kAudioProcessingSampleRate / 100); 583 kAudioProcessingSampleRate / 100);
583 // Set |audio_processor| to NULL to make sure |webrtc_audio_device| outlives 584 // Set |audio_processor| to NULL to make sure |webrtc_audio_device| outlives
584 // |audio_processor|. 585 // |audio_processor|.
585 audio_processor = NULL; 586 audio_processor = NULL;
586 } 587 }
587 588
588 } // namespace content 589 } // namespace content
OLDNEW
« no previous file with comments | « content/renderer/media/media_stream_audio_processor_options.cc ('k') | content/renderer/media/media_stream_audio_sink_owner.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698