OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 <algorithm> | 5 #include <algorithm> |
6 | 6 |
7 #include "base/callback.h" | 7 #include "base/callback.h" |
8 #include "base/format_macros.h" | 8 #include "base/format_macros.h" |
| 9 #include "base/message_loop.h" |
9 #include "base/string_util.h" | 10 #include "base/string_util.h" |
10 #include "media/base/filters.h" | 11 #include "media/base/filters.h" |
11 #include "media/base/mock_filter_host.h" | 12 #include "media/base/mock_filter_host.h" |
12 #include "media/base/mock_filters.h" | 13 #include "media/base/mock_filters.h" |
13 #include "net/base/net_errors.h" | 14 #include "net/base/net_errors.h" |
14 #include "net/http/http_response_headers.h" | 15 #include "net/http/http_response_headers.h" |
15 #include "webkit/glue/media/buffered_data_source.h" | 16 #include "webkit/glue/media/buffered_data_source.h" |
16 #include "webkit/glue/media/mock_media_resource_loader_bridge_factory.h" | 17 #include "webkit/glue/media/mock_media_resource_loader_bridge_factory.h" |
17 #include "webkit/glue/mock_resource_loader_bridge.h" | 18 #include "webkit/glue/mock_resource_loader_bridge.h" |
18 | 19 |
(...skipping 906 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
925 StopDataSource(); | 926 StopDataSource(); |
926 } | 927 } |
927 | 928 |
928 TEST_F(BufferedDataSourceTest, FileHasLoadedState) { | 929 TEST_F(BufferedDataSourceTest, FileHasLoadedState) { |
929 InitializeDataSource(kFileUrl, net::OK, true, 1024, LOADED); | 930 InitializeDataSource(kFileUrl, net::OK, true, 1024, LOADED); |
930 ReadDataSourceTimesOut(20, 10); | 931 ReadDataSourceTimesOut(20, 10); |
931 StopDataSource(); | 932 StopDataSource(); |
932 } | 933 } |
933 | 934 |
934 } // namespace webkit_glue | 935 } // namespace webkit_glue |
OLD | NEW |