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

Side by Side Diff: components/audio_modem/audio_recorder_unittest.cc

Issue 971613003: Disable failing test AudioRecorderTest.BasicRecordAndStop because of Mac failures. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "components/audio_modem/audio_recorder.h" 5 #include "components/audio_modem/audio_recorder.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/memory/aligned_memory.h" 10 #include "base/memory/aligned_memory.h"
(...skipping 178 matching lines...) Expand 10 before | Expand all | Expand 10 after
189 189
190 // Deleted by calling Finalize() on the object. 190 // Deleted by calling Finalize() on the object.
191 AudioRecorderImpl* recorder_; 191 AudioRecorderImpl* recorder_;
192 192
193 std::string received_samples_; 193 std::string received_samples_;
194 194
195 scoped_ptr<base::RunLoop> run_loop_; 195 scoped_ptr<base::RunLoop> run_loop_;
196 content::TestBrowserThreadBundle thread_bundle_; 196 content::TestBrowserThreadBundle thread_bundle_;
197 }; 197 };
198 198
199 TEST_F(AudioRecorderTest, BasicRecordAndStop) { 199
200 // http://crbug.com/463854
201 #if defined(OS_MACOSX)
202 #define MAYBE_BasicRecordAndStop DISABLED_BasicRecordAndStop
203 #else
204 #define MAYBE_BasicRecordAndStop BasicRecordAndStop
205 #endif
206
207 TEST_F(AudioRecorderTest, MAYBE_BasicRecordAndStop) {
200 CreateSimpleRecorder(); 208 CreateSimpleRecorder();
201 209
202 recorder_->Record(); 210 recorder_->Record();
203 EXPECT_TRUE(IsRecording()); 211 EXPECT_TRUE(IsRecording());
204 recorder_->Stop(); 212 recorder_->Stop();
205 EXPECT_FALSE(IsRecording()); 213 EXPECT_FALSE(IsRecording());
206 recorder_->Record(); 214 recorder_->Record();
207 215
208 EXPECT_TRUE(IsRecording()); 216 EXPECT_TRUE(IsRecording());
209 recorder_->Stop(); 217 recorder_->Stop();
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
250 CreateRecorder(kNumSamples); 258 CreateRecorder(kNumSamples);
251 259
252 RecordAndVerifySamples(); 260 RecordAndVerifySamples();
253 261
254 DeleteRecorder(); 262 DeleteRecorder();
255 } 263 }
256 264
257 // TODO(rkc): Add tests with recording different sample rates. 265 // TODO(rkc): Add tests with recording different sample rates.
258 266
259 } // namespace audio_modem 267 } // namespace audio_modem
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698