| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 <algorithm> | 7 #include <algorithm> |
| 6 #include <string> | 8 #include <string> |
| 7 | 9 |
| 8 #include "base/bind.h" | 10 #include "base/bind.h" |
| 9 #include "base/format_macros.h" | 11 #include "base/format_macros.h" |
| 12 #include "base/macros.h" |
| 10 #include "base/message_loop/message_loop.h" | 13 #include "base/message_loop/message_loop.h" |
| 11 #include "base/strings/stringprintf.h" | 14 #include "base/strings/stringprintf.h" |
| 12 #include "media/base/media_log.h" | 15 #include "media/base/media_log.h" |
| 13 #include "media/base/seekable_buffer.h" | 16 #include "media/base/seekable_buffer.h" |
| 14 #include "media/blink/mock_webframeclient.h" | 17 #include "media/blink/mock_webframeclient.h" |
| 15 #include "media/blink/mock_weburlloader.h" | 18 #include "media/blink/mock_weburlloader.h" |
| 16 #include "media/blink/resource_multibuffer_data_provider.h" | 19 #include "media/blink/resource_multibuffer_data_provider.h" |
| 17 #include "media/blink/url_index.h" | 20 #include "media/blink/url_index.h" |
| 18 #include "net/base/net_errors.h" | 21 #include "net/base/net_errors.h" |
| 19 #include "net/http/http_request_headers.h" | 22 #include "net/http/http_request_headers.h" |
| (...skipping 301 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 321 TEST_F(ResourceMultiBufferDataProviderTest, TestRedirects) { | 324 TEST_F(ResourceMultiBufferDataProviderTest, TestRedirects) { |
| 322 // Test redirect. | 325 // Test redirect. |
| 323 Initialize(kHttpUrl, 0); | 326 Initialize(kHttpUrl, 0); |
| 324 Start(); | 327 Start(); |
| 325 Redirect(kHttpRedirect); | 328 Redirect(kHttpRedirect); |
| 326 FullResponse(1024); | 329 FullResponse(1024); |
| 327 StopWhenLoad(); | 330 StopWhenLoad(); |
| 328 } | 331 } |
| 329 | 332 |
| 330 } // namespace media | 333 } // namespace media |
| OLD | NEW |