OLD | NEW |
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 Loading... |
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 |
OLD | NEW |