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 #include "base/bind.h" | 5 #include "base/bind.h" |
6 #include "base/file_util.h" | |
7 #include "base/files/file_path.h" | 6 #include "base/files/file_path.h" |
8 #include "base/path_service.h" | |
9 #include "base/synchronization/waitable_event.h" | 7 #include "base/synchronization/waitable_event.h" |
10 #include "media/base/test_data_util.h" | 8 #include "media/base/test_data_util.h" |
11 #include "media/ffmpeg/ffmpeg_common.h" | 9 #include "media/ffmpeg/ffmpeg_common.h" |
12 #include "media/filters/blocking_url_protocol.h" | 10 #include "media/filters/blocking_url_protocol.h" |
13 #include "media/filters/file_data_source.h" | 11 #include "media/filters/file_data_source.h" |
14 #include "testing/gmock/include/gmock/gmock.h" | 12 #include "testing/gmock/include/gmock/gmock.h" |
15 #include "testing/gtest/include/gtest/gtest.h" | 13 #include "testing/gtest/include/gtest/gtest.h" |
16 | 14 |
17 namespace media { | 15 namespace media { |
18 | 16 |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
111 TEST_F(BlockingUrlProtocolTest, IsStreaming) { | 109 TEST_F(BlockingUrlProtocolTest, IsStreaming) { |
112 EXPECT_FALSE(data_source_.IsStreaming()); | 110 EXPECT_FALSE(data_source_.IsStreaming()); |
113 EXPECT_FALSE(url_protocol_.IsStreaming()); | 111 EXPECT_FALSE(url_protocol_.IsStreaming()); |
114 | 112 |
115 data_source_.force_streaming_for_testing(); | 113 data_source_.force_streaming_for_testing(); |
116 EXPECT_TRUE(data_source_.IsStreaming()); | 114 EXPECT_TRUE(data_source_.IsStreaming()); |
117 EXPECT_TRUE(url_protocol_.IsStreaming()); | 115 EXPECT_TRUE(url_protocol_.IsStreaming()); |
118 } | 116 } |
119 | 117 |
120 } // namespace media | 118 } // namespace media |
OLD | NEW |