| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 <string> | 5 #include <string> |
| 6 | 6 |
| 7 #include "base/callback.h" | 7 #include "base/callback.h" |
| 8 #include "base/stl_util.h" | 8 #include "base/stl_util.h" |
| 9 #include "base/threading/simple_thread.h" | 9 #include "base/threading/simple_thread.h" |
| 10 #include "media/base/pipeline_impl.h" | 10 #include "media/base/pipeline_impl.h" |
| 11 #include "media/base/media_format.h" | |
| 12 #include "media/base/filters.h" | 11 #include "media/base/filters.h" |
| 13 #include "media/base/filter_host.h" | 12 #include "media/base/filter_host.h" |
| 14 #include "media/base/mock_callback.h" | 13 #include "media/base/mock_callback.h" |
| 15 #include "media/base/mock_filters.h" | 14 #include "media/base/mock_filters.h" |
| 16 #include "testing/gtest/include/gtest/gtest.h" | 15 #include "testing/gtest/include/gtest/gtest.h" |
| 17 | 16 |
| 18 using ::testing::_; | 17 using ::testing::_; |
| 19 using ::testing::DeleteArg; | 18 using ::testing::DeleteArg; |
| 20 using ::testing::InSequence; | 19 using ::testing::InSequence; |
| 21 using ::testing::Invoke; | 20 using ::testing::Invoke; |
| (...skipping 871 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 893 TestPipelineStatusNotification(0); | 892 TestPipelineStatusNotification(0); |
| 894 } | 893 } |
| 895 | 894 |
| 896 // Test that different-thread, some-delay callback (the expected common case) | 895 // Test that different-thread, some-delay callback (the expected common case) |
| 897 // works correctly. | 896 // works correctly. |
| 898 TEST(PipelineStatusNotificationTest, DelayedCallback) { | 897 TEST(PipelineStatusNotificationTest, DelayedCallback) { |
| 899 TestPipelineStatusNotification(20); | 898 TestPipelineStatusNotification(20); |
| 900 } | 899 } |
| 901 | 900 |
| 902 } // namespace media | 901 } // namespace media |
| OLD | NEW |