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 "base/run_loop.h" | 5 #include "base/run_loop.h" |
| 6 #include "base/threading/sequenced_worker_pool.h" |
6 #include "content/browser/blob_storage/chrome_blob_storage_context.h" | 7 #include "content/browser/blob_storage/chrome_blob_storage_context.h" |
7 #include "content/public/browser/browser_context.h" | 8 #include "content/public/browser/browser_context.h" |
8 #include "content/public/browser/browser_thread.h" | 9 #include "content/public/browser/browser_thread.h" |
9 #include "content/public/browser/web_contents.h" | 10 #include "content/public/browser/web_contents.h" |
10 #include "content/public/test/browser_test_utils.h" | 11 #include "content/public/test/browser_test_utils.h" |
11 #include "content/public/test/content_browser_test.h" | 12 #include "content/public/test/content_browser_test.h" |
12 #include "content/public/test/content_browser_test_utils.h" | 13 #include "content/public/test/content_browser_test_utils.h" |
13 #include "content/shell/browser/shell.h" | 14 #include "content/shell/browser/shell.h" |
14 #include "storage/browser/blob/blob_memory_controller.h" | 15 #include "storage/browser/blob/blob_memory_controller.h" |
15 #include "storage/browser/blob/blob_storage_context.h" | 16 #include "storage/browser/blob/blob_storage_context.h" |
(...skipping 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
92 EXPECT_GT(limits_.effective_max_disk_space, memory_controller->disk_usage()); | 93 EXPECT_GT(limits_.effective_max_disk_space, memory_controller->disk_usage()); |
93 shell()->Close(); | 94 shell()->Close(); |
94 | 95 |
95 // Make sure we run all file / io tasks. | 96 // Make sure we run all file / io tasks. |
96 base::RunLoop().RunUntilIdle(); | 97 base::RunLoop().RunUntilIdle(); |
97 BrowserThread::GetBlockingPool()->FlushForTesting(); | 98 BrowserThread::GetBlockingPool()->FlushForTesting(); |
98 base::RunLoop().RunUntilIdle(); | 99 base::RunLoop().RunUntilIdle(); |
99 } | 100 } |
100 | 101 |
101 } // namespace content | 102 } // namespace content |
OLD | NEW |