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

Unified Diff: components/audio_modem/audio_recorder_unittest.cc

Issue 865483005: Creating the audio_modem component (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merging again Created 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « components/audio_modem/audio_recorder_impl.cc ('k') | components/audio_modem/constants.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/audio_modem/audio_recorder_unittest.cc
diff --git a/components/copresence/mediums/audio/audio_recorder_unittest.cc b/components/audio_modem/audio_recorder_unittest.cc
similarity index 94%
rename from components/copresence/mediums/audio/audio_recorder_unittest.cc
rename to components/audio_modem/audio_recorder_unittest.cc
index 1884b8104e22c38312b9993fbd00885cf0bf9c66..a05ad7f5f9087d37dafcc512a5a431faad62866b 100644
--- a/components/copresence/mediums/audio/audio_recorder_unittest.cc
+++ b/components/audio_modem/audio_recorder_unittest.cc
@@ -1,15 +1,17 @@
-// Copyright 2014 The Chromium Authors. All rights reserved.
+// Copyright 2015 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "components/copresence/mediums/audio/audio_recorder.h"
+#include "components/audio_modem/audio_recorder.h"
+
+#include <vector>
#include "base/bind.h"
#include "base/memory/aligned_memory.h"
#include "base/run_loop.h"
-#include "components/copresence/mediums/audio/audio_recorder_impl.h"
-#include "components/copresence/public/copresence_constants.h"
-#include "components/copresence/test/audio_test_support.h"
+#include "components/audio_modem/audio_recorder_impl.h"
+#include "components/audio_modem/public/audio_modem_types.h"
+#include "components/audio_modem/test/random_samples.h"
#include "content/public/test/test_browser_thread_bundle.h"
#include "media/audio/audio_manager.h"
#include "media/audio/audio_manager_base.h"
@@ -69,7 +71,7 @@ class TestAudioInputStream : public media::AudioInputStream {
} // namespace
-namespace copresence {
+namespace audio_modem {
class AudioRecorderTest : public testing::Test {
public:
@@ -197,7 +199,8 @@ class AudioRecorderTest : public testing::Test {
// rather than setting our own params.
// On Linux, there is a memory leak in the audio code during initialization.
#define MAYBE_BasicRecordAndStop DISABLED_BasicRecordAndStop
-#define MAYBE_OutOfOrderRecordAndStopMultiple DISABLED_OutOfOrderRecordAndStopMultiple
+#define MAYBE_OutOfOrderRecordAndStopMultiple \
+ DISABLED_OutOfOrderRecordAndStopMultiple
#define MAYBE_RecordingEndToEnd DISABLED_RecordingEndToEnd
TEST_F(AudioRecorderTest, MAYBE_BasicRecordAndStop) {
@@ -252,4 +255,4 @@ TEST_F(AudioRecorderTest, MAYBE_RecordingEndToEnd) {
// TODO(rkc): Add tests with recording different sample rates.
-} // namespace copresence
+} // namespace audio_modem
« no previous file with comments | « components/audio_modem/audio_recorder_impl.cc ('k') | components/audio_modem/constants.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698