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

Unified Diff: media/audio/simple_sources_unittest.cc

Issue 1534273002: Switch to standard integer types in media/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more Created 5 years 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
Index: media/audio/simple_sources_unittest.cc
diff --git a/media/audio/simple_sources_unittest.cc b/media/audio/simple_sources_unittest.cc
index 86963bc939b86621920a729aff4a1ed0258da0df..c4c068e0cdb38257f2084cf188368f2453300f8e 100644
--- a/media/audio/simple_sources_unittest.cc
+++ b/media/audio/simple_sources_unittest.cc
@@ -6,7 +6,6 @@
#include "base/files/file_util.h"
#include "base/logging.h"
-#include "base/basictypes.h"
#include "base/memory/scoped_ptr.h"
#include "media/audio/audio_parameters.h"
#include "media/audio/simple_sources.h"
@@ -18,8 +17,8 @@ namespace media {
// Validate that the SineWaveAudioSource writes the expected values.
TEST(SimpleSources, SineWaveAudioSource) {
- static const uint32 samples = 1024;
- static const uint32 bytes_per_sample = 2;
+ static const uint32_t samples = 1024;
+ static const uint32_t bytes_per_sample = 2;
static const int freq = 200;
AudioParameters params(
@@ -32,7 +31,7 @@ TEST(SimpleSources, SineWaveAudioSource) {
EXPECT_EQ(1, source.callbacks());
EXPECT_EQ(0, source.errors());
- uint32 half_period = AudioParameters::kTelephoneSampleRate / (freq * 2);
+ uint32_t half_period = AudioParameters::kTelephoneSampleRate / (freq * 2);
// Spot test positive incursion of sine wave.
EXPECT_NEAR(0, audio_bus->channel(0)[0],

Powered by Google App Engine
This is Rietveld 408576698