| OLD | NEW |
| 1 // Copyright 2017 The Chromium Authors. All rights reserved. | 1 // Copyright 2017 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 #include "platform/audio/PushPullFIFO.h" | 5 #include "platform/audio/PushPullFIFO.h" |
| 6 | 6 |
| 7 #include <memory> | 7 #include <memory> |
| 8 #include <vector> | 8 #include <vector> |
| 9 #include "platform/audio/AudioUtilities.h" | 9 #include "platform/audio/AudioUtilities.h" |
| 10 #include "platform/testing/TestingPlatformSupport.h" | 10 #include "platform/testing/TestingPlatformSupport.h" |
| 11 #include "platform/wtf/PtrUtil.h" |
| 11 #include "testing/gtest/include/gtest/gtest.h" | 12 #include "testing/gtest/include/gtest/gtest.h" |
| 12 #include "wtf/PtrUtil.h" | |
| 13 | 13 |
| 14 namespace blink { | 14 namespace blink { |
| 15 | 15 |
| 16 namespace { | 16 namespace { |
| 17 | 17 |
| 18 // Check the basic contract of FIFO. | 18 // Check the basic contract of FIFO. |
| 19 TEST(PushPullFIFOBasicTest, BasicTests) { | 19 TEST(PushPullFIFOBasicTest, BasicTests) { |
| 20 // This suppresses the multi-thread warning for GTest. Potently it increases | 20 // This suppresses the multi-thread warning for GTest. Potently it increases |
| 21 // the test execution time, but this specific test is very short and simple. | 21 // the test execution time, but this specific test is very short and simple. |
| 22 ::testing::FLAGS_gtest_death_test_style = "threadsafe"; | 22 ::testing::FLAGS_gtest_death_test_style = "threadsafe"; |
| (...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 354 // - Output bus samples (index, expectedValue) = (0, 0), (143, 0) | 354 // - Output bus samples (index, expectedValue) = (0, 0), (143, 0) |
| 355 {0, 0, 0, 4, {{0, 0}, {1023, 0}}, {{0, 0}, {143, 0}}}}}; | 355 {0, 0, 0, 4, {{0, 0}, {1023, 0}}, {{0, 0}, {143, 0}}}}}; |
| 356 | 356 |
| 357 INSTANTIATE_TEST_CASE_P(PushPullFIFOFeatureTest, | 357 INSTANTIATE_TEST_CASE_P(PushPullFIFOFeatureTest, |
| 358 PushPullFIFOFeatureTest, | 358 PushPullFIFOFeatureTest, |
| 359 ::testing::ValuesIn(featureTestParams)); | 359 ::testing::ValuesIn(featureTestParams)); |
| 360 | 360 |
| 361 } // namespace | 361 } // namespace |
| 362 | 362 |
| 363 } // namespace blink | 363 } // namespace blink |
| OLD | NEW |