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

Unified Diff: media/filters/audio_renderer_algorithm_base_unittest.cc

Issue 9114020: Remove task.h and finish base::Bind() migration. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix typo Created 8 years, 11 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 | « media/audio/pulse/pulse_output.h ('k') | media/tools/tile_render_bench/tile_render_bench.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/audio_renderer_algorithm_base_unittest.cc
diff --git a/media/filters/audio_renderer_algorithm_base_unittest.cc b/media/filters/audio_renderer_algorithm_base_unittest.cc
index 489182ed5acaa84a2853619cb5a8fae0eeb4ae54..d68581697f3fae6dc7f9566fcc1c1c182ed7e88c 100644
--- a/media/filters/audio_renderer_algorithm_base_unittest.cc
+++ b/media/filters/audio_renderer_algorithm_base_unittest.cc
@@ -22,13 +22,12 @@ namespace media {
static const int kChannels = 1;
static const int kSampleRate = 1000;
static const int kSampleBits = 8;
-static void DoNothing() {}
TEST(AudioRendererAlgorithmBaseTest, FillBuffer_NormalRate) {
// When playback rate == 1.0f: straight copy of whatever is in |queue_|.
AudioRendererAlgorithmBase algorithm;
algorithm.Initialize(kChannels, kSampleRate, kSampleBits, 1.0f,
- base::Bind(&DoNothing));
+ base::Bind(&base::DoNothing));
// Enqueue a buffer of any size since it doesn't matter.
const size_t kDataSize = 1024;
@@ -45,7 +44,7 @@ TEST(AudioRendererAlgorithmBaseTest, FillBuffer_DoubleRate) {
// When playback rate > 1.0f: input is read faster than output is written.
AudioRendererAlgorithmBase algorithm;
algorithm.Initialize(kChannels, kSampleRate, kSampleBits, 2.0f,
- base::Bind(&DoNothing));
+ base::Bind(&base::DoNothing));
// First parameter is the input buffer size, second parameter is how much data
// we expect to consume in order to have no data left in the |algorithm|.
@@ -77,7 +76,7 @@ TEST(AudioRendererAlgorithmBaseTest, FillBuffer_HalfRate) {
// When playback rate < 1.0f: input is read slower than output is written.
AudioRendererAlgorithmBase algorithm;
algorithm.Initialize(kChannels, kSampleRate, kSampleBits, 0.5f,
- base::Bind(&DoNothing));
+ base::Bind(&base::DoNothing));
// First parameter is the input buffer size, second parameter is how much data
// we expect to consume in order to have no data left in the |algorithm|.
@@ -109,7 +108,7 @@ TEST(AudioRendererAlgorithmBaseTest, FillBuffer_QuarterRate) {
// When playback rate is very low the audio is simply muted.
AudioRendererAlgorithmBase algorithm;
algorithm.Initialize(kChannels, kSampleRate, kSampleBits, 0.25f,
- base::Bind(&DoNothing));
+ base::Bind(&base::DoNothing));
// First parameter is the input buffer size, second parameter is how much data
// we expect to consume in order to have no data left in the |algorithm|.
« no previous file with comments | « media/audio/pulse/pulse_output.h ('k') | media/tools/tile_render_bench/tile_render_bench.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698