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