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" | 7 #include "base/path_service.h" |
xhwang
2013/05/14 19:03:32
you can probably remove these two too?
| |
9 #include "base/synchronization/waitable_event.h" | 8 #include "base/synchronization/waitable_event.h" |
10 #include "media/base/test_data_util.h" | 9 #include "media/base/test_data_util.h" |
11 #include "media/ffmpeg/ffmpeg_common.h" | 10 #include "media/ffmpeg/ffmpeg_common.h" |
12 #include "media/filters/blocking_url_protocol.h" | 11 #include "media/filters/blocking_url_protocol.h" |
13 #include "media/filters/file_data_source.h" | 12 #include "media/filters/file_data_source.h" |
14 #include "testing/gmock/include/gmock/gmock.h" | 13 #include "testing/gmock/include/gmock/gmock.h" |
15 #include "testing/gtest/include/gtest/gtest.h" | 14 #include "testing/gtest/include/gtest/gtest.h" |
16 | 15 |
17 namespace media { | 16 namespace media { |
18 | 17 |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
111 TEST_F(BlockingUrlProtocolTest, IsStreaming) { | 110 TEST_F(BlockingUrlProtocolTest, IsStreaming) { |
112 EXPECT_FALSE(data_source_.IsStreaming()); | 111 EXPECT_FALSE(data_source_.IsStreaming()); |
113 EXPECT_FALSE(url_protocol_.IsStreaming()); | 112 EXPECT_FALSE(url_protocol_.IsStreaming()); |
114 | 113 |
115 data_source_.force_streaming_for_testing(); | 114 data_source_.force_streaming_for_testing(); |
116 EXPECT_TRUE(data_source_.IsStreaming()); | 115 EXPECT_TRUE(data_source_.IsStreaming()); |
117 EXPECT_TRUE(url_protocol_.IsStreaming()); | 116 EXPECT_TRUE(url_protocol_.IsStreaming()); |
118 } | 117 } |
119 | 118 |
120 } // namespace media | 119 } // namespace media |
OLD | NEW |