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-inl.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" | 11 #include "media/base/media_format.h" |
12 #include "media/base/filters.h" | 12 #include "media/base/filters.h" |
13 #include "media/base/filter_host.h" | 13 #include "media/base/filter_host.h" |
14 #include "media/base/mock_callback.h" | 14 #include "media/base/mock_callback.h" |
15 #include "media/base/mock_filters.h" | 15 #include "media/base/mock_filters.h" |
16 #include "testing/gtest/include/gtest/gtest.h" | 16 #include "testing/gtest/include/gtest/gtest.h" |
17 | 17 |
18 using ::testing::_; | 18 using ::testing::_; |
(...skipping 874 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
893 TestPipelineStatusNotification(0); | 893 TestPipelineStatusNotification(0); |
894 } | 894 } |
895 | 895 |
896 // Test that different-thread, some-delay callback (the expected common case) | 896 // Test that different-thread, some-delay callback (the expected common case) |
897 // works correctly. | 897 // works correctly. |
898 TEST(PipelineStatusNotificationTest, DelayedCallback) { | 898 TEST(PipelineStatusNotificationTest, DelayedCallback) { |
899 TestPipelineStatusNotification(20); | 899 TestPipelineStatusNotification(20); |
900 } | 900 } |
901 | 901 |
902 } // namespace media | 902 } // namespace media |
OLD | NEW |