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