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

Unified Diff: media/audio/sounds/test_data.h

Issue 1453233002: Improve input handling for WaveAudioHandler. (Closed) Base URL: https://chromium.googlesource.com/chromium/src@master
Patch Set: Formatting Created 5 years, 1 month 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/sounds/sounds_manager.cc ('k') | media/audio/sounds/wav_audio_handler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/sounds/test_data.h
diff --git a/media/audio/sounds/test_data.h b/media/audio/sounds/test_data.h
index e5544d0ecf793d5dcb312b0cbe2ab1cb45ec39b2..ce8126641b1880324a12540f7c22fa6ebd68e322 100644
--- a/media/audio/sounds/test_data.h
+++ b/media/audio/sounds/test_data.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef MEDIA_AUDIO_SOUNDS_TEST_UTILS_H_
-#define MEDIA_AUDIO_SOUNDS_TEST_UTILS_H_
+#ifndef MEDIA_AUDIO_SOUNDS_TEST_DATA_H_
+#define MEDIA_AUDIO_SOUNDS_TEST_DATA_H_
#include "base/basictypes.h"
#include "base/callback.h"
@@ -18,9 +18,11 @@ namespace media {
const int kTestAudioKey = 1000;
-const char kTestAudioData[] = "RIFF\x26\x00\x00\x00WAVEfmt \x10\x00\x00\x00"
+const char kTestAudioData[] =
+ "RIFF\x28\x00\x00\x00WAVEfmt \x10\x00\x00\x00"
"\x01\x00\x02\x00\x80\xbb\x00\x00\x00\x77\x01\x00\x02\x00\x10\x00"
"data\x04\x00\x00\x00\x01\x00\x01\x00";
+const size_t kTestAudioDataSize = arraysize(kTestAudioData) - 1;
class TestObserver : public AudioStreamHandler::TestObserver {
public:
@@ -48,4 +50,4 @@ class TestObserver : public AudioStreamHandler::TestObserver {
} // namespace media
-#endif // MEDIA_AUDIO_SOUNDS_TEST_UTILS_H_
+#endif // MEDIA_AUDIO_SOUNDS_TEST_DATA_H_
« no previous file with comments | « media/audio/sounds/sounds_manager.cc ('k') | media/audio/sounds/wav_audio_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698