| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "storage/browser/blob/blob_storage_context.h" | 5 #include "storage/browser/blob/blob_storage_context.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include <limits> | 9 #include <limits> |
| 10 #include <memory> | 10 #include <memory> |
| 11 #include <string> | 11 #include <string> |
| 12 | 12 |
| 13 #include "base/files/file.h" | 13 #include "base/files/file.h" |
| 14 #include "base/files/file_path.h" | 14 #include "base/files/file_path.h" |
| 15 #include "base/memory/ref_counted.h" | 15 #include "base/memory/ref_counted.h" |
| 16 #include "base/message_loop/message_loop.h" | 16 #include "base/message_loop/message_loop.h" |
| 17 #include "base/run_loop.h" | 17 #include "base/run_loop.h" |
| 18 #include "base/time/time.h" | 18 #include "base/time/time.h" |
| 19 #include "content/browser/blob_storage/blob_dispatcher_host.h" | |
| 20 #include "content/browser/blob_storage/chrome_blob_storage_context.h" | |
| 21 #include "content/public/test/test_browser_context.h" | |
| 22 #include "net/base/io_buffer.h" | 19 #include "net/base/io_buffer.h" |
| 23 #include "net/base/test_completion_callback.h" | 20 #include "net/base/test_completion_callback.h" |
| 24 #include "net/disk_cache/disk_cache.h" | 21 #include "net/disk_cache/disk_cache.h" |
| 25 #include "storage/browser/blob/blob_async_builder_host.h" | 22 #include "storage/browser/blob/blob_async_builder_host.h" |
| 26 #include "storage/browser/blob/blob_data_builder.h" | 23 #include "storage/browser/blob/blob_data_builder.h" |
| 27 #include "storage/browser/blob/blob_data_handle.h" | 24 #include "storage/browser/blob/blob_data_handle.h" |
| 28 #include "storage/browser/blob/blob_data_item.h" | 25 #include "storage/browser/blob/blob_data_item.h" |
| 29 #include "storage/browser/blob/blob_data_snapshot.h" | 26 #include "storage/browser/blob/blob_data_snapshot.h" |
| 30 #include "storage/browser/blob/blob_transport_result.h" | 27 #include "storage/browser/blob/blob_transport_result.h" |
| 31 #include "storage/common/blob_storage/blob_item_bytes_request.h" | 28 #include "storage/common/blob_storage/blob_item_bytes_request.h" |
| (...skipping 458 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 490 EXPECT_TRUE(handle->IsBroken()); | 487 EXPECT_TRUE(handle->IsBroken()); |
| 491 EXPECT_TRUE(context_.registry().HasEntry(kReferencingId)); | 488 EXPECT_TRUE(context_.registry().HasEntry(kReferencingId)); |
| 492 handle.reset(); | 489 handle.reset(); |
| 493 base::RunLoop().RunUntilIdle(); | 490 base::RunLoop().RunUntilIdle(); |
| 494 EXPECT_FALSE(context_.registry().HasEntry(kReferencingId)); | 491 EXPECT_FALSE(context_.registry().HasEntry(kReferencingId)); |
| 495 } | 492 } |
| 496 | 493 |
| 497 // TODO(michaeln): tests for the depcrecated url stuff | 494 // TODO(michaeln): tests for the depcrecated url stuff |
| 498 | 495 |
| 499 } // namespace content | 496 } // namespace content |
| OLD | NEW |