| 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/bind.h" | 13 #include "base/bind.h" |
| 14 #include "base/files/file.h" | 14 #include "base/files/file.h" |
| 15 #include "base/files/file_path.h" | 15 #include "base/files/file_path.h" |
| 16 #include "base/files/file_util.h" | 16 #include "base/files/file_util.h" |
| 17 #include "base/memory/ptr_util.h" |
| 17 #include "base/memory/ref_counted.h" | 18 #include "base/memory/ref_counted.h" |
| 18 #include "base/message_loop/message_loop.h" | 19 #include "base/message_loop/message_loop.h" |
| 19 #include "base/run_loop.h" | 20 #include "base/run_loop.h" |
| 20 #include "base/strings/string_number_conversions.h" | 21 #include "base/strings/string_number_conversions.h" |
| 21 #include "base/test/test_simple_task_runner.h" | 22 #include "base/test/test_simple_task_runner.h" |
| 22 #include "base/threading/thread_task_runner_handle.h" | 23 #include "base/threading/thread_task_runner_handle.h" |
| 23 #include "base/time/time.h" | 24 #include "base/time/time.h" |
| 24 #include "content/browser/blob_storage/blob_dispatcher_host.h" | 25 #include "content/browser/blob_storage/blob_dispatcher_host.h" |
| 25 #include "content/browser/blob_storage/chrome_blob_storage_context.h" | 26 #include "content/browser/blob_storage/chrome_blob_storage_context.h" |
| 26 #include "content/public/test/test_browser_context.h" | 27 #include "content/public/test/test_browser_context.h" |
| (...skipping 860 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 887 EXPECT_TRUE(file_runner_->HasPendingTask()); | 888 EXPECT_TRUE(file_runner_->HasPendingTask()); |
| 888 file_runner_->RunPendingTasks(); | 889 file_runner_->RunPendingTasks(); |
| 889 base::RunLoop().RunUntilIdle(); | 890 base::RunLoop().RunUntilIdle(); |
| 890 EXPECT_EQ(0lu, context_->memory_controller().memory_usage()); | 891 EXPECT_EQ(0lu, context_->memory_controller().memory_usage()); |
| 891 EXPECT_EQ(0lu, context_->memory_controller().disk_usage()); | 892 EXPECT_EQ(0lu, context_->memory_controller().disk_usage()); |
| 892 } | 893 } |
| 893 | 894 |
| 894 // TODO(michaeln): tests for the deprecated url stuff | 895 // TODO(michaeln): tests for the deprecated url stuff |
| 895 | 896 |
| 896 } // namespace storage | 897 } // namespace storage |
| OLD | NEW |