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

Side by Side Diff: media/base/vector_math_unittest.cc

Issue 1542013004: Switch to standard integer types in media/, take 2. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: more stddef Created 4 years, 12 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
« no previous file with comments | « media/base/vector_math_perftest.cc ('k') | media/base/video_capture_types.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 // MSVC++ requires this to be set before any other includes to get M_PI. 5 // MSVC++ requires this to be set before any other includes to get M_PI.
6 #define _USE_MATH_DEFINES 6 #define _USE_MATH_DEFINES
7 #include <cmath> 7 #include <cmath>
8 8
9 #include "base/macros.h"
9 #include "base/memory/aligned_memory.h" 10 #include "base/memory/aligned_memory.h"
10 #include "base/memory/scoped_ptr.h" 11 #include "base/memory/scoped_ptr.h"
11 #include "base/strings/string_number_conversions.h" 12 #include "base/strings/string_number_conversions.h"
12 #include "base/strings/stringize_macros.h" 13 #include "base/strings/stringize_macros.h"
14 #include "build/build_config.h"
13 #include "media/base/vector_math.h" 15 #include "media/base/vector_math.h"
14 #include "media/base/vector_math_testing.h" 16 #include "media/base/vector_math_testing.h"
15 #include "testing/gtest/include/gtest/gtest.h" 17 #include "testing/gtest/include/gtest/gtest.h"
16 18
17 using std::fill; 19 using std::fill;
18 20
19 namespace media { 21 namespace media {
20 22
21 // Default test values. 23 // Default test values.
22 static const float kScale = 0.5; 24 static const float kScale = 0.5;
(...skipping 355 matching lines...) Expand 10 before | Expand all | Expand 10 after
378 .HasExpectedResult(0.00017858f, 4.0f), 380 .HasExpectedResult(0.00017858f, 4.0f),
379 EWMATestScenario(0.0f, kZeros, 32, 0.25f) 381 EWMATestScenario(0.0f, kZeros, 32, 0.25f)
380 .WithImpulse(2.0f, 2) 382 .WithImpulse(2.0f, 2)
381 .HasExpectedResult(0.00023811f, 4.0f), 383 .HasExpectedResult(0.00023811f, 4.0f),
382 EWMATestScenario(0.0f, kZeros, 32, 0.25f) 384 EWMATestScenario(0.0f, kZeros, 32, 0.25f)
383 .WithImpulse(2.0f, 3) 385 .WithImpulse(2.0f, 3)
384 .HasExpectedResult(0.00031748f, 4.0f) 386 .HasExpectedResult(0.00031748f, 4.0f)
385 )); 387 ));
386 388
387 } // namespace media 389 } // namespace media
OLDNEW
« no previous file with comments | « media/base/vector_math_perftest.cc ('k') | media/base/video_capture_types.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698