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

Side by Side Diff: media/audio/audio_input_unittest.cc

Issue 19622002: Use a direct include of the message_loop header in media/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 5 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 "base/basictypes.h" 5 #include "base/basictypes.h"
6 #include "base/environment.h" 6 #include "base/environment.h"
7 #include "base/memory/scoped_ptr.h" 7 #include "base/memory/scoped_ptr.h"
8 #include "base/message_loop.h" 8 #include "base/message_loop/message_loop.h"
9 #include "base/threading/platform_thread.h" 9 #include "base/threading/platform_thread.h"
10 #include "media/audio/audio_io.h" 10 #include "media/audio/audio_io.h"
11 #include "media/audio/audio_manager_base.h" 11 #include "media/audio/audio_manager_base.h"
12 #include "testing/gtest/include/gtest/gtest.h" 12 #include "testing/gtest/include/gtest/gtest.h"
13 13
14 namespace media { 14 namespace media {
15 15
16 static const int kSamplingRate = 8000; 16 static const int kSamplingRate = 8000;
17 static const int kSamplesPerPacket = kSamplingRate / 20; 17 static const int kSamplesPerPacket = kSamplingRate / 20;
18 18
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 base::TimeDelta::FromMilliseconds(690)); 176 base::TimeDelta::FromMilliseconds(690));
177 message_loop.Run(); 177 message_loop.Run();
178 EXPECT_GE(test_callback.callback_count(), 1); 178 EXPECT_GE(test_callback.callback_count(), 1);
179 EXPECT_FALSE(test_callback.had_error()); 179 EXPECT_FALSE(test_callback.had_error());
180 180
181 ais->Stop(); 181 ais->Stop();
182 ais->Close(); 182 ais->Close();
183 } 183 }
184 184
185 } // namespace media 185 } // namespace media
OLDNEW
« no previous file with comments | « media/audio/audio_input_device.cc ('k') | media/audio/audio_low_latency_input_output_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698