OLD | NEW |
1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "content/browser/loader/mojo_async_resource_handler.h" | 5 #include "content/browser/loader/mojo_async_resource_handler.h" |
6 | 6 |
7 #include <string.h> | 7 #include <string.h> |
8 | 8 |
9 #include <utility> | 9 #include <utility> |
10 #include <vector> | 10 #include <vector> |
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
303 | 303 |
304 mojom::URLLoaderAssociatedRequest PassLoaderRequest() { | 304 mojom::URLLoaderAssociatedRequest PassLoaderRequest() { |
305 return std::move(loader_request_); | 305 return std::move(loader_request_); |
306 } | 306 } |
307 | 307 |
308 mojom::URLLoaderClientPtr PassClientPtr() { return std::move(client_ptr_); } | 308 mojom::URLLoaderClientPtr PassClientPtr() { return std::move(client_ptr_); } |
309 | 309 |
310 void SyncLoad(int32_t routing_id, | 310 void SyncLoad(int32_t routing_id, |
311 int32_t request_id, | 311 int32_t request_id, |
312 const ResourceRequest& url_request, | 312 const ResourceRequest& url_request, |
313 const SyncLoadCallback& callback) override { | 313 SyncLoadCallback callback) override { |
314 NOTREACHED(); | 314 NOTREACHED(); |
315 } | 315 } |
316 | 316 |
317 private: | 317 private: |
318 mojom::URLLoaderAssociatedRequest loader_request_; | 318 mojom::URLLoaderAssociatedRequest loader_request_; |
319 mojom::URLLoaderClientPtr client_ptr_; | 319 mojom::URLLoaderClientPtr client_ptr_; |
320 | 320 |
321 DISALLOW_COPY_AND_ASSIGN(TestURLLoaderFactory); | 321 DISALLOW_COPY_AND_ASSIGN(TestURLLoaderFactory); |
322 }; | 322 }; |
323 | 323 |
(...skipping 1035 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1359 } | 1359 } |
1360 } | 1360 } |
1361 EXPECT_EQ("B", body); | 1361 EXPECT_EQ("B", body); |
1362 } | 1362 } |
1363 | 1363 |
1364 INSTANTIATE_TEST_CASE_P(MojoAsyncResourceHandlerWithAllocationSizeTest, | 1364 INSTANTIATE_TEST_CASE_P(MojoAsyncResourceHandlerWithAllocationSizeTest, |
1365 MojoAsyncResourceHandlerWithAllocationSizeTest, | 1365 MojoAsyncResourceHandlerWithAllocationSizeTest, |
1366 ::testing::Values(8, 32 * 2014)); | 1366 ::testing::Values(8, 32 * 2014)); |
1367 } // namespace | 1367 } // namespace |
1368 } // namespace content | 1368 } // namespace content |
OLD | NEW |